90% OFF ALL NEW PLANS + 100-DAY MONEY-BACK GUARANTEE
90% OFF ALL NEW PLANS

Changing PHP settings

You can manage the PHP settings on your account using php.ini and .user.ini files. In general, we would recommend that you .user.ini files as they work recursively unlike php.ini files; however, you can manage some PHP settings only via php.ini files (e.g. ionCube and ImageMagick extensions). More details about PHP configuration files, their main differences, and the precedence they take are available in our PHP configuration files and priority article. You can create/edit php.ini and .user.ini files in your account manually via the hosting Control Panel -> File Manager interface.

Changing the PHP settings for a subdomain

To change the PHP settings for a subdomain, access the hosting Control Panel -> PHP Settings section, and click on the Manage button next to the specific subdomain. You will be redirected to the PHP settings management screen where you can use the available interface to manage PHP extensions and directives. You can click on the Edit button next to the subdomain's php.ini file from the Info section to edit the php.ini file as plain text via the hosting Control Panel -> File Manager interface.

If you prefer editing php.ini files in plain text mode, you can navigate to the subdomain whose PHP settings you wish to modify using the hosting Control Panel -> File Manager section.

Note: If you do not use the hosting Control Panel -> PHP Settings section to change the PHP settings for a subdomain that uses FPM with OPcache as PHP handler, you will need to reload the FPM master process manually by going to the hosting Control Panel -> PHP Settings section, click on the Manage button next to the specific domain, and click on the Reload FPM master process button.

Changing the PHP settings for a folder

If you wish to change the PHP settings for a specific folder only, you can create a php.ini or .user.ini file inside that folder via the hosting Control Panel -> File Manager section. We would recommend that you also add the directives specified in the Default content of php.ini files on our servers section from our PHP configuration files and priority article for compatibility reasons.

Changing the PHP settings for a specific file

You can change the PHP settings for a specific PHP file using the ini_set() PHP function. This function allows you to use custom PHP settings for the specific file instead of using the current PHP configuration from php.ini and .user.ini files.

Changing the PHP settings in the global php.ini for your account

To change the PHP settings in the global php.ini for your hosting account, navigate to the hosting Control Panel -> PHP Settings section, and use the Edit button under the Manage global php.ini file section. If there is no global php.ini for your hosting account, the Edit button will be replaced with a Create button allowing you to create the global php.ini file for your account.