Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2006
    Location
    Mulund, India, India
    Posts
    118

    Default suPHP

    If I enable suPHP while rebuilding PHP and Apache using easyapache, what are the chances of the existing PHP applications breaking? We are also using Fantastico. Is there any chance of any application built using Fantastico getting broken? I really want to know what problems I may face if I decide to enable suPHP.
    Nitesh Shah

    Cheap Managed Dedicated Servers - http://www.qualispace.com/managed-servers/index.html

  2. #2
    Member darren.nolan's Avatar
    Join Date
    Oct 2007
    Posts
    259

    Default

    Permissions, permissions, permissions. .htaccess - But mostly permissions.

    Did I mention permissions?

    When moving from DSO (mod_php) to SuPHP - the biggest factor in applications breaking is permissions on files/directories.

    SuPHP will not execute code on a file that has to high permissions (like 777). All your files and directories should be reset to their default. Yes, SuPHP still can write to a file/directory that has standard permissions.

    Hurray for executing code as the user!

    .htaccess - SuPHP does not allow .htaccess files to set variables for PHP like it once did.

    Previously you may have had things like php_flag register_globals on in your .htaccess file. This will stop any code from running.

    Any php flag must now be set in a php.ini file in the SAME directory as the executing code.

    register_globals = on

    is the new syntax you'll be using.

    Also note, you should do some research on people using php.ini files in their own directory - as if it's there - your global php.ini file is ignored. There are many workarounds/fixes/solutions/ideas about this particular "feature", search the forums for SuPHP + php.ini.

    Hope this helps.

    (Oh, and er, permissions)

  3. #3
    Member
    Join Date
    Jan 2006
    Location
    Mulund, India, India
    Posts
    118

    Default

    Do you mean, we can put custom php.ini files in each user's public_html directory so that he can have his own PHP permissions instead of the global php.ini? If a user has done some settings in the .htaccess directory, will he be supposed to do the same in the custom php.ini file?
    Nitesh Shah

    Cheap Managed Dedicated Servers - http://www.qualispace.com/managed-servers/index.html

  4. #4
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    With suPHP you can NOT have php flags in the .htaccess files.

    Each site that needs custom php config will have to have its own php.ini in its public_html folder.

    And as Darren said

    Permissions, permissions, permissions. .htaccess - But mostly permissions
    suPHP will NOT allow 0777 files or directories to execute.
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

Similar Threads & Tags
Similar threads

  1. suPHP
    By Solokron in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 03-30-2009, 08:19 AM
  2. Going over to suPHP
    By Parcye in forum cPanel and WHM Discussions
    Replies: 20
    Last Post: 01-07-2009, 06:57 PM
  3. gd + suphp
    By rajesh_ in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-28-2007, 05:24 PM
  4. suPHP
    By rmj in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 03-08-2006, 05:47 PM
  5. suPHP
    By binumvk in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-21-2005, 04:19 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube