How do you get the httpd service to start in Linux after an outage?

Posted on 2009-04-23
Last Modified: 2013-12-16
I have a Fedora Core Linux box that is being used as a web server. However, we recently had a power outage, and after the outage the httpd service would not start. Here is the status of the httpd service:

[root@pptp1 sbin]# service httpd fullstatus
ERROR at home.c:150: Unable to find or create ELinks config directory. Please check if you have $HOME variable set correctly and if you have write permission to your home directory.
ELinks: Connection refused
[root@pptp1 /]# service httpd start
Starting httpd: (30)Read-only file system: httpd: could not open error log file /etc/httpd/logs/error_log.
Unable to open logs

You may also see the attached ErrorLog file for more details.

Please help with getting the httpd service started.

Question by:Abarros22
    LVL 40

    Expert Comment

    are you in single user mode?

    please run

    who -r

    and if in single user mode try to go to multi-user mode by running

    init 5

    to remount root filesystem in read+write mode use

    mount -n -o remount /
    LVL 5

    Accepted Solution

    did you make sure the disk on which the document root or home directory of user apache is working ?
    if so can you access it. try to reboot manually and fsck all the file systems.
    maybe some files are corrupted.


    Author Closing Comment

    We fsck the file systems and the httpd service started again.

    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

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    745 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

    14 Experts available now in Live!

    Get 1:1 Help Now