08 Aug Adjusting PHP Configuration in cPanel
Sometimes you may find it necessary to adjust a PHP configuration, such as when you are installing a web application and it requires that PHP be configured in a special way, or if one of your applications reaches a timeout or memory limit. Luckily, it’s a snap to adjust your configurations in cPanel!
cPanel has many ways to customize PHP configurations for your site: You can either apply configurations using the graphical editor within cPanel itself or you can create a simple file in the root directory of your web site. The graphical editor has simple toggle switches for many common configurations and an editor mode for when the configuration you need to adjust does not exist.
To access the built-in graphical editor, search in cPanel for MultiPHP INI Editor. Once you are in the editor, you will be asked for which domain you wish to change the configuration. After selecting the domain, you will see all of the options you are able to change. Any configuration changes you save will be saved to a file named “php.ini” in the document root for your web site.
If you prefer manually adjusting configurations and are familiar with FTP or SSH, you may do so in the text editor of your choice. If this is the case, PHP automatically checks for a file named “.user.ini” for user defined configurations. The file is cached for 5 minutes to avoid having extra work when your site has a lot of traffic – this means you may not see the changes made to this file applied immediately. Place the file in the document root for your site, and PHP should pick up adjustments.
PHP-FPM has overrides in some configurations, so you may want to check if your site is running on PHP-FPM by viewing the “MultiPHP Manager” in cPanel. The following configurations will not work if your site is running on PHP-FPM:
If you need to have your configurations to be updated or changed, you can contact the Alpha Hosting Support Team to have them adjusted.