Ming-Chuan Huang wrote:
> Hi, all
>
> I encounter a problem. I need to restart my web server in CGI code.
> I had tried execvl() or system() to invoke web server but the port address
> had been blocked by itself. I just can restart WEB server by another
> port. Does anyone have idea to solve this problem???
>
Assuning that the server is run by apache and you only need to restart
it in order to reread the configuration files you can try to run
'apachectl restart'
Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #337974 <http://counter.li.org/>
|