I spent ages trying to get round this PHP warning today:
"PHP Warning: shell_exec(): Unable to execute '[any bash command]'"
I hadn't changed anything and it was working 5mins before so what was wrong?
A colleague of mine suggested restarting Apache... and it worked!
I don't fully understand why, something to do with Apache running out of resources or something. Anywho, thought it might be useful for someone.