FORUM HOME | WHUK BLOG   
WEB HOSTING UK AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM
PHP LINUX SHARED HOSTING WINDOWS ASP.NET HOSTING PACKAGES
ECOMMERCE HOSTING ASP MSSQL MS ACCESS ODBC FRONTPAGE HOSTING
CPANEL WHM FANTASTICO RESELLER DEDICATED SERVER WEB HOSTING
CHEAP PLESK CPANEL HTML MYSQL BEST UK VPS HOSTING COMPANY
CHEAP RELIABLE UK HOSTING PROVIDER SINCE 2001
MANAGED WEB HOSTING SERVICE
AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM

Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum » Technical Support » Control Panel Questions

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 14-07-09, 07:18 PM
octavio's Avatar
new member
 
Join Date: Jul 2009
Location: in datacenter
Posts: 2
Default How to reload apache config on windows

Hello, i have some problems reloading apache configuration on an windows machine.
The restart command doesn't work, it did not reload the config.
Actually i use a bat file within a cron that kill's the apache's processes and the start the process. The operation take about 30 - 40 sec depending how many connections are served in that moment by apache.

It's there an apachectl similar command on windows ?

Any help is really appreciated.
Reply With Quote

  #2 (permalink)  
Old 15-07-09, 11:05 AM
Senior System Administrator
 
Join Date: Nov 2007
Posts: 47
Thumbs up Hello

Hello,

Actually, it depends how you have installed Apache on your windows machine. While installing the default Apache service named "Apache", you have to choose the "Install as Service for All Users", Once this is done you can start the "Apache" service by opening the Services window (in the Control Panel, hidden in "Administrative Tools"), selecting Apache, then clicking on Start. Apache will now be running, hidden in the background. You can later stop Apache by clicking on Stop.

As an alternative to using the Services window, you can start and stop the "Apache" service from the command line with :

Quote:
NET START APACHE
NET STOP APACHE


You can refer Using Apache with Microsoft Windows - Apache HTTP Server which will give you detailed information about, how to run Apache as a Console Application and run Apache as a service.

Hope this information will help you.

----------------
Best Regards,
Seb
Web Hosting UK | Dedicated Server | VPS Hosting

Last edited by Sebastian; 15-07-09 at 11:16 AM.
Reply With Quote

  #3 (permalink)  
Old 19-07-09, 07:49 AM
octavio's Avatar
new member
 
Join Date: Jul 2009
Location: in datacenter
Posts: 2
Default

the net stop / net start works fine, i'll have used but the time needed for this operation take ~ 1 min, so i need a fast solution
since the apchectl exist on linux i'm wondering if is the an similar command on windows.
Reply With Quote

  #4 (permalink)  
Old 19-07-09, 12:09 PM
Senior System Administrator
 
Join Date: Nov 2007
Posts: 47
Thumbs up Hello

Hello,

There is no apachectl command for windows. Restart is the only way, even graceful is not available for Windows.

You can also use following command to restart apache service :

Quote:
\apache\httpd -k restart
However I have found that the restart is not totally reliable and can leave the apache service not started. I generally use stop - start which only takes a few seconds and is safe.

----------------
Best Regards,
Seb
http://www.webhosting.uk.com/

Last edited by Sebastian; 19-07-09 at 12:19 PM.
Reply With Quote

Reply

Tags
restart apache

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 04:11 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright 2001-2010 Web Hosting UK. All rights reserved.
Web Hosting UK Forum





Site Map

Shared Cloud
Shared Cloud From £1

Affiliate Program
Earn up to £300 Per Sale

Dedicated Servers
Dedicated Server Hosting

Cloud Hosting
Cloud Server Hosting

Load Balanced Server
Load Balancing Server

VPS Hosting
Linux VPS Hosting

Windows VPS
Windows 2003 VPS

Zimbra Hosting
Zimbra Email Hosting

cPanel Hosting
Shared Linux Hosting

Windows Hosting
Shared Windows Hosting

Coldfusion Hosting
Windows Coldfusion Hosting

cPanel Reseller Hosting
Shared Windows Hosting

Windows Reseller
Windows Reseller Hosting

Email Web Hosting
Email Hosting

Semi-Dedicated Server
Semi-Dedicated Hosting

Remote Backup Plans
Offsite Backup Service


cpanel hosting
Knowledgebase Articles

Pre-Sales Question
Web Hosting FAQ's

Dedicated Hosting
Dedicated Server FAQ's

Virtual Private Servers
VPS Hosting

PHP MySQL Hosting
cPanel Hosting

Windows Hosting
ASP MSSQL Hosting

Domain Name
Domain registration FAQ's

CMS Hosting
CMS Hosting FAQ's

Payment Gateways
Payment FAQ's


Support Tutorials

cPanel Tutorials
cPanel Flash Tutorials

Wordpress Tutorials
Wordpress Flash Tutorials

Plesk Tutorials
Plesk Flash Tutorials

PhpMyadmin Tutorials
PhpMyadmin Flash Tutorials

Drupal Tutorials
Drupal Flash Tutorials

Mambo Tutorials
Mambo Flash Tutorials

Joomla Tutorials
Joomla Flash Tutorials

More Hosting Tutorials