Hi, I have written a cron job in PHP that restarts apache. The problem is this...if I run the script from the command line, it restarts apache fine. If cron runs the script (as root) this is the output from the restart command:
/usr/local/apache/sbin/apachectl graceful: configuration broken, ignoring restart
/usr/local/apache/sbin/apachectl graceful: (run 'apachectl configtest' for details)
However, if I restart apache from the command line using that same path/script, it works fine.
What is different about running scripts from cron compared to running them from command line?
Thanks in Advance.