Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

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.

share|improve this answer

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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