Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 1st, 2000, 12:26 AM
Helicon Helicon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 15 Helicon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How do you properly shutdown the Httpd Web Server on Linux system and restart it?

Helicon

Reply With Quote
  #2  
Old November 1st, 2000, 12:58 AM
#6 #6 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Melbourne, Victoria, Australia
Posts: 104 #6 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to #6
assuming these paths of course

/usr/local/apache/bin/apachectl graceful

or if you're a vicious maniac use

/usr/local/apache/bin/apachectl restart

Reply With Quote
  #3  
Old November 1st, 2000, 07:17 PM
Qui-Gon Qui-Gon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 2 Qui-Gon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
# /etc/rc.d/init.d/httpd stop

# /etc/rc.d/init.d/httpd start

Reply With Quote
  #4  
Old November 1st, 2000, 07:46 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
To PROPERLY shutdown and restart, use "/path/to/apachectl graceful" at ALL time.

Don't use:
# /etc/rc.d/init.d/httpd stop
# /etc/rc.d/init.d/httpd start

Reply With Quote
  #5  
Old November 2nd, 2000, 05:45 PM
Qui-Gon Qui-Gon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 2 Qui-Gon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
why?

Reply With Quote
  #6  
Old November 2nd, 2000, 06:15 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>why?

Sometime you think httpd is running but in fact it's not, If you do a "httpd stop", it will possibly corrupt your httpd. On the other hand while you think it's NOT running but in fact it's running, then trying to START it, it increases the chance of corrupting your httpd. Not only that, apachectl also rm your pid file properly.

apachectl comes with Apache (written by my former co-worker) and it does nothing but to PROPERLY start/stop/restart and debugging. When you doing a "apachectl graceful", you need not to worry whether or not httpd is running, if it's NOT running, it will try to start. If it's already running, it will try to restart. All these works are done for you automatically.

"man 1 apachectl" to find out more. If it's in /usr/local/apache/s?bin/, add /usr/local/apache to your man path.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > How to restart Apache Httped Web server?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT