PDA

View Full Version : Safe Mode - A B.U.G ???


donnie
2003-09-11, 12:40 PM
Hi all,
I'm running a linux RedHat 7.3 (apache build without phpSuexec) . "SafeMode On" on my server.

My actual problem is that I want to exclude one of my sub-Domain from Safe Mode. I tried the following solutions but none of them work.


1) edit /usr/local/apache/conf/httpd.conf

And add the following to the VirtualHost entry(SubDomain)

<IfModule mod_php4.c>
php_admin_flag safe_mode off
</IfModule>

2) Something similar to the above :

<IfModule mod_php4.c>
php_admin_value safe_mode 0
</IfModule>


3)Create a blank php.ini in the directory (folder of subdomain) and put in it the safe variable turned off.


But NONE of the above solution works for me.

Please help me.

QT
2003-09-19, 11:39 AM
Find the section that looks like the below entry in /usr/local/apache/conf/httpd.conf and add the php_admin_flag line so it looks like this:


<VirtualHost 1.2.3.4>
<stuff here>
ServerName somedomain.com
<more stuff here>
php_admin_flag safe_mode off
</VirtualHost>