RE: [PHP] Only allow one vhost to use exec() ?
| From: | Aras | Date: | Fri, 29 Dec 2006 15:15:29 +0000 |
| Subject: | RE: [PHP] Only allow one vhost to use exec() ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246286@lists.php.net to get a copy of this message | ||
Enable safe mode ON, and specify that specific directory in safe mode exec
dir in php.ini.
Alternatively, those settings can be set within Apache configuration
(httpd.conf) per any Vhost directive.
<Virtualhost ....>
...
..
..
php_admin_flag safe_mode 1
...
</Virtualhost>
Aras Koktas
manager@phidot.com
Business Excellence Development
Phi.dot Internet Systems
-----Original Message-----
From: MIKE YRABEDRA [mailto:lists@323inc.com]
Sent: Friday, December 29, 2006 4:53 PM
To: php-general@lists.php.net
Subject: [PHP] Only allow one vhost to use exec() ?
I want to be able to use the exec() function on my site, but do not want to
allow all the other users that same ability.
IS there a safe and secure way to limit the use of that function to a single
virtualhost...maybe even a single page or directory?
--
Mike B^)>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php