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.

I've run into a bit of a problem today. I was attempting customize a virtual host for an Apache server and followed the steps outlined here, http://woshka.com/blog/apache/how-to-have-custom-virtualhost-configurations-without-overwrite.html. I did not initially configure this server and am new to CPanel configuration.

After I completed the steps I describe below, the server now delivers any php pages as downloads. When I looked closer, it seems that http.conf is not being re-generated from the template in /var/cpanel/templates/apache2/main.default. I copied main.default to main.local and its still does not seem to generate the original http.conf.

Is there a way to revert any changes I had made back to what was there prior?

After this step in the instructions, which had a syntax error:

 /scripts/ensure_vhost_includes username

I did this instead:

/scripts/ensure_vhost_includes --user=testuser

After this, from reading other resources, I did the following:

/usr/local/cpanel/bin/apacheconfdistiller --update
share|improve this question
Is that acceptable for you to re-compile Apache using the cPanel easyapache script? –  Andrew Oct 1 '11 at 9:04
Yeah, it would have been. Luckily the issue was resolved by a support ticket. Thanks for the comment. –  Geuis Oct 3 '11 at 0:48

1 Answer 1

You can revert the changes by running this command:


as decribed here: how to rebuild httpd.conf

If you provide more details concerning what you are trying to accomplish, I could guide you through those steps as well in order to resolve your issue.

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.