Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    7

    Default suphp to dso : what should I watch out for?

    I am moving my php handler from suphp to dso so I can use APC. I run mostly Drupal sites and only for myself. Are there any pitfalls I should be wary of?

  2. #2
    cPanel Staff cpaneljohnkata's Avatar
    Join Date
    Mar 2009
    Posts
    1

    Default Re: suphp to dso : what should I watch out for?

    Hi,

    You're (poissibly) going to run into permissions issues when it comes to file uploads. suPHP is nice because the upload directory can be owned by the user with more restrictive permissions than DSO. When running DSO, the upload directory needs to be owned by 'nobody' or have 777 permissions in order for PHP to save uploaded files to it.

    Also, if you've created a custom php.ini file in any account to modify global PHP settings, you'll need to add your modified settings to .htaccess as "php_value" directives, as DSO doesn't check for local php.ini files.
    cPanel Conference 2010 - Automation Bootcamp! - October 4th, 5th & 6th, 2010 - Houston, Texas, U.S.A. - http://conference.cpanel.net/

    For hands-on assistance please reference our support information center: Where should I go for support?
    cPResources: Support Options - Additional Support Options - Forums Search - Google Site Search - Mailing Lists(Alt) - Documentation

    -- cPanelJohnKata - John Kata, Technical Analyst, cPanel Technical Support

  3. #3
    Member
    Join Date
    Mar 2011
    Posts
    7

    Default Re: suphp to dso : what should I watch out for?

    Quote Originally Posted by cpaneljohnkata View Post
    Hi,

    You're (poissibly) going to run into permissions issues when it comes to file uploads. suPHP is nice because the upload directory can be owned by the user with more restrictive permissions than DSO. When running DSO, the upload directory needs to be owned by 'nobody' or have 777 permissions in order for PHP to save uploaded files to it.

    Also, if you've created a custom php.ini file in any account to modify global PHP settings, you'll need to add your modified settings to .htaccess as "php_value" directives, as DSO doesn't check for local php.ini files.
    Thanks! Could you talk a bit about the 777 permission issues on uploads and how this is or is not a bad thing. This is the only thing keeping me from making the move and I do not see how it would be such a problem.

    Folks say it is a security risk but how is it more of a security risk than if someone new your suphp username and password and utilized it.

    Do you mean others on the same server would be able to use this directory? And if so, if I am the only one on the server does that even matter?

Similar Threads & Tags
Similar threads

  1. dso vs suphp vs fastcgi
    By Usmeee in forum Optimization
    Replies: 10
    Last Post: 09-05-2011, 07:08 PM
  2. Converting DSO to SuPHP ...
    By Spiral in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 01-30-2011, 11:33 PM
  3. Converting from SuPHP to DSO
    By pricejn2 in forum Security
    Replies: 1
    Last Post: 11-08-2010, 11:50 PM
  4. suPHP + dso module
    By geolaw999 in forum Optimization
    Replies: 0
    Last Post: 07-26-2010, 12:52 PM
  5. dso vs suphp vs fastcgi
    By Usmeee in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-02-2010, 05:31 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube