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.

permissions and limiting PHP file modifications

Discussion in 'Security' started by team_dale, Jul 15, 2016.

  1. team_dale

    team_dale Member

    Joined:
    Jul 9, 2014
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    We run a lot of wordpress sites and as usual, clients aren't great at updating their plugins.

    What we find is that a lot of php files get modified after an exploit is - exploited, with malicious code being spidered into legitimate files, and also files being created that are 100% malicious code.

    We have a way around this on non cPanel servers by just setting everything to read only for websites. However when we do this on a cPanel site, everything fails spectacularly.

    On these read-only servers, we do all the plugin updates on a development box and then push to live.

    Is there a way to make all the files folders (except for the uploads folder) read only on cpanel?
     
  2. georgeb

    georgeb Well-Known Member

    Joined:
    May 23, 2010
    Messages:
    48
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Montreal, QC, Canada
    cPanel Access Level:
    Root Administrator
    You, like admin, have to control any files that are uploaded. If the user is not updating the software block access to that folder so the user will let you know they can't access their files. I recommend the CXS scanner from Configserver.

    Regards
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    The limitation isn't necessarily with cPanel, but with Apache and the PHP handler you are using. You can read more about the permission requirements with the various PHP handlers at:

    PHP Handlers - EasyApache - cPanel Documentation

    Thank you.
     
Loading...

Share This Page