Forum Moderators: coopster

Message Too Old, No Replies

way to change php config for one path?

         

sodani

7:17 pm on Apr 20, 2007 (gmt 0)

10+ Year Member



I see that the phpinfo() command shows 'master' and 'local' settings for php configuration, so I thought that this might be possible. I'd like to turn safe mode off for one subdomain, but not my entire server. I also don't want to use the phpini() command to do this because that would mean a lot of scripts to edit. Is there a way to do this using the .htaccess or something?

eelixduppy

8:44 pm on Apr 20, 2007 (gmt 0)



safe_mode cannot be set within a php script or in .htaccess. It can only be changed within the php.ini or httpd.conf configuration files. You may have to change it for the whole site, or find another way around it.

sodani

5:06 pm on Apr 22, 2007 (gmt 0)

10+ Year Member



Got it. Do you happen to know if there is a list of php config options that can be modified in using phpini or .htaccess?

eelixduppy

9:20 pm on Apr 22, 2007 (gmt 0)



>> Do you happen to know if there is a list of php config options that can be modified in using phpini or .htaccess?

Appendix H. php.ini directives [php.net] :)