suPHP Problem

Discussion in 'Apache' started by iloveRP.com, Jun 26, 2010.

  1. #1
    After enabling suPHP, an article directory site of mine could no longer be accessed. The error is 500 Internal Server Error.
     
    iloveRP.com, Jun 26, 2010 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    There are 3 things to note once you enable SuPHP:

    1) All the files/directories should have permissions not more than 755 i.e. directories with 777 permissions and files with 666 permissions will result in Internal Server Error.
    2) All the files/directories should be owned by the user they are residing in i.e. the files/directories should not be owned by nobody (apache user) OR root.
    3) All the php directives, for example safe_mode, should be removed from the .htaccess file and are placed in a php.ini file under the account. PHP directives do not work in .htaccess under the SuPHP environment.
     
    madaboutlinux, Jun 27, 2010 IP
  3. iloveRP.com

    iloveRP.com Peon

    Messages:
    457
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks indeed madaboutlinux. Now I cannot install new theme for an SMF site. I am not getting an internal server error. It's just that the site won't upload the theme. This wasn't like this before until the host enabled suPHP.
     
    iloveRP.com, Jun 27, 2010 IP
  4. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #4
    If you are unable to upload files/folders in a directory, ask your hosting provider to correct the ownership of the directories you are uploading the files in. They must be owned by nobody and should be owned by your username.
     
    madaboutlinux, Jun 27, 2010 IP
  5. iloveRP.com

    iloveRP.com Peon

    Messages:
    457
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you mlinux. I just sent a support ticket to our vps host. I'll keep you posted.
     
    iloveRP.com, Jun 27, 2010 IP