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

    Jul 11, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I have added a * 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).

    <VirtualHost XXXX:80>
    ServerName *
    ServerAlias *
    SetEnvIf HOST "^(\w+)" CLIENT_ID=$1
    UseCanonicalName Off
    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

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    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...

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