Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member gldickens3's Avatar
    Join Date
    Apr 2007
    Posts
    8

    Default httpd.conf Include Files Not Working

    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

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Feel welcome to let our technical analysts diagnose why your customizations are not working as you intended. You can do this by submitting a support ticket.

  3. #3
    Member gldickens3's Avatar
    Join Date
    Apr 2007
    Posts
    8

    Default

    Hi David,

    Thanks for your reply! I've got that ball in motion. About an hour ago I requested my hosting provider, bocacom.net, to submit a support ticket in my behalf.

    FYI,

    Gordon

  4. #4
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

    Default

    Please let us know how they fix the problem since we've seen this problem appear on a few of our servers, but not all. So far its not a major problem for those servers which are not heavily used but we'd like to solve it.

  5. #5
    Member
    Join Date
    Mar 2008
    Location
    Karachi,Pakistan
    Posts
    49

    Default Yaseen

    Hello ,

    Can you please do this

    --> vi /etc/httpd/httpd.conf
    --> search for your account name
    --> find there this line
    # Include "/usr/local/apache/conf/userdata/account_name/doamin_name/*.conf"
    Uncomment this line


    Quote Originally Posted by gldickens3 View Post
    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

  6. #6
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

    Default

    EVERY single domain has that line commented.

    Are we supposed to edit the httpd.conf every time we add a domain and manually uncomment that line?

    It seems that once i recompiled apache via EA some time ago, it even stopped reading the "extras" directory with my custom config changes... weird.

Similar Threads & Tags
Similar threads

  1. Preserve amends to /etc/httpd/conf/httpd.conf ?
    By robocrop in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-14-2010, 02:08 AM
  2. Account Backup to include httpd.conf Userdata
    By erikig in forum Data Protection
    Replies: 3
    Last Post: 08-19-2009, 08:17 AM
  3. tweak httpd.conf which include file?
    By kernow in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-13-2009, 02:24 PM
  4. Where to place httpd.conf VirtualHost include files
    By Netmaking in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-13-2008, 05:36 AM
  5. Too many log files in httpd.conf
    By hardjoko in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 06-29-2005, 12:14 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube