How to reonfigure Apache2 after misconfiguration

B

bashcommando

Guest
I was installing apache2 on Debian 7 using the help of a tutorial. I copied the configurations of the tutorial and pasted it into the config files without making a backup(I'm a idiot). How do I force reconfigure it to default?
 


Code:
sudo apt-get install --reinstall apache2

will reinstall all the files associated with the package
 
A good practice is create a copy of the files before you modify it. If something is wrong you can restore the file and reestablish the configuration.
 
I use webmin for server management, it supports many broadly used servers. You can reset/reconfigure/maintain apache with it. Your average distribution repositories probably offer it for easy install.
 

Members online


Top