Solved

Automatically restarting Apache (httpd)

Posted on 2004-03-28
1
327 Views
Last Modified: 2010-03-04
Hi!

I have set up a Server using Fedora Core with Apache as the web server. Sometimes the httpd daemon dies and I would like to know if there are settings I can configure or measures I can take to automatically restart Apache when this happens.

:)
_haylow_
0
Comment
Question by:_haylow_
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 125 total points
ID: 10701996
write something like this in your cron:
* * * * * /bin/ps ax|/bin/grep '[h]ttpd' || /opt/apache/bin/apachectl start
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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