If php.ini is located in public_html folder, to enable it globally for the hosting account you should add the following configuration directive to .htaccess file:
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/USER/public_html
</IfModule>
NOTE: make sure you replace USER with your cPanel username
This option tells mod_suphp which path to pass on to the PHP-interpreter and which folder to execute php.ini from.
To add these lines to .htaccess file, right-click on it and hit Edit
![](https://namecheap.simplekb.com//SiteContents/2-7C22D5236A4543EB827F3BD8936E153E/media/suphp1.png)
![](https://namecheap.simplekb.com//SiteContents/2-7C22D5236A4543EB827F3BD8936E153E/media/suphp2.png)
Add the lines provided below existing rules and Save Changes.
If you have done it right, designed php.ini will take immediate affect
![](https://namecheap.simplekb.com//SiteContents/2-7C22D5236A4543EB827F3BD8936E153E/media/suphp3.png)
In case there is no .htaccess file in the document root, you need to create one via New File option and edit it following the guidelines above
![](https://namecheap.simplekb.com//SiteContents/2-7C22D5236A4543EB827F3BD8936E153E/media/suphp4.png)
![](https://namecheap.simplekb.com//SiteContents/2-7C22D5236A4543EB827F3BD8936E153E/media/suphp5.png)
If you need to load php.ini for/from subdirectory, make sure you edit ConfigPath accordingly
![](https://namecheap.simplekb.com//SiteContents/2-7C22D5236A4543EB827F3BD8936E153E/media/suphp6.png)
And that's it!