Manage custom php.ini files through WHM

[Total: 3    Average: 5/5]

In this article, we are going to install phpinimgr plugin to manage custom php.ini through WHM.

PHP.ini Manager (phpinimgr) is a WHM plugin designed to help you manage custom php.ini files for your users. It will list all php.ini files in the users root and www folder. If you are using suPHP, you can also use PHP.ini Manager to activate, edit and update custom php.ini files for your users.

To install PHP.ini Manager login to server through SSH client and execute the following

[root ~ ]#cd /usr/local/cpanel/whostmgr/docroot/cgi
[root ~ ]#wget -O addon_phpinimgr.php
[root ~ ]#chmod 700 addon_phpinimgr.php

PHP.ini Manager Plugin has been installed. You can find the find it in WHM, under the Plugins section.

If you want to Uninstall PHP.ini Manager, just run below commands

[root ~ ]#rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/phpinimgr/
[root ~ ]#rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_phpinimgr.php

Please contact me if you need any help.