RE: [PHP] Only allow one vhost to use exec() ?



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@xxxxxxxxxx
Business Excellence Development
Phi.dot Internet Systems


-----Original Message-----
From: MIKE YRABEDRA [mailto:lists@xxxxxxxxxx]
Sent: Friday, December 29, 2006 4:53 PM
To: php-general@xxxxxxxxxxxxx
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
.



Relevant Pages

  • Panic: No Init
    ... exec /stand/sysinstall: error 5 ... panic: no init ... And then it reboots. ... Now the weird thing is safe mode will work without a problem. ...
    (freebsd-questions)
  • ffmpeg exec trouble
    ... I installed ffmpeg, and it works good. ... Exec itself works. ... Safe mode is off. ... But from php, no files are generated. ...
    (comp.lang.php)
  • Re: [PHP] problems with exec()
    ... script to move some files around and the script works from the command line. ... Subject: problems with exec() ... PHP General Mailing List ... To unsubscribe, visit: http://www.php.net/unsub.php ...
    (php.general)
  • Re: [PHP] Unable to use exec() in php
    ... system_exec() and execcalls? ... Stop top posting. ... my matlab script. ... PHP General Mailing List ...
    (php.general)
  • Re: [PHP] Re: Random Unique ID
    ... >> Note that this doesn't gonna work when safe mode is on..! ... Ralf S. Engelschall's OSSP UUID library wrapped in a PHP extension ... I quote the wrong guy i think, ... PHP General Mailing List ...
    (php.general)