Re: need help with safe mode and Restrict where PHP is Usable?

From: Date: Wed, 03 Oct 2001 09:55:40 +0000
Subject: Re: need help with safe mode and Restrict where PHP is Usable?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69740@lists.php.net to get a copy of this message
Hi, Both problems can be solved with php directives in httpd.conf or in .htaccess. You can just put php_value safe_mode "off" or php_value engine "off" into <Directory> definitions in httpd.conf to restrict only for some directories or into <Virtual> for virtual servers. (Of course in htaccsess you can only restrict for directories) Arpi 1. > Can I add php_admin_flag safe_mode off to the httpd.conf file to > turn safe mode off for just one site. And leave it on for the rest > of the server. According to the manual this can be done but when I > try it. It does not work. Is there something else I have to do to > make this work properly. > 2. >Is there a way to restrict PHP to certain directories, so that it can >only be used by files within those directories? [...]

« previous php.general (#69740) next »