>>how can I restart the root httpd server from within modperl?

Use `at` to schedule it a minute in the future -- effectively forking it.

Note that normally apache starts as root and runs as an unprivileged user. If this is the case you _can_ achieve it using a suid wrapper or sudo, but you'll risk opening a very serious security hole in the system. So don't. Instead, run apache as a regular user, on a high port.

If you absolutely need to be in port 80, either setup a simple lightweight apache on port 80 as a reverse proxy (see the mod_perl guide) or, even simpler, do some port forwarding from port 80 to your high port of choice.

regards,



martin


Reply via email to