We would like to be able to gracefully restart our apache from our web interface. We tried the exec() command but that didn't work.
I guess we better call a python or shell script which can restart the apache server.
The end product needs to be a php/xhtml page which has a button to trigger the restart action.
Restart of the apache server will be accomplished by python or shell script.
If possible, also we would like the result to be written on the web page: "Restart succesful" or "Restart failed"
This is a CENTOS 5 box.