LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 06-03-2005, 06:41 PM   #1
c--
Member
 
Registered: Sep 2004
Location: Oregon, USA
Distribution: Ubuntu/Debian
Posts: 82

Rep: Reputation: 15
apache2 missing config files


so I was messing arround with apache and messed some stuff up and config files went missing. How can I get them back with default config?
I've tried dpkg-reconfig apache2 and dpkg-reconfig apache2-common as well as reinstalling those through apt. It has recreated most of /etc/apache2 (the part that was messed up) but I still don't have my default file in sites-enabled and there is no apache2.conf file either.

when I run apache2ctl -k start

I get

no listening sockets available, shutting down
Unable to open logs

What does it take to completely reinstall apache?
 
Old 06-04-2005, 05:15 AM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
Try to start the service with sudo /etc/init.d/apache start instead. The file to configure/edit is found at /etc/apache/httpd.conf, not apache2.conf. And a little hint: Make backup of your files when messing with config files, for example:

sudo cp /etc/apache/httpd.conf /etc/apache/httpd.conf.bak

should have saved you of all this trouble .

Good luck!
 
Old 06-04-2005, 02:02 PM   #3
c--
Member
 
Registered: Sep 2004
Location: Oregon, USA
Distribution: Ubuntu/Debian
Posts: 82

Original Poster
Rep: Reputation: 15
ok, no that dosn't help shit. I didn't make backups because they were defualt configs and I thought I could reinstall. second of all I'M RUNNING APACHE 2! so I have the right config file, there is no /etc/init.d/apache because its /etc/init.d/apache2, and when I run that it still says no listening sockets available.

is there anyone out there familiar with debian who can tell me how to do a full reinstall of this? It isn't installed by default and I did an apt-get install apache2 to get it and it created all the config files the first time, why dosn't it when I reinstall now?
 
Old 06-04-2005, 03:45 PM   #4
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
Thumbs down

Quote:
Originally posted by c--
ok, no that dosn't help shit.
Ah, kids. Don't you love their language trying to look "cooler". That's a great way to answer somebody trying to help you. You should simply be ignored. Well, at least I will ignore you, I don't have time to babysit in a public forum...
 
Old 06-04-2005, 04:01 PM   #5
c--
Member
 
Registered: Sep 2004
Location: Oregon, USA
Distribution: Ubuntu/Debian
Posts: 82

Original Poster
Rep: Reputation: 15
no, its just great when you have a problem and people post to tell you how you could have prevented it rather than how to fix it. I know how to copy a file and back it up, I should have done that, I didn't. what do I do now?

and great job rising above my bad language by responding about how you won't be dignifying it with a response.
 
Old 06-20-2005, 08:24 PM   #6
steveo4406
LQ Newbie
 
Registered: Jun 2005
Distribution: Debian 3.1
Posts: 2

Rep: Reputation: 0
To make it simple try this:

apt-get remove apache2
-
apt-get --purge remove apache2-common
-
apt-get install apache2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache2 Config Help - No Idea YaAqoB Linux - Software 2 08-17-2005 02:47 AM
where is the apache2 config file dev_mohamed Linux - Software 2 06-20-2005 08:21 PM
Can't config mod_deflate on apache2 joeyta Linux - Software 2 02-18-2005 03:58 PM
Apache2 virtualHost config problem jglazner Linux - Software 3 04-01-2004 02:22 AM
Apache2 config errors.. SiGmA_X Linux - Software 0 06-17-2003 02:39 AM


All times are GMT -5. The time now is 08:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration