[Gllug] Perl Question

Tethys tet at accucard.com
Mon Mar 10 15:33:39 UTC 2003


Robert Wood writes:

>        I have written a Perl script that adds a virtual host to the
>end of my httpd.conf file from input i give it on a form, and now i
>need the script to run apachectl after its done it, but since this is
>a root command, how can i get the script to run it?

Have apache run on a non-privileged port, and set up port forwarding so
requests to port 80 are redirected to the actual port? Then you can run
apache as a normal user...

Or just use sudo.

Tet

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list