Can you turn off safe_mode for a global alias path or directory?
| From: | Andrew Nelson | Date: | Wed, 13 Aug 2003 05:25:17 +0000 |
| Subject: | Can you turn off safe_mode for a global alias path or directory? | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-11419@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.
_________________________________________________________________
ninemsn Extra Storage comes with McAfee Virus Scanning - to keep your Hotmail account and PC safe. Click here http://join.msn.com/