How to restart Apache (HTTP) in Linux (Centos)

2 replies [Last post]
Admin
User offline. Last seen 10 hours 19 min ago. Offline
Moderator
Joined: 16/08/2008
Posts:
Points: 236

Anytime you make a change to items such as php.ini, you will need to restart your web server (httpd).  FYI: httpd = http daemon.  On our CentOS servers this generally Apache, but could be something else, particularly if you are using LXAdmin as your webhost manager.

 

For those using our managed servers with root access, here are the commands to do it from the command line:

to restart:

/sbin/service httpd restart

to start:

/sbin/service httpd start

to stop:

/sbin/service httpd stop

 

If you have purchased WHM / cPanel for your host, then you can always go to WHM and use the "Restart Scripts" for any of the core services including HTTP.

 

Regards,

Aztech Support

__________________

For Official Aztech Networks Support - email to support@aztech.net.au

If you appreciated this help, please donate so we can keep the tech info flowing!

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
trolleyboy
User offline. Last seen 46 weeks 5 days ago. Offline
Regular Member
Joined: 08/03/2009
Posts:
Points: 0
Thanks...

Guys,

Thanks for the details, exactly what I was looking for.

Big Thumbs Up.

Cheers.

Admin
User offline. Last seen 10 hours 19 min ago. Offline
Moderator
Joined: 16/08/2008
Posts:
Points: 236
No problems

Hi Trolleyboy,

Absolutely no problem, we actually use these forum technotes for our own reference as well.  That way we always have all the handy tips we have found around the Internet at hand.

Enjoy,

Aaron

__________________

For Official Aztech Networks Support - email to support@aztech.net.au

If you appreciated this help, please donate so we can keep the tech info flowing!

 

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <table> <td> <tr> <b> <i> <u> <div> <span> <p> <br> <option> <form> <input>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options