The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    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.
     
Loading...

Share This Page