Sunday, January 5, 2014

How to enable custom php.ini for a cpanel account which works with suPhp handler

Copy global php.ini to account's Document root directory,

#cp /usr/local/lib/php.ini /home/username/public_html/

Add the following to .htaccess


suPHP_ConfigPath /home/username/public_html
<Files php.ini>
order allow,deny
deny from all
</Files>

That's all finished ......