Start a conversation

Custom PHP.ini & Subfolders

You create a custom php.ini file and upload to public_html folder but custom settings do not have an effect on subfolders.

You need to copy php.ini to each subfolder to activate the custom setting.

There is an easy way to get around this issue, add one line in the .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.



Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Support-Agent

  2. Posted
  3. Updated

Comments

  1. Steffie

    Good to find an expert who knows what he's tainklg about!