HostOnNet Blog

Rebuild php.ini in Cpanel Server

Looking for Linux Server Admin or WordPress Expert? We can help.

First rename php.ini, so you can copy it back or compare if anything go wrong

mv /usr/local/lib/php.ini /usr/local/lib/php.ini.bak.$(date +%m%d%Y%H)

Now run


This will generate new php.ini file.

Posted in Cpanel Server

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.