I'd create a batchfile / bash-script that performs the action as the proper user in the os-specific language, and then `` or qx
But i'm not keen on having a cgi-script call a apache restart.
I'd use Webmin
, (running on windows as well i see)!, it's running it's own webservice.
"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.