Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Restarting website services

Posted on 2015-01-15
3
Medium Priority
?
90 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 600 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 900 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

Cyber Threats to Small Businesses (Part 2)

The evolving cybersecurity landscape presents SMBs with a host of new threats to their clients, their data, and their bottom line. In part 2 of this blog series, learn three quick processes Webroot’s CISO, Gary Hayslip, recommends to help small businesses beat modern threats.

Question has a verified solution.

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

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month7 days, 18 hours left to enroll

824 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