httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Run Scripts As root
Date Fri, 15 Nov 2002 04:12:56 GMT
By the way, I hate to help you do something that is, in general, a bad
idea for someone who isn't very familiar with unix, but using PHP is
surely overkill if all you want to do is HUP named.

First, create a simple script (
killall -HUP named

Then grab sudo and configure it very carefully so that it will allow the
httpd user to run ONLY that single script as root.  Then create a very
basic CGI script:

echo Content-Type: text/plain
echo "Running the script"

Please don't take this as a recommendation of this technique, but it is
probably safer than anything you could do with php.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message