Re: Re: Doing system things with PHP
| From: | Chris Shiflett | Date: | Mon, 26 Aug 2002 02:12:05 +0000 |
| Subject: | Re: Re: Doing system things with PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114092@lists.php.net to get a copy of this message | ||
Yes, you can make Apache reload a config file without restarting. You must send it a SIGHUP:
kill -HUP
cat /var/run/httpd.pid
If you execute this as nobody, I believe it will work, but I haven't tested it.
Also, I believe Apache will restart when given a "kill -1". If the above suggestions works, so will this.
Happy hacking.
Chris
Eric Pignot wrote:
there is no way to apply a config file to apache without restarting the webserver.... "Liam Mackenzie" <phplist@operationenigma.com> a écrit dans le message de news: 008f01c24c98$895404c0$0e00a8c0@luke...I need to restart apache using PHP. Is this possible? Or, ar least apply a modified config file...