Re: Exec don't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg Donald wrote:
On 5/10/05, Juan Pablo Herrera <jpherrera@xxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux