Results 1 to 9 of 9
Thread: httpd.conf file deleted :(
-
10-29-2006, 02:40 PM #1Over there
- Join Date
- Oct 2004
- Location
- LA, CA
- Posts
- 1,069
httpd.conf file deleted :(
While editing my httpd.conf file, I guess I accidently selected half of it and then pressed a key, deleting a huge chunk of it. httpd won't start now....what should I do? Where can I find another one? I searched google but I didn't get any good leads.
-
10-29-2006, 03:09 PM #2Web Hosting Master
- Join Date
- Nov 2005
- Location
- Minneapolis, MN
- Posts
- 1,648
Restore from backups?
Eric Spaeth
Enterprise Network Engineer :: Hosting Hobbyist :: Master of Procrastination
"The really cool thing about facts is they remain true regardless of who states them."
-
10-29-2006, 03:17 PM #3Aspiring Evangelist
- Join Date
- Aug 2004
- Location
- France
- Posts
- 407
If cpanel is running on your server, you might try to use this script :
/scripts/rebuildhttpdconf
Good luck
-
10-29-2006, 06:31 PM #4Over there
- Join Date
- Oct 2004
- Location
- LA, CA
- Posts
- 1,069
I don't have a backup and the server doesn't have a control panel on it.
-
10-29-2006, 06:38 PM #5Web Hosting Master
- Join Date
- Jun 2003
- Location
- UK
- Posts
- 6,616
Is there anthing in /etc/httpd/conf that looks like a backup? If not you will have to re-write it manaully
Russ Foster - Industry Curmudgeon
Freelance Sysadmin for Hire - email vaserv@gmail.com
-
10-29-2006, 06:49 PM #6Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
If you are on a server with "locate"
locate httpd.conf
You'll probably find httpd.conf-dist sitting there somewhere. Take that as a start and go from here.
Myself, I check in all key configuration files to a version control system. My entire /usr/local/etc and certain files in /etc (esp /etc/named...), for all my machines, sits in a Mercurial repository. Just an "hg clone ..." away from recovery if need be.“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”
-
10-29-2006, 06:50 PM #7Over there
- Join Date
- Oct 2004
- Location
- LA, CA
- Posts
- 1,069
There isn't....but I don't know what should be in it. Would using one from an earlier or later version work?
-
10-29-2006, 06:53 PM #8Web Hosting Master
- Join Date
- Jun 2003
- Location
- UK
- Posts
- 6,616
If its from 1.3.x or 2.x then you should be able to drop it in without major issue
Russ Foster - Industry Curmudgeon
Freelance Sysadmin for Hire - email vaserv@gmail.com
-
10-30-2006, 10:04 AM #9LORD OF THE RINGS
- Join Date
- Dec 2005
- Location
- Internet
- Posts
- 1,352
yeah, if it copies from another server, there is a chance of syntax errors (eg: module mismatch) and it will display the exact syntax error while trying to restart the http.so, you have to edit the http.conf file for the apache server to work properly.