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.

Changing to DSO handler does not allows php to write anything

Discussion in 'EasyApache' started by shojib, May 7, 2015.

  1. shojib

    shojib Member

    Joined:
    Mar 31, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sylhet, Bangladesh
    cPanel Access Level:
    Root Administrator
    Hi ,
    Recently I was trying to run php and apache as nobody as I have installed cloudlinux on my server .
    And due to some processing limitations , many websites are running slow and some php processes are taking longer to finish , which makes the load average go up .
    But with DSO I could make all the websites faster and have isolated environment from cloudlinux without mod_ruid2 , I was using suPHP on my production server .

    After changing , I was getting several issues like wp media upload error , plugins, themes , core updates error (Asking for FTP) , And timthumb errors .

    Is it possible to fix all the files and folders permissions on my server to use DSO module without any problems ?
    Waiting for replies .
    Shahriar
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. shojib

    shojib Member

    Joined:
    Mar 31, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sylhet, Bangladesh
    cPanel Access Level:
    Root Administrator
    What would be the best practice on file permissions ?
    user:nobody and 755 ?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It depends on the file and your PHP handler, but generally file ownership should be "user:user" with 0644 permissions (with exceptions such as CGI/Perl files).

    Thank you.
     
  5. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Did you try changing enabling the FTP access and changing the permissions to 777 to required folders? With DSO you need to have 777 permissions to uploads folder to make it work. But you increase the chances of your website being vulnerable with this.
     
  6. shojib

    shojib Member

    Joined:
    Mar 31, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sylhet, Bangladesh
    cPanel Access Level:
    Root Administrator
    Unfortunately I can't connect to every ftp and change the permissions accordingly on every user account .
    Any command from SSH or shell script that can do the trick ?
     
  7. shojib

    shojib Member

    Joined:
    Mar 31, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sylhet, Bangladesh
    cPanel Access Level:
    Root Administrator
    Guys,
    I just found that recompiling with apache mod_ruid2 fixed everything !
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page