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.

Converting DSO to suPHP

Discussion in 'Workarounds and Optimization' started by ctrl, Jul 16, 2012.

  1. ctrl

    ctrl Member

    Joined:
    May 23, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have read a few guides and checked the documentation,

    I have 2 production servers that are still on DSO.

    Will the utility within cPanel Service config > "Configure PHP and SuExec" handle everything for converting to suPHP handler as of now or will I need to run any shell commands to change permissions?

    Using latest cPanel.

    Thanks
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello ctrl,

    We do not automatically run any conversions to change files and folders nor .htaccess content on a change to suPHP handler. This would be a liability to perform, since the user might decide to change back to DSO afterward and sites would not then work and there's no way under DSO to even know which files or folders will require higher permissions.

    If you'd like to follow a guide for suPHP, a very long time ago I wrote one under my non-staff account:

    http://forums.cpanel.net/f5/switching-suphp-160421.html#post672630

    Thanks!
     
  3. ctrl

    ctrl Member

    Joined:
    May 23, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Tristan,

    Thanks for your reply, I also had you post opened next to this tab.

    If I change the handler in cPanel will it be fact that any account created from then on would be using it and any existing account will still work as is?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    No, any account will not work as is. Changes may well need to be made outlined in that post. The prior account likely had permissions set higher for some files to run, so those permissions need to be reduced for suPHP not to throw errors. Some sites likely had .htaccess entries with php_value and php_flag in them, since DSO doesn't allow individual php.ini files. Those sites will throw a 500 Internal Server Error after the handler change until the php_value and/or php_flag entries are removed from .htaccess.

    New sites will work if the new sites use the right permissions and don't place php_value or php_flag entries into their .htaccess files.
     
  5. ctrl

    ctrl Member

    Joined:
    May 23, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Understood, Thanks.
     

Share This Page