UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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:
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?
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.