Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 1998-07-16
4
Medium Priority
?
179 Views
Last Modified: 2010-03-18
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!
0
Comment
Question by:TJWin
  • 2
  • 2
4 Comments
 

Author Comment

by:TJWin
ID: 1585219
Edited text of question
0
 
LVL 2

Accepted Solution

by:
blowfish earned 80 total points
ID: 1585220
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.  
0
 
LVL 2

Expert Comment

by:blowfish
ID: 1585221
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.

--cheers
0
 

Author Comment

by:TJWin
ID: 1585222
I DID only delete the word indexes.  I'll try your suggestions. Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

877 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