Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2005051

Re: [PHP] Exec don't work From: Burhan Khalid (phplist <email protected>)
Date: 05/12/05

Greg Donald wrote:
> On 5/10/05, Juan Pablo Herrera <jpherrera <email protected>> wrote:
>
>>Hi!
>>I using php version 4.3.10. I have a script that used the exec
>>function. Well it script only work from shell, but not work form web
>>browser.
>>My php.ini:
>>safe_mode Off Off
>>safe_mode_exec_dir no value no value
>>Have somebody experience in this problem?
>
>
> Is it possible your mod_php is using a different php.ini than your cli php?

In addition to the thing mentioned above, make sure you check the
following things :

1. Is mod_security enabled on the server? (check the logs to find this out)
2. Is the command that you want to run in the path of the Apache user?
If this is not true, then you will need to give a full path to the
program, not just its executable name. A good way to test this is to
run your command line script as Apache.
3. Of course, checking permissions on the program is obvious.

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