How to reonfigure Apache2 after misconfiguration

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

  1. bashcommando

    bashcommando Active Member

    Messages:
    184
    Likes Received:
    40
    Trophy Points:
    28
    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 New Member

    Messages:
    28
    Likes Received:
    10
    Trophy Points:
    3
    Code:
    sudo apt-get install --reinstall apache2
    will reinstall all the files associated with the package
  3. Rodrigo

    Rodrigo New Member

    Messages:
    27
    Likes Received:
    10
    Trophy Points:
    3
    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

    Messages:
    257
    Likes Received:
    126
    Trophy Points:
    43
    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