MultiVol
10-06-2002, 03:13 AM
How do I enable just 1 domain or /home/username to have safemode off while the others have safemode on in php.
Much Appreciated, Thanks.
Much Appreciated, Thanks.
![]() | View Full Version : Any Smart Admins Around? MultiVol 10-06-2002, 03:13 AM How do I enable just 1 domain or /home/username to have safemode off while the others have safemode on in php. Much Appreciated, Thanks. ho247 10-06-2002, 03:18 AM You'll need to edit your httpd.conf file, so: [root@server root]# pico /etc/httpd/conf/httpd.conf Then add the following within the <VirtualHost></VirtualHost> tags for the domain that you want to turn safe_mode off: <IfDefine vwh_php4_module> php_admin_flag safe_mode off </IfDefine> ... save the file by pressing Ctrl and X. Restart httpd: [root@server root]# service httpd restart That's it! Alan MultiVol 10-06-2002, 04:21 AM Ok, something is wrong, seems to not work. This is what i have. <VirtualHost iphere> ServerAdmin webmaster@domainhere.com DocumentRoot /home/blahtest/public_html BytesLog domlogs/domainhere.com-bytes_log User blahtest Group blahtest ServerName www.domainhere.com ServerAlias domainhere.com www.domainhere.com CustomLog domlogs/domainhere.com combined ScriptAlias /cgi-bin/ /home/blahtest/public_html/cgi-bin/ <IfDefine vwh_php4_module> php_admin_flag safe_mode off </IfDefine> </VirtualHost> ho247 10-06-2002, 04:27 AM Sorry... those tags are for Ensim servers maybe. Remove the tags and just put: php_admin_flag safe_mode off Regards, Alan MultiVol 10-06-2002, 04:35 AM Yes removed the tags worked. Thank you very much Alan :) ho247 10-06-2002, 04:37 AM No problem... great to be of help :). Alan |