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
[EMAIL PROTECTED]
Business Excellence Development
Phi.dot Internet Systems


-----Original Message-----
From: MIKE YRABEDRA [mailto:[EMAIL PROTECTED]
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to