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? |
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! |
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? |
Quote:
|
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. |
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. |