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.

Public_html 750 issue

Discussion in 'General Discussion' started by Shark Stone, Mar 24, 2010.

  1. Shark Stone

    Shark Stone Member

    Joined:
    Feb 20, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I have been transferring accounts over from another cpanel server but on the new server all accounts public_html dir get set to 750. How could I stop this?
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    750 is the correct permission setting for the "public_html" folder itself and should be "(user login)" owned and "nobody" group.
     
  3. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Right, 750 is the default permission of 'public_html' directory on a cPanel server. If you are having trouble accessing the new account with the 750 permission, make sure the owner is set to the 'user' and group is set to 'nobody' for the public_html directory.

    A quick way to correct the ownership of all the accounts is to execute the following 'for' loop

     
  4. oscarfish

    oscarfish Registered

    Joined:
    Mar 25, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello friends,
    i am also facing the same issue. When i transfer sites using cpanel transfer feature the public_html folder and even the directories inside public_html folder of sites have chmod 750 and even the sites are not opening its showing Internal Server Error 500.

    So can anyone help me out with this?

    Thnx in advance.
     
  5. Shark Stone

    Shark Stone Member

    Joined:
    Feb 20, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    How could I set the user login owned and nobody group via ssh?

    Jess
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,449
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  7. mohit

    mohit Well-Known Member

    Joined:
    Jul 12, 2005
    Messages:
    553
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sticky On Internet
    it may be incorrect php setup.
    can be a permission issue with file/folder not just "public_html" folder.
    check the error log why error 500 is thrown.
     
  8. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Do you notice that in my original post above that I underlined the word "itself" when talking about "public_html" to emphasize the point that the ONLY folder that should be 750 is just 'public_html' alone.

    (For Reference: Folders beneath public_html are typically set to 755)

    If you are getting 750 for files or folders BENEATH public_html when you do transfers then there is something very wrong and the first thing I would take a look at is your default permission setting in "Tweak Settings" in WHM as those may possibly be setup incorrectly.
     
  9. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    On the mention of "transferring sites", one more note ....

    If you are transferring between any of these combination, you are likely going to run into serious problems if you don't correct for the permission, ownership, and htaccess command differences:

    DSO server <-> SuPHP server
    DSO server <-> FCGI server
    DSO server <-> phpSuExec server

    CGI (non-suexec) <-> SuPHP / FCGI / or phpSuExec (rare)

    Generally speaking, you are usually okay changing between this:

    SuPHP server <-> FCGI server

    If moving a site away from a location that was originally DSO based, you must eliminate all '777' permissions, make all file and folders owned by the user, and remove all 'php_flag' and 'php_value' commands from .htaccess or you will run into Error 500 page problems.

    In the reverse of that, getting a sit from a non-DSO system and moving it to a server that is DSO based (you are insane doing that :rolleyes: ) then you would need to make sure that files that must be writable are set to 666 or looser and any scripts running tighter suexec style permissions (600 for example) would have to be loosened to 644 else you may again run into problems being able to view your web site.
     
Loading...

Share This Page