LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2003, 07:44 AM   #1
Neb
LQ Newbie
 
Registered: Apr 2003
Location: New York
Distribution: Red Hat, SuSe
Posts: 29

Rep: Reputation: 15
HELP! I've deleted the /etc/httpd folder


Now what!!????

Attempting to upgrade to Apache v2.0.45, I figured that since this version was installing into the /usr/local/apache2 folder, I could go ahead and delete the /etc/httpd folder.

I guess not!

Now the httpd service won't start because the stuff that was in there is ......well.....gone.

Any advice for someone learning the hard way?

TIA
 
Old 05-15-2003, 07:46 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
remove and reinstall (or just force an install) of apache again, that's where ALL config files are stored so everything has gone, unless you can get it back from your quarter hourly backup.. ;-)
 
Old 05-15-2003, 08:00 AM   #3
Neb
LQ Newbie
 
Registered: Apr 2003
Location: New York
Distribution: Red Hat, SuSe
Posts: 29

Original Poster
Rep: Reputation: 15
I did that....or at least thought I did.

I went back to the /root/httpd.2.0.45 folder and performed the commands:

./configure
make
make install

the /etc/httpd folder did not get recreated.
 
Old 05-15-2003, 08:06 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well quite often there will be an example config setup, might be /usr/share/doc/httpd/httpd.conf or such like...check what files were actually installed during the "make install"
 
Old 05-15-2003, 09:58 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Well, you might have also just deleted the old stuff. The new httpd.conf file might be on your system. If you are afraid it won't start because you are using your old init.d script, well it is probably looking in the old place. Try a locate:
(as root)
updatedb &&
locate httpd.conf

If something turns up, there it is. Now just edit to your needs, and edit your init.d script to show the new location (or symlink to the old).

HTH

Cool
 
Old 05-16-2003, 07:22 AM   #6
Neb
LQ Newbie
 
Registered: Apr 2003
Location: New York
Distribution: Red Hat, SuSe
Posts: 29

Original Poster
Rep: Reputation: 15
I 'located' the httpd.conf file, made the necessary adjustments and now, I'm in business again!!

Thanks much!!
Neb
 
Old 05-16-2003, 07:29 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Woohoo! Gotta love the feeling of fixing your problem, it's always better than a "oh well, I'll just reinstall"

Cool
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted Folder vkrishn1 Linux - General 3 11-17-2004 10:39 AM
deleted httpd.conf - apache still finds it after restart jordanthompson Linux - Software 1 10-16-2004 02:08 PM
can't deleted a folder! santasballz Linux - Newbie 2 02-22-2004 12:03 AM
Deleted /etc/httpd WizardLock Linux - General 3 06-11-2003 07:03 AM
Deleted /boot folder awlad Slackware 9 02-21-2003 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration