CPanel could do many things to ease the harsh life of admin. Most of the things are visible under Web GUI but it doesn’t suits cases when vhost need special tweak. I was going crazy with the crappy Ruby On Rails wizard provided by CPanel, it’s the worst ever, so I decided to install Passenger for Apache instead. And that means I have to SSH and configure manually my vhost. However I found out that my changes are not retained after I restart CPanel and I quickly found out that you need to invoke few scripts to do the job:
After you make changes to /usr/local/apache/conf/httpd.conf, invoke following command to retain the changes:
And for every vhost site, you could include private configuration files by uncomment the include file
Then make sure you create a file with extension within that path.
After that, make sure you invoke this command
This would ensure the vhost include the extra conf files