I'm having a problem executing external commands when the code is executed through the web server (user: www). If I execute the scripts as a user other than www, they all work fine. PHP's safe_mode is OFF.
For example, I can send mail in a script when executed in the shell, but the same script when executed through the browser (i.e, using the web server) fails.
The same happens with shell_exec.
I've verified that other users can execute the scripts. PHP is allowed to create and delete files and all sorts of other things, but calling external commands doesn't work:
Here is the debug output from ZDE when trying to send mail:
Debug Warning: /includes/HSForms.class.php line 584 - mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i '
The sendmail binary has proper privileges... so as far as I can tell, this is not being allowed before that is even tested.
To top it all off, this was ALL working great last week.
TIA for any ideas.