Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Mar 2007
    Posts
    25

    Default open_basedi and userdir problem

    hello
    i'm here to ask for help

    on enabled mod_userdir, open_basedir restrictions not affects, if user goes to http://ip/~user.
    in this case phpsuxec restrictions also not affects, because URL-s like http://ip/~user apache executs as user nobody, which have read permissions on all public_html directories

    so,if this some misconfiguration issue ?
    or is there any other posibility to give the users access to their sites, with disabled mod_userdir ?

    thaks in advance

  2. #2
    Member tuxicans's Avatar
    Join Date
    Oct 2008
    Posts
    38

    Default

    Please make sure "default host" is excluded from userdir protection,
    and use the URL in the format http://hostname/~user

    See if that works.
    Tuxicans
    24x7 Webhosting Support
    24x7 Server Administration

  3. #3
    Member
    Join Date
    Mar 2007
    Posts
    25

    Default

    it does not matter if it's hostname or ip
    if user goes to http://hostname/~user, open_basedir restrictions not affects

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2005
    Posts
    4

    Default

    Hi everyone,
    It seems to me that this issue is not resolved,
    does anyone have any further suggestions?

    soulmaster - did you find any solution to this?

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by soulmaster View Post
    hello
    i'm here to ask for help

    on enabled mod_userdir, open_basedir restrictions not affects, if user goes to http://ip/~user.
    in this case phpsuxec restrictions also not affects, because URL-s like http://ip/~user apache executs as user nobody, which have read permissions on all public_html directories

    so,if this some misconfiguration issue ?
    or is there any other posibility to give the users access to their sites, with disabled mod_userdir ?

    thaks in advance
    Is there any particular reason your users must go to IP/~user to access their website rather than the domain set up on their cPanel account? Usually this is only used if the customer has an existing domain they are transferring to your server since the DNS propagation can take a couple of days. This is not often used as a permanent solution.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2005
    Posts
    4

    Default

    Thanks for the quick reply David,

    It sounds like you're saying the userdir feature is unusable,
    or how can it be used in a temporary capacity in the manner
    you mentioned, if it cannot be left enabled on the server
    given the implications? Also, what about shared SSL?

  7. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by okeith View Post
    Thanks for the quick reply David,

    It sounds like you're saying the userdir feature is unusable,
    or how can it be used in a temporary capacity in the manner
    you mentioned, if it cannot be left enabled on the server
    given the implications? Also, what about shared SSL?
    The userdir feature of Apache has its drawbacks, hence we have the option in WHM's Security center to disable userdir (called: enabling mod_userdir protection). The main issue is that whatever user has the domain or IP portion of IP/~username will have all bandwidth used by /~username added to their account. This means one user can "steal" another user's bandwidth.

    Also, PHP running as CGI (including FastCGI and SuPHP) will not run scripts within /~username as the username after ~, as one may think it would.

    You mention you're using phpSuExec. You may want to update to SuPHP since we haven't supported phpSuExec for a while.

    It is good practice to have users access their domain using example.com (where example.com represents their domain) rather than somethingelse/~username. However, it is common to allow /~username in instances where DNS propagation issues exist and for shared SSL certificates.

    Using the mod_userdir protection screen in WHM's Security Center, you can enable/disable this protection on a per-user basis.

    Enabling protection = no ability to access via /~username
    Disabling protection = ability to access via /~username

    If you are using shared SSL certificates, I recommend only disabling the protection for users that are using these shared SSL certificates and for users whose DNS has not yet propagated.

Similar Threads & Tags
Similar threads

  1. mod userdir problem
    By Zion Ahead in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-07-2006, 03:26 AM
  2. mod userdir issue
    By Zion Ahead in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-06-2006, 05:13 PM
  3. Install interchange and userdir
    By latpanel in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-14-2006, 05:38 AM
  4. mod userdir bug???
    By nazmy in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-20-2005, 08:18 PM
  5. enabling userdir i.e. ~user
    By jimcarter in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-04-2002, 02:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube