VH-Robert
01-13-2003, 10:15 AM
How do I turn safe mode off with a .htaccess file?
Thanks.
Thanks.
![]() | View Full Version : Safe Mode Off VH-Robert 01-13-2003, 10:15 AM How do I turn safe mode off with a .htaccess file? Thanks. Saeven 01-13-2003, 02:07 PM Turning things on and off with .htaccess files is not recommended. You should use directory entries in your vhost.conf or httpd.conf files. <Directory "/path/to/webroot/for/domain" > php_admin_value safe_mode off </Directory> if however your are adamant on .htaccess files, you can just do the following if your server is configured to work with htaccess php flags. Insert this line into your .htaccess file: php_flag safe_mode off mattwade 01-13-2003, 09:42 PM the safe mode configuration directive can only be turned on or off in the php.ini or the httpd.conf file. It is not allowed to turn it on or off via a .htaccess file or on a per script basis. To do so would defeat the purpose of safe mode. Saeven 01-13-2003, 09:48 PM Matt It was in fact possible to do this via htaccess. The idea was to chown them to a superuser so that normal users wouldn't have save rights. mattwade 01-13-2003, 10:06 PM The php manual states that is can't be done via .htacess: http://www.php.net/manual/en/function.ini-set.php I have also tried on my 4.2.3 installation and placing : php_flag safe_mode on in my .htaccess file doesn't change anything.... |