php-general | 2005051
Date: 05/12/05
- Next message: Amir Mohammad Saied: "[PHP] Re: Posts taking over an hour to be displayed"
- Previous message: Shaw, Chris - Accenture: "RE: [PHP] Posts taking over an hour to be displayed"
- In reply to: Greg Donald: "Re: [PHP] Exec don't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Amir Mohammad Saied: "[PHP] Re: Posts taking over an hour to be displayed"
- Previous message: Shaw, Chris - Accenture: "RE: [PHP] Posts taking over an hour to be displayed"
- In reply to: Greg Donald: "Re: [PHP] Exec don't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

