[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2964
  • Last Modified:

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

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.

1 Solution
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 /
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.

Abarros22Author Commented:
We fsck the file systems and the httpd service started again.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now