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.
Ok here is the problem,
I installed and configured apache2 on my unbuntu box by doing a apt-get install apache2. A few weeks later trying in get SSL working I messed up the config files and I wanted to start fresh so I did a apt-get remove apache2. After that I noticed that the config file were still there so I did a rm -r on the apache2 folder in /etc/ bad idea. Now when I try to do a install it says it installed correctly but all the config files are still missing. So what can I do?
Use Synaptic or Adept or aptitude to purge apache2-common. Once done reinstall apache2.
In the future if you need to completely remove a package including config files do not use 'rm -rf </whatever>' - use 'sudo apt-get purge <packagename>'
Last edited by klearview; 10-28-2008 at 10:51 PM.
Reason: grammar
Ok I tried what you said, I did a aptitude purge apache2
than after it did all that I did a aptitude install apache2 and the config files still were not created any other ideas?
Instead of trying to again install only Apache2, have you considered installing the Xampp set of packages? I've had lots of success with them on both Windows and Ubuntu. Here is a link you might find helpful http://www.apachefriends.org/en/xampp-linux.html .
BTW, I have no financial association with them at all. They don't even know me. I just like and understand their approach to enabling me to set up and manage a web server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.