problems restarting APACHE2 from PHP5
Hi all -
Im having a strange problem.
I have a php script that uses
system("sudo ....
to call a script that works perfectly except when it gets to the last stage where it attempts to restart apache2 (/etc/init.d/apache2 restart)
When the script tries to restart apache it crashes apache, and I have to manually restart it from the command line.
I assume the problem is due to the fact that I am trying to restart apache from the apache user (www-user).
Anyone know how I can get around this problem?
Thanks in advance..
|