Can you turn off safe_mode for a global alias path or directory?
| From: | Andrew Nelson | Date: | Thu, 14 Aug 2003 12:28:12 +0000 |
| Subject: | Can you turn off safe_mode for a global alias path or directory? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-159559@lists.php.net to get a copy of this message | ||
Hi,
I'm using the FreeBSD Port mod_php4-4.3.1
I have lots of name-based virtual sites which all have:
php_admin_value open_basedir "/domains/sitename.com/
php_admin_value safe_mode "1"
so they can't use PHP to browse around the server.
I do however set a global alias:
Alias /admin "/usr/local/www/data/admin/"
which allows each site to goto the url: http://www.sitename.com/admin
and control a couple of their settings and view stats etc...
Unfortunately, any PHP files in the /admin directory inherit
the php_admin_value from the domain calling them...
Can I turn off safe_mode and open_basedir for my /admin scripts?
This DOESN"T work:
<Directory "/usr/local/www/data-dist/admin">
php_admin_value open_basedir "none"
php_admin_value safe_mode "0"
</Directory>
HELP PLEASE!
Thanks,
Andrew.
_________________________________________________________________
Hotmail is now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/signup.asp