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
Populaarsemad artiklid
How to Add Addon Domain in cPanel
First, log in to your cPanel and click on “Addon Domains” located in domains section....
I cannot see the .htaccess file in cPanel
If you do not see .htaccess file in your public_html directory then either it is not created yet,...
How can I change the PHP version of my website?
You can change PHP version for your websites from cPanel. To do that, follow the steps below:...
What is the difference between the Addon Domain and Subdomain?
Addon Domain: If your hosting package allows using more than one domain on the package, then you...
How can I fresh start my cPanel account?
Sometimes you might need to reset your full account for some reason and start fresh as a new...