>>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
- RE: How to restart the root server from within modperl? Egor Shipovalov
- How to restart the root server from within modperl? Dirk Lutzebaeck
- RE: How to restart the root server from within ... Egor Shipovalov
- Re: How to restart the root server from within ... Dennis Stout
- Re: How to restart the root server from wit... Martin Langhoff
- Re: How to restart the root server from... Dirk Lutzebaeck
- [Slightly OT] Port forwarding (Was: How... Andrew Ho
- Re: How to restart the root server from wit... Dirk Lutzebaeck
- Re[2]: How to restart the root server f... Mike P. Mikhailov
- Re: How to restart the root server from... Frank Maas
- Re: How to restart the root server from... Torsten Foertsch
- Re: How to restart the root server... Dirk Lutzebaeck
- RE: How to restart the root server from within ... Egor Shipovalov