Knowledgebase: Linux Hosting Cpanel/WHM
Custom PHP.ini & Subfolders
Posted by PremiumReseller.com on 30 July 2008 06:37 AM
|
|
You create a custom php.ini file and upload to public_html folder but custom settings do not have effect on subfolders. You need to copy php.ini to each subfolders to activate custom setting. There is an easy way to get around this issue, add one line in .htaccess file with content SetEnv PHPRC /home/cpanel-username/public_html/php.ini This will configure php scripts on your website to use php.ini in public_html folder. To disable PHP safe_mode, add configuration to the end of .htaccess file SetEnv PHPRC /usr/local/lib/php5.ini | |
|