Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

PHP with Litespeed requires world permission to write

Discussion in 'EasyApache' started by xfactor5, Oct 2, 2017.

Tags:
  1. xfactor5

    xfactor5 Member

    Joined:
    Nov 1, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi,
    I just set up a new cpanel server with Litespeed. My problem is that whenever PHP wants to write to a directory or a file, despite being owned by the same user and the permission having "write" set for both user and group, I get permission denied error in PHP. Now PHP works only when permission has writable for the world... like 777! It's a security issue. I don't want to make a directory writable for the world.
    My previous server was fine. Am I missing any configuration?
    Thanks
     
  2. xfactor5

    xfactor5 Member

    Joined:
    Nov 1, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Fixed! It appears that Litespeed does not enable suEXEC by default and it has to be enabled manually. The odd thing was that php reported the same user when using get_current_user but did have permissions for that user when suEXEC for litespeed was disabled.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page