Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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


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.