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

We have created an example PHP.INI file which you can use freely. To download please visit:

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.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How To Install and Uninstall FrontPage Extensions

This tutorial will show you how to install and uninstall FrontPage extensions. Please note that...