How to enable custom PHP.INI settings Print

  • 4

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

We have created an example PHP.INI file which you can use freely. To download please visit: https://www.hostmedia.co.uk/resources/files/php.ini.example

Once downloaded, rename it to php.ini (removing the .example from the filename) before putting it in your public_html directory

If for some reason your custom php.ini is not being read, please enter the following line of code in your .htaccess

SetEnv PHPRC /home/USERNAME/public_html

Replace USERNAME with your actual cPanel username.


Was this answer helpful?

« Back