How to reonfigure Apache2 after misconfiguration

Discussion in 'Command Line' started by bashcommando, Jul 31, 2014.

  1. bashcommando

    bashcommando Active Member

    Joined:
    Jan 28, 2014
    Messages:
    223
    Likes Received:
    49
    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?

     
    rdarw likes this.
  2. WharfRat

    WharfRat Member

    Joined:
    Jul 17, 2014
    Messages:
    44
    Likes Received:
    16
    Code:
    sudo apt-get install --reinstall apache2
    will reinstall all the files associated with the package
     
  3. Rodrigo

    Rodrigo Member

    Joined:
    Jul 19, 2013
    Messages:
    31
    Likes Received:
    11
    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.
     
  4. Yesyesloud

    Yesyesloud Active Member

    Joined:
    Dec 13, 2013
    Messages:
    345
    Likes Received:
    179
    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.
     

Share This Page