The httpd.conf Include files in my cPanel installation do not appear to be working.
I have successfully added a new SSL certificate for a domain and need to modify the Virtual Host in my httpd.conf file to properly specify the DocumentRoot for the Virtual Host. The DocumentRoot was set to /usr/local/apache/htdocs, which is the default, and I need to change it to the directory where my website resides. I would normally just edit the httpd.conf file, however, I have read the following cPanel instructions which require that I implement my changes as include files:
http://cpanel.net/support/docs/ea/ea...irectives.html
As specified in the above document, I have put my DocumentRoot directive here:
/usr/local/apache/conf/userdata/ssl/2/nobody/<ssl domain name>/domain.conf
My domain.conf file contains this one line:
DocumentRoot /home/<cpanel user name>/public_html
After which, I have run both of the following scripts without success:
/scripts/ensure_vhost_includes --user=<username>
/scripts/ensure_vhost_includes --all-users
According to the above cPanel document, after running these scripts the Include directives should have been added to my VirtualHost but they were not. So, my DocumentRoot directive was not implemented. Either I am doing something stupid or this stuff is broken on my machine.
Also, I have verified that my Include files are valid by running:
/scripts/verify_vhost_includes
Nothing that I do causes my new Document Root to be implemented via the Include file as per cPanel's documentation. I hope that somebody can enlighten me as to what I am doing wrong.
FYI, I am running Apache v2.2.9 with EA v3.2.0 and WHM 11.23.2 cPanel 11.23.6-R27698.
As an aside, it sure would have been nicer if I could have just modified my httpd.conf file like I have always done in Linux/Unix without all this extra baggage. The cPanel folks have just about improved their product to the point that it is simply not usable especially for *nix command line folks.
Thanks,
Gordon Dickens



LinkBack URL
About LinkBacks
Reply With Quote


,






