Portal Home > Knowledgebase > Advanced > How to enable custom PHP.INI settings
Making changes to the PHP.INI can be done for your account by doing the following. In this example we are turning on the allow_url_fopen & include functions for PHP:
- Ensure the following tags are set in your php.ini
allow_url_fopen = On
allow_url_include = On
- Please ensure your include lines are set for full system path.
If you need a custom php.ini in your directory
http://www.hostmedia.co.uk/res/php.ini.txt
Download and rename it to php.ini before putting it in your public_html directory
If for some reason your custom php.ini is not read, please put the following in your .htaccess
SetEnv PHPRC /home/USERNAME/public_html
Replace USERNAME with your actual cPanel username.
Add to Favourites
Print this Article