Koozali.org: home of the SME Server

Vtiger error "RewriteRule: bad argument line '^/vtiger(/.*|$)'

Offline jmbac

  • *
  • 35
  • +0/-0
Vtiger error "RewriteRule: bad argument line '^/vtiger(/.*|$)'
« on: December 23, 2008, 06:45:30 PM »
Attempt to install vtiger on smeserver 7.4 with php-5.1.6 using this howto

Quote
mkdir -p /opt/vtiger

Quote
mysql
create database vtigerdb DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
grant all privileges on vtigerdb.* to 'vtigeruser'@'localhost' identified by 'mysqlpassword';
flush privileges;
quit


Quote
wget http://heanet.dl.sourceforge.net/sourceforge/vtigercrm/vtigercrm-5.0.4.tar.gz


Quote
tar xvzf vtigercrm-5.0.4.tar.gz
cd vtigercrm
mv ./* /opt/vtiger/

##set permission

Quote
chown -R :www /opt/vtiger/
chmod -R o-rwx /opt/vtiger/
chmod -R g-w /opt/vtiger/
chmod g+w /opt/vtiger/config.inc.php
chmod -R g+w /opt/vtiger/cache/
chmod -R g+w /opt/vtiger/storage/
chmod -R g+w /opt/vtiger/install/
chmod g+w /opt/vtiger/install.php
chmod g+w /opt/vtiger/tabdata.php
chmod g+w /opt/vtiger/parent_tabdata.php
chmod -R g+w /opt/vtiger/user_privileges/
chmod -R g+w /opt/vtiger/Smarty/cache/
chmod -R g+w /opt/vtiger/Smarty/templates_c/
chmod -R g+w /opt/vtiger/modules/Emails/templates/
chmod -R g+w /opt/vtiger/test/*
chmod -R g+w /opt/vtiger/logs/
chmod -R g+w /opt/vtiger/modules/Webmails/tmp/


mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts

nano /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90vtiger


Quote
Alias /vtiger /opt/vtiger
<Directory /opt/vtiger>
       AddHandler php5-cgi .php
       Action php5-cgi /php5-cgi/php
       AllowOverride None
       order allow,deny
       allow from all
       Satisfy all
</Directory>


nano /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/90vtigerRewrite

Quote
{
   $haveSSL = (exists ${modSSL}{status} and ${modSSL}{status} eq "enabled") ?  'yes' : 'no';
   $OUT = '';
       if (($port eq "80") && ($haveSSL eq 'yes'))
       { 
           $OUT .= "   RewriteCond  %{remote_addr} !^127\.0\.0\.1\n";
           $OUT .= "    RewriteRule ^/vtiger(/.*|\$)    https://%{HTTP_HOST}/vtiger\$1 [L,R]\n";
       }
}

expand-template /etc/httpd/conf/httpd.conf


httpd -t


sv t /service/httpd-e-smith

https://ServerIPAdress/vtiger


but it fails when I run this command
#/etc/init.d/httpd restart

#/etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Syntax error on line 503 of /etc/httpd/conf/httpd.conf:
RewriteRule: bad argument line '^/vtiger(/.*|$)'
                                                           [FAILED]



« Last Edit: December 23, 2008, 07:15:50 PM by jmbac »

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Vtiger error "RewriteRule: bad argument line '^/vtiger(/.*|$)'
« Reply #1 on: December 24, 2008, 02:07:24 AM »
Have you placed this post into the correct forum?

Maybe your question would be better posed in the contributions forum.

Kind Regards

S