can anyone please tell me how to restore an apache configuration from backup ? from /etc/httpd/conf/httpd.conf.backup

link|improve this question
feedback

2 Answers

I am assuming you have the .backup file. All you need to do is :

cp /usr/local/apache/conf/httpd.conf.backup /usr/local/apache/conf/httpd.conf

Then restart your apache server.

link|improve this answer
feedback

Move the current config into another backup file (httpd.conf.backup2)

mv /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.backup2

Move the original backup back into place

mv /etc/httpd/conf/httpd.conf.backup /etc/httpd/conf/httpd.conf

Restart apache

apache2ctl restart
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.