Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Wildcard subdomain and user permissions

Discussion in 'General Discussion' started by thinkle, Sep 15, 2012.

  1. thinkle

    thinkle Registered

    Joined:
    Jul 11, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have added a *.example.com wild card subdomain via cpanel, and in my pre-virutal host include I am doing the following to define the public_html root and a CLIENT_ID env (which is just the subdomain name).

    Code:
    <VirtualHost XXXX:80>
    ServerName *.example.com
    ServerAlias *.example.com
    SetEnvIf HOST "^(\w+).example.com" CLIENT_ID=$1
    UseCanonicalName Off
    </VirtualHost>
    It is directing traffic correctly, however it seems the user permissions for writing files isn't working correctly - I cannot use 755 and my standard user:user permissions. Do I need to set these somewhere else?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you let us know which PHP handler you are using? The PHP handler is configured at:

    "WHM >> Service Configuration >> Configure PHP and SuExec"

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice