LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   apache2 missing config files (https://www.linuxquestions.org/questions/ubuntu-63/apache2-missing-config-files-330096/)

c-- 06-03-2005 06:41 PM

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?

Mega Man X 06-04-2005 05:15 AM

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!

c-- 06-04-2005 02:02 PM

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?

Mega Man X 06-04-2005 03:45 PM

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...

c-- 06-04-2005 04:01 PM

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.

steveo4406 06-20-2005 08:24 PM

To make it simple try this:

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


All times are GMT -5. The time now is 02:35 PM.