Solved

Restarting website services

Posted on 2015-01-15
3
36 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
New Relic recently released its Synthetics product that allows for the creation of performance monitors that periodically test a site's performance. If you wish to test an interactive workflow New Relic employs Selenium WebDriverJS to run those test…
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…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now