Archive for July 2013

mod_suphp installation on Plesk 11

suPHP is a tool for executing PHP scripts with the permissions of their owners rather than Apache user and hence improves server security.

Below are the pros and cons of SuPHP

Pros ::

  • PHP runs as your user/group
  • Max File permission of  644 and max folder permisson of 755 required to execute PHP files
  • Files/folders written by PHP are written as account user/group instead of Apache user
  • Allows you to configure custom php.ini for each account

Cons::

  • Slower than mod_php
  • PHP variable settings will no longer work from .htaccess files

Installation ::

Setup the RPMforge repo

for Centos 6.x 64 bit

rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

for Centos 6.x 32 bit

rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

Now you can install mod_suphp via yum

yum install mod_suphp

Continue reading mod_suphp installation on Plesk 11