I have a small shell script like this:
# execute some binaries
# write some files
# echo some more
Which is called in a .php file like this:
$debug=shell_exec($pathTo/$shellScript.' -s '.$params);
The script generates output as expected, the results of the script (wrinting some file) are correct, running the script from shell gives me what I expect it to do.
Then why do I get this (as output from the php file):
Fatal error: Maximum execution time of 30 seconds exceeded in /path/to/php_file.php on line #lunenumber
BTW: the script terminates faaaaar less than 30 secs. Normal execution time from shell is like 2 secs...