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
/usr/local/cpanel/bin/buildapacheconf