I can run a script as the linux user apache. But when I try to invoke the same through a web-page running on the server (I am using the php system command) it does not execute, and I get a return value of 127. This script takes really long to run, can run for several minutes sometimes.
I am clueless about why this is happening... Any suggestion to how a user can call it on a web server?
On Tuesday 26 December 2006 21:22, Pascal Nunes wrote:
I can run a script as the linux user apache. But when I try to invoke the same through a web-page running on the server (I am using the php system command) it does not execute, and I get a return value of 127. This script takes really long to run, can run for several minutes sometimes.
I am clueless about why this is happening... Any suggestion to how a user can call it on a web server?
Apache has a predefined timeout for a script to complete. If it times out then apache terminates it. Look up the error code.