24/7 Live Chat Support
  • 24/7 Support
  • UK based: (+44) 0800 0488 186
  • US based: (570) - 445-3230

Portal Home > Knowledgebase > Advanced > How to enable custom PHP.INI settings


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.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
What is an MX Record (Views: 33)
Using Index Manager (Views: 18)
Enabling Symlinks (Views: 304)