bad flag delimiters php 5.5 anf php5.3 always not work

Dauser2007

Verified User
Joined
Dec 5, 2007
Messages
209
bad flag delimiters php 5.5 and php5.3 always not work

dataskq: command: action=rewrite&value=httpd
Restarting php-fpm53.
Gracefully shutting down php-fpm53: . done
Starting php-fpm53: done
Restarting apache.
Stopping httpd: [FAILED]
Starting httpd: AH00526: Syntax error on line 41 of /usr/local/directadmin/data/users/admin/httpd.conf:
RewriteCond: bad flag delimiters


Code:
[root@host custombuild]# vi options.conf 

#PHP Settings
php1_release=5.5
php1_mode=mod_php
php2_release=5.3
php2_mode=php-fpm
opcache=yes
htscanner=yes
php_ini=yes
php_timezone=Asia/Shanghai
php_ini_type=production
ioncube=yes
zend=no
suhosin=no
x_mail_header=yes

#MySQL Settings
mysql=5.6
mariadb=10.0
mysql_inst=no
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
webserver=apache
litespeed_serialno=trial
modsecurity=no
modsecurity_ruleset=comodo
apache_ver=2.4
apache_mpm=auto
mod_ruid2=no
harden_symlinks_patch=yes
use_hostname_for_alias=no
redirect_host=host.eoemcompany.com
redirect_host_https=no

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=yes
roundcube=yes
webapps_inbox_prefix=no

#ClamAV-related Settings
clamav=no
clamav_exim=yes
modsecurity_uploadscan=no
proftpd_uploadscan=no
pureftpd_uploadscan=no
suhosin_php_uploadscan=no
 
Last edited:
looks only working like this :

#PHP Settings
php1_release=5.5
php1_mode=mod_php
php2_release=5.3
php2_mode=fastcgi
 
Please post the output of:
Code:
sed -n 41p /usr/local/directadmin/data/users/admin/httpd.conf
 
what can i do for this ? edit to be RewriteCond %{REQUEST_FILENAME} \.php|PHP2_RELEASE|$


?????
 
It shouldn't be there. Please check:
Code:
grep -r REQUEST_FILENAME /usr/local/directadmin/data/templates/
grep -r REQUEST_FILENAME /usr/local/directadmin/data/users/admin/domains/
 
Finaly i have setting like this:

#PHP Settings
php1_release=5.5
php1_mode=mod_php
php2_release=5.3
php2_mode=fastcgi

--------------------------------
[root@host ~]# grep -r REQUEST_FILENAME /usr/local/directadmin/data/templates/
/usr/local/directadmin/data/templates/custom/virtual_host2.conf: RewriteCond %{REQUEST_FILENAME} -f
/usr/local/directadmin/data/templates/custom/virtual_host2.conf: RewriteCond %{REQUEST_FILENAME} \.php$
/usr/local/directadmin/data/templates/custom/virtual_host2.conf: RewriteCond %{REQUEST_FILENAME} -f
/usr/local/directadmin/data/templates/custom/virtual_host2.conf: RewriteCond %{REQUEST_FILENAME} \.php|PHP2_ RELEASE|$
/usr/local/directadmin/data/templates/custom/virtual_host2_secure.conf: RewriteCond %{REQUEST_FILENAME} -f
/usr/local/directadmin/data/templates/custom/virtual_host2_secure.conf: RewriteCond %{REQUEST_FILENAME} -f
/usr/local/directadmin/data/templates/custom/virtual_host2_secure_sub.conf: RewriteCond %{REQUEST_FILENAME} -f
/usr/local/directadmin/data/templates/custom/virtual_host2_secure_sub.conf: RewriteCond %{REQUEST_FILENAME} -f
/usr/local/directadmin/data/templates/custom/virtual_host2_sub.conf: RewriteCond %{REQUEST_FILENAME} -f
/usr/local/directadmin/data/templates/custom/virtual_host2_sub.conf: RewriteCond %{REQUEST_FILENAME} -f

------------------------------
 
You seem to have custom virtual host templates in /usr/local/directadmin/data/templates/custom. Please remove them if they cause only problems :)
 
aha, i see, i have remove the custom looks work, i make more test now , thanks
 
Last edited:
i just tested , but there still have one issue. the PHP Version Selector looks not function.

php_Selector.jpg
 
Back
Top