This tool provides an easy way to adjust PHP settings for your hosting account. Use the Select Location drop-down menu to specify the domain where the changes should take effect. If you want the settings to apply universally across all domains managed in your cPanel, choose Home Directory. After making your selection, the interface will display the customizable PHP settings for the chosen domain or directory.
Basic Mode
The Basic Mode section allows you to adjust PHP directive values for a specific domain or the home directory. After selecting the domain or directory, the interface displays a list of modifiable directives. Make your desired changes, then click Apply to save them. The system updates the php.ini, user.ini, and .htaccess files accordingly.
Adjusting the following directives may be crucial if you encounter issues with uploading files that exceed the default size limits. This is a common situation, and you can resolve it by modifying these settings:
- memory_limit
- post_max_size
- upload_max_filesize
Of course, if you continue to experience issues with the file upload process, please don’t hesitate to contact our Customer Support team—we’re here to help!
Important Considerations:
- Security Tip: To maintain a secure environment, we recommend sticking to the default values provided by cPanel.
- Directive Availability: Not all directives are supported by every PHP version. If a directive is missing from the interface, it’s likely not compatible with your selected PHP version.
- File-Specific Settings: The system only writes directives to files (php.ini, .user.ini, .htaccess) that support those specific configurations. These files are not necessarily identical and may serve different purposes.
Editor Mode
In Editor Mode, you can select the location you wish to configure from the menu. You have the option to edit either the home directory of the user account or the root directory of a specific domain:
- Home Directory: Apply changes globally across all websites under the current cPanel user.
- Domain Root Directory: Limit the changes to a specific domain.
After making your selection, the PHP directives available for configuration will be displayed in the interface.
Important Reminder:
When making changes in this section, it’s essential to proceed carefully. Mistakes can cause PHP scripts to stop working, so we recommend using this tool only if you’re familiar with PHP settings.
Words You Can’t Use:
Certain words are restricted and cannot be used as directives. These include:
null, yes, no, true, false, on, off, and none.
Characters You Should Avoid:
Directives cannot contain special characters like:
? { } | & ~ ! [ ] ( ) ^.
How Some Values Behave:
- Using values like null, off, no, or false will set the directive to an empty value (“”).
- Values such as on, yes, or true will set the directive to 1.
In Editing Mode, the system loads the content of the php.ini file associated with the selected domain, if it exists. If no php.ini file is found, the interface will provide a blank editor, allowing you to create your own file. Once you’ve made the necessary changes, click Save to apply them.
Special Cases
If you change your PHP version—for instance, from PHP 5 to PHP 7—the system may not immediately recognise your configuration changes. To resolve this, you’ll need to re-edit and save your PHP configuration in the interface. This ensures that the .htaccess directives are properly loaded.
The system saves your updates to both the php.ini file (in the path displayed in the Path section of the interface) and the .user.ini file. Additionally, these changes are saved to the .htaccess file.
Tip:
- The system will only write a directive to an .ini or .htaccess file if the directive is supported by the specific file.
- The php.ini, .user.ini, and .htaccess files are not always identical and may have different purposes.