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

Help!! Now my server won't work!!

Please refer to my earlier question first.  I followed chrisbill's advice and deleted the "indexes" text in my access.conf file. Then I typed in the command as follows:
   $ kill -1 'ps aux | grep "httpd" | grep "root" | awk '{ print $2 }'
Now my server won't work! Help!
  • 2
  • 2
1 Solution
TJWinAuthor Commented:
Edited text of question
Are there any httpd processes still running, or did it crash during the restart.  Check the last few lines of the error log file, you may have made a typo editing the Apache configuration files.  The log files should be in /var/log/httpd/error_log, and /var/log/httpd/access_log.  

When Apache was installed, a start/stop script was added as /etc/rc.d/init.d/httpd; this is how Apache gets started automagically during system boot.  Rather than type the more complex command-line with single-quotes, double-quotes, and back-ticks, you may find it easier to do the following:

  $ /etc/rc.d/init.d/httpd  restart

The script accepts four arguments; start, stop, restart, status.  When you make configuration file changes you will want to run the restart.  

After a restart, you should always check the error_log.  If the restart was successful you should see the following two lines at the bottom of the error_log:

  [datestamp] SIGHUP received.  Attempting to restart.
  [datestamp] Server configured -- resuming normal operations.

If you saved a backup copy of your config files prior to editing them (you did, didn't you), you can restore them and start the server like so:

  $ /etc/rc.d/init.d/httpd  start

Then examine the error_log, and correct the lines in the conf files that are in error, and then restart again.  

Hope this helps.  
I just re-read the previous question again.  You were only supposed to delete the WORD indexes, not the entire line.  

Restore your backup copy of access.conf, and edit the line removing the word indexes.

TJWinAuthor Commented:
I DID only delete the word indexes.  I'll try your suggestions. Thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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