You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Brian Mearns <me...@gmail.com> on 2009/03/23 12:03:02 UTC

Re: [users@httpd] Reload configuration file without restart in windows

On Mon, Mar 23, 2009 at 1:37 AM, ken <ke...@googlemail.com> wrote:
> hi,
>
> I'm using Apache 2.2 in Windows2003 Server.
> After i change the configuration file. it  takes a very long time during
> Apache restart .
> Is there any way to reload  configuration file without restart Apache?
>
> Any help will be appreciate.

You can try "graceful" instead of "restart" as the argument to
apachectl, but I don't know that that will be any faster. My guess is
parsing the config file is what's taking so long.

-Brian


-- 
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://pgp.mit.edu/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Reload configuration file without restart in windows

Posted by Brian Mearns <me...@gmail.com>.
On Mon, Mar 23, 2009 at 7:24 AM, André Warnier <aw...@ice-sa.com> wrote:
> André Warnier wrote:
>>
>> Brian Mearns wrote:
>>>
>>> On Mon, Mar 23, 2009 at 1:37 AM, ken <ke...@googlemail.com> wrote:
>>>>
>>>> hi,
>>>>
>>>> I'm using Apache 2.2 in Windows2003 Server.
>>>> After i change the configuration file. it  takes a very long time during
>>>> Apache restart .
>>>> Is there any way to reload  configuration file without restart Apache?
>>>>
>>>> Any help will be appreciate.
>>>
>>> You can try "graceful" instead of "restart" as the argument to
>>> apachectl, but I don't know that that will be any faster. My guess is
>>> parsing the config file is what's taking so long.
>>>
>> The OP is using Apache under Windows, presumably as a Windows Service. I
>> don't think apachectl is used in that case.  I also don't know if the
>> Windows Service version can do the equivalent of the "graceful" or "reload"
>> options.  I think it just stops the entire service and restarts it.
>>

Good to know, thanks André.

-Brian

-- 
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://pgp.mit.edu/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Reload configuration file without restart in windows

Posted by André Warnier <aw...@ice-sa.com>.
André Warnier wrote:
> Brian Mearns wrote:
>> On Mon, Mar 23, 2009 at 1:37 AM, ken <ke...@googlemail.com> wrote:
>>> hi,
>>>
>>> I'm using Apache 2.2 in Windows2003 Server.
>>> After i change the configuration file. it  takes a very long time during
>>> Apache restart .
>>> Is there any way to reload  configuration file without restart Apache?
>>>
>>> Any help will be appreciate.
>>
>> You can try "graceful" instead of "restart" as the argument to
>> apachectl, but I don't know that that will be any faster. My guess is
>> parsing the config file is what's taking so long.
>>
> The OP is using Apache under Windows, presumably as a Windows Service. I 
> don't think apachectl is used in that case.  I also don't know if the 
> Windows Service version can do the equivalent of the "graceful" or 
> "reload" options.  I think it just stops the entire service and restarts 
> it.
> 
Addendum :
This page (which I strongly advise the OP to read in full) :
http://httpd.apache.org/docs/2.2/platform/windows.html
has this to say :

You can also restart a running service and force it to reread its 
configuration file by using:

httpd.exe -k restart

So maybe to OP could try that and see if it is faster ?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Reload configuration file without restart in windows

Posted by André Warnier <aw...@ice-sa.com>.
Brian Mearns wrote:
> On Mon, Mar 23, 2009 at 1:37 AM, ken <ke...@googlemail.com> wrote:
>> hi,
>>
>> I'm using Apache 2.2 in Windows2003 Server.
>> After i change the configuration file. it  takes a very long time during
>> Apache restart .
>> Is there any way to reload  configuration file without restart Apache?
>>
>> Any help will be appreciate.
> 
> You can try "graceful" instead of "restart" as the argument to
> apachectl, but I don't know that that will be any faster. My guess is
> parsing the config file is what's taking so long.
> 
The OP is using Apache under Windows, presumably as a Windows Service. 
I don't think apachectl is used in that case.  I also don't know if the 
Windows Service version can do the equivalent of the "graceful" or 
"reload" options.  I think it just stops the entire service and restarts it.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org