rebuild cpanel apache config for custom includes
Posted in cpanel on December 1st, 2009 by paul – Be the first to commentI needed to create a ServerAlias for one of my subdomains recently and cPanel was stubbornly refusing to do it via the web interface, something to do with dns servers.
Anyway, I just added a simple ServerAlias subdomain.domain.com entry in a file in
/usr/local/apache/conf/userdata/std/2/domain.com/sub.domain.com/subdomain.conf
Then I ran this command:
/scripts/ensure_vhost_includes --all-users
which gets cPanel to rebuild it’s various config files.
Everything works fine now