Friday, May 17, 2013

Suphp Installation

We can use easyapache for suphp installation . Always run easyapache in screen

Installation

screen -S ea

/scripts/easyapache

Select Mod SuPHP pressing space under Exhaustive Options List

Finally build it

Configure suPHP

This step will enable suphp on your server

/usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1

To verify that above comman worked

/usr/local/cpanel/bin/rebuild_phpconf –current

Available handlers: suphp dso cgi none

DEFAULT PHP: 5

PHP4 SAPI: none

PHP5 SAPI: suphp

SUEXEC: enabled

Then restart apache

/scripts/restartsrv_httpd

The suPHP log file is located here:

/usr/local/apache/logs/suphp_log

Most of the errors generated are related to permissions on PHP files. suPHP is very particular about permissions and file ownership somake sure PHP files have permission 755 and are owned by the same user account. You can change permission on any file using the following command:

find . -type d -exec chmod 755 {} \;

find . -type f -exec chmod 644 {} \;

No comments:

Post a Comment