in reply to restart apache web server from CGI script
Why don't you perfom some kind of request in your CGI which creates a text file somewhere in f.e. /tmp if a certain condition returns true. Then you let root or Administrator run a task every minute to check if this file exists. If so, root / Administrator can restart you Apache Server.
You also might want to include " if ($^O eq Win32) {...} elsif ($^O eq Linux) {...}
Marcel
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: restart apache web server from CGI script
by avo (Pilgrim) on Jan 04, 2006 at 18:59 UTC |