LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Centos 6.2 revert Apache web setting to default (https://www.linuxquestions.org/questions/linux-newbie-8/centos-6-2-revert-apache-web-setting-to-default-942881/)

tbaror 05-02-2012 04:34 AM

Centos 6.2 revert Apache web setting to default
 
Hello All,

I have Centos 6.2 installed with webserver i have installed application that changed all web server settings.
Now i have issues creating new webroot/application and only ssl activated , i would like to revert back to initial settings, how can achieve it please?.

please advice

Thanks

unSpawn 05-02-2012 12:14 PM

Being able to revert here means you made a backup of the configuration file or you put it under control of a file versioning system (that's what I do) prior to Doing Stuff. Taking that as your cue to devise a backup plan, download the httpd package and extract the etc/httpd/conf/httpd.conf in any compressed file extraction tool or File Manager that understands the RPM format or run it through 'rpm2cpio', example:
Code:

mkdir /tmp/httpd-2.2.15-15; cd $_; rpm2cpio httpd-2.2.15-15.el6.centos.1.i686.rpm | cpio -idmv


All times are GMT -5. The time now is 08:28 PM.