Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2009
    Posts
    16

    Default Apache UserDir Issue For Shared IP's

    I'm wondering if anyone else is experiencing this issue. If so, do they have any information on how to fix it?

    Within WHM we setup a Shared IP to be used for the server... Once an account gets created on the server that uses the shared IP a virtual host entry is created within the httpd.conf file for the server.

    The problem is that this entry gets created with the below, which is syntactically incorrect. This causes apache to go down as it cannot restart to apply the change. It will not start back up until we either delete the UserDir line, or set it to disabled.

    <VirtualHost xx.xx.xx.xx:80>
    ServerName some-server.some-domain.com
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin admin-address@some-domain.com
    <IfModule mod_suphp.c>
    suPHP_UserGroup nobody nobody
    </IfModule>
    UserDir enabled
    </VirtualHost>

    This only happens when the first shared IP account gets created, and the virtual host entry for the actual servers name is created. The same can be said if a reseller has a shared IP and they create their first shared ip account. Subsequent accounts setup on that shared IP do not have this problem.

    I've ran the apache config distiller script after manually fixing the problem and I've rebuilt the apache configuration after that to make sure the change took, so I know it has something to do with the virtual host entry getting created for the actual servername, and I know it deals specifically with shared IP's.

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by dwinans View Post
    I'm wondering if anyone else is experiencing this issue. If so, do they have any information on how to fix it?

    Within WHM we setup a Shared IP to be used for the server... Once an account gets created on the server that uses the shared IP a virtual host entry is created within the httpd.conf file for the server.

    The problem is that this entry gets created with the below, which is syntactically incorrect. This causes apache to go down as it cannot restart to apply the change. It will not start back up until we either delete the UserDir line, or set it to disabled.

    <VirtualHost xx.xx.xx.xx:80>
    ServerName some-server.some-domain.com
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin admin-address@some-domain.com
    <IfModule mod_suphp.c>
    suPHP_UserGroup nobody nobody
    </IfModule>
    UserDir enabled
    </VirtualHost>

    This only happens when the first shared IP account gets created, and the virtual host entry for the actual servers name is created. The same can be said if a reseller has a shared IP and they create their first shared ip account. Subsequent accounts setup on that shared IP do not have this problem.

    I've ran the apache config distiller script after manually fixing the problem and I've rebuilt the apache configuration after that to make sure the change took, so I know it has something to do with the virtual host entry getting created for the actual servername, and I know it deals specifically with shared IP's.
    What is the full cPanel version number of the system involved?
    Code:
    # cat /usr/local/cpanel/version && echo
    What is the full Apache version information (as reported via the following command)?
    Code:
    # /usr/local/apache/bin/httpd -v
    Reference Note: The issue description leads me to believe it may be related to the following internal case ID: #25846

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2009
    Posts
    16

    Default

    cPanel support was contacted and we initially believed that this issue related to the version of cPanel. However upon further investigation, to resolve this issue you just need to add the "DefaultHost" to exclusion from the UserDir protection.
    Last edited by dwinans; 12-02-2009 at 03:26 PM.

Similar Threads & Tags
Similar threads

  1. Main Shared IP Issue
    By R. Rowan in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-28-2011, 07:51 PM
  2. Shared SSL certificate issue
    By Barfani123 in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 04-11-2010, 02:03 PM
  3. shared SSL redirect issue
    By andrew green in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 04-27-2009, 04:17 PM
  4. mod userdir issue
    By Zion Ahead in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-06-2006, 04:13 PM
  5. Mail Issue - nothing from shared IP site
    By linuxman in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-13-2004, 08:59 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube