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.

Info about public_html permissions

Discussion in 'Security' started by ultralion, Sep 16, 2013.

  1. ultralion

    ultralion Well-Known Member

    Joined:
    Nov 14, 2012
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Viareggio
    cPanel Access Level:
    Root Administrator
    Hi to all.
    I have a problem with a component installed on my cms.
    For some strange causes when users try to delete a photos inside me website the public_html changes to 777 causing "Internal server error"
    For now as i know there's not a really fix about this... and also some users say that "Suphp switch to Fastcgi" can do the difference sloving this issue (but all of them does not seems so sure about this.... so i don't want to make changes without a confirm).
    Anyway i set a cron to give again permission 750 to that folder.. so website comes alive in few seconds if it happen.
    Question is... there's a way in Cpanel to give permissions to 777 at public_html account? I know that's risk settings but as i saied a cron fix the permissions every minute so it can Grant a full livetime of my website.
    Thanks for your reply.
     
  2. MaestriaNick

    MaestriaNick Well-Known Member

    Joined:
    Aug 6, 2008
    Messages:
    159
    Likes Received:
    3
    Trophy Points:
    18
    Hi,

    With Suphp , it is not possible to have permission 777. You can change the php handler , but that is not a fix. The script is not supposed to change the permission of public_html after removing a photo etc, so there is a but with that script or plugin. Better try to fix it before changing anything at the server side.
     
  3. ultralion

    ultralion Well-Known Member

    Joined:
    Nov 14, 2012
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Viareggio
    cPanel Access Level:
    Root Administrator
    Yes of course.
    Problem is that staff developer of this extension are not able to realize where exactly issue happen on their code and unfortunately i'm not a programmer. So i have this website crashing lot of time when this happen.
    I'm afraid to change php handler because of that i'm fine with suphp but i cannot see others way right now.
    It's possibile for example have fastcgi only for a single hosting or must be changed in whole server? :confused:
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The use of insecure permissions on a directory should not be used as a resolution to a script problem. Those permissions are likely to open up your website to security problems. I highly recommend using a different CMS if the current one you are using is requiring these permission values on the public_html directory.

    Thank you.
     
Loading...

Share This Page