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.

FastCGI Permissons

Discussion in 'General Discussion' started by PatrickVeenstra, Feb 12, 2012.

  1. PatrickVeenstra

    PatrickVeenstra Well-Known Member

    Joined:
    Feb 12, 2012
    Messages:
    75
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Barcelona
    cPanel Access Level:
    Root Administrator
    On my new server, I've running apache with FCGI with suEXEC. My problem is that:
    - CPanel doesn't have permission to create subdomains. Actually it doesn't have permission to create folders, copy files, etc.
    - My PHP script gives a "permission denied to move file" error on file uploads.

    How can I fix these issues? Thanks in advance.


    note:
    I didn't test the server before switching to FastCGI. I just tried to switch to DSO and restart apapache, and nothing changed.
    I tried to switch to suphp and restart apache, and I get a 500 error
     
    #1 PatrickVeenstra, Feb 12, 2012
    Last edited: Feb 12, 2012
  2. PatrickVeenstra

    PatrickVeenstra Well-Known Member

    Joined:
    Feb 12, 2012
    Messages:
    75
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Barcelona
    cPanel Access Level:
    Root Administrator
    Just discovered that the domain I created before switching to FCGI does have the right permissions.

    Edit: The problem is that the 2nd domain is a subdomain located in /home/public_sub/mydubdomain, and not under /home/public_html/mysubomain. How can I change the permission of /home/public_sub/mydubdomain?
     
    #2 PatrickVeenstra, Feb 12, 2012
    Last edited: Feb 12, 2012
  3. PatrickVeenstra

    PatrickVeenstra Well-Known Member

    Joined:
    Feb 12, 2012
    Messages:
    75
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Barcelona
    cPanel Access Level:
    Root Administrator
    never mind. Solved by changing ownership with SSH (chown, chgrp).
     
  4. shahidi

    shahidi Registered

    Joined:
    Mar 2, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello
    I have same problem ;
    Would you please inform me which ownership did you set to solve this problem ?
    I though if we add user to Apache group it should fix but not worked for me .

    Thanks
     
  5. PatrickVeenstra

    PatrickVeenstra Well-Known Member

    Joined:
    Feb 12, 2012
    Messages:
    75
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Barcelona
    cPanel Access Level:
    Root Administrator
    The folders /home/public_sub and /home/public_sub/mydubdomain must be owned by the account.
     
Loading...

Share This Page