Creating a custom php.ini in cPanel

reating 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):
chown USERNAME:USERNAME php.ini 

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

Related Articles

Booting/Starting my VPS

You can Boot/Start your VPS using two different methods. We are highlighting these below for your...

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...

Free Linux Based Control Panels

When you purchase an Unmanaged VPS or Dedicated Server from us, you'll have no control panel...

How can I change the server timezone?

Changing the server timezone is a fairly simple process and can be done with as little as one...