Solved

Restarting website services

Posted on 2015-01-15
3
56 Views
Last Modified: 2015-06-02
We have a public website that is hosted on a 3rd party Linux\Apache server.
I’m not a Linux guy and have limited access to this server.
We have a 3rd party website developer that created the site and maintains it for us.
This server also serves as a application server for some ancillary applications as well.
Occasionally the website crashes, and the developer tells us that the entire server needs to be rebooted to get the website running again (yet our other applications are running fine)
This reboot is problematic as it stops all the other applications and they are a hassle to restart.
Does anyone know how to restart the web services or some other way to restart the crashed website without rebooting the entire server?
I apologize for being short on details, as this is not my forte.
If you have specific questions about details I may be able to chase them down.

Thanks in advance for any help,
John
0
Comment
Question by:SA_Admin
3 Comments
 
LVL 14

Assisted Solution

by:Brad Groux
Brad Groux earned 200 total points
ID: 40551512
See the article: How to Restart an Apache Webserver.

# /etc/init.d/apache2 restart

Open in new window


The Linux distribution you are running may change the steps.
0
 

Expert Comment

by:sachindurge
ID: 40553033
Do you have any server log or webservice access log  ? why its website crash require to restart server ?
0
 
LVL 3

Accepted Solution

by:
Bahloul earned 300 total points
ID: 40555980
Hi,

As you mentioned that you have a limited access to the server you can't perform this task without an assigned privilege through sudoers file here is the the steps which running only by root user :-

# visudo

Append following line:

username  hostname=/etc/init.d/httpd start, /etc/init.d/httpd stop,/etc/init.d/httpd restart, /sbin/services httpd restart

and you run using the following CMD :-

$ sudo /etc/init.d/httpd restart

For Apache :-

$ sudo /etc/init.d/apache2 reload

Note :-

/etc/init.d/apache2 restart    kills the server process and then restarts it
/etc/init.d/apache2 stop        kills the server process
/etc/init.d/apache2 start       starts the server

Bahloul.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello, As I have seen there a lot of requests regarding monitoring and reporting for exchange 2007 / 2010 / 2013 I have decided to post some thoughts together and link to articles that have helped me. Of course a lot of information you can get…
The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question