Creating a custom php.ini in cPanel

Creating a custom php.ini file can be useful in certain circumstances such as allowing different functions on different accounts, or memory limits, etc.

Note: Make sure to replace USERNAME with the account's username.

Firstly, run this in SSH:
cp /usr/local/lib/php.ini /home/USERNAME/public_html

Next, run this in SSH (make sure you're in public_html):

Finally, edit the .htaccess file in public_html and add this line:
SetEnv PHPRC /home/USERNAME/public_html/php.ini
  • 69 Users Found This Useful
Was this answer helpful?

Related Articles

Do I recieve root access?

Yes! You can have as much or as little access as you wish to your server!

Do you provide remote reboot ports?

We currently do not offer and remote reboot option. However, since our reboots are provided free...

How do I access SolusVM?

You can access SolusVM for your VPS account here:

How do I Install cPanel?

To install cPanel simply login to your VPS or dedicated server and follow these instructions: To...