PHP.INI file is the default configuration file for application that require PHP. PHP.INI file is used to control variables like upload file size, resource limits, file timeouts etc..
In this tutorial I will guide how you can edit php.ini file via Cpanel (WHM) for your running application.
The most common parameters changed in the php.ini file are:
safe_mode register_globals upload_max_filesize post_max_size max_execution_time
If you’re experiencing difficulty with your web application, you can edit the php.ini or create a new text file. For example, you’re unable to install a WordPress theme or plugin through your WP Dashboard.
Please make a copy Before making any changes, it’s a good idea to copy the original settings, both for reference and to easily restore the original if necessary.
WHM allows you to configure your php.ini file using the PHP Configuration Editor. To access this tool and edit your php.ini file using WHM, follow the steps below.
1. Start by logging into WHM as the root user. From the Home page, select the Service Configuration button.
2. Then, click on PHP Configuration Editor.
3. Once you click on PHP Configuration Editor, you will be presented with a number of different parameters that you may edit the configurations for. If you don’t see the parameter that you wish to edit in Basic Mode, you may click on Advanced Mode for a longer list of editable parameters. If you need more flexibility, you can also edit your php.ini using SSH.
4. Once you have made your changes, click “Save” at the bottom.