How to make changes to your PHP.ini file in cPanel
This tutorial will guide you through using the MultiPHP INI Editor in cPanel to modify PHP settings for your websites. There are two main interfaces: Basic Mode and Editor Mode.
Basic Mode (Easier):
- Access cPanel: Log in to your cPanel account provided by your web hosting service.
- Locate MultiPHP INI Editor: Navigate to the “Software” section and find the “MultiPHP INI Editor” option. Click on it.
- Select Location: From the dropdown menu under “Configure PHP INI basic settings,” choose the location you want to modify. You can select either:
- The home directory (affects all websites under your cPanel account)
- A specific domain’s document root (affects settings only for that domain)
- Adjust Settings: The interface will display commonly used PHP directives with descriptions and default values. Locate the setting you want to change and adjust its value using the provided fields.
- Apply Changes: Once you’ve made your adjustments, click the “Apply” button to save the changes to the PHP configuration for the chosen location.
Editor Mode (Advanced):
- Access Editor Mode: In the MultiPHP INI Editor interface, switch to “Editor Mode” from the top-left corner.
- Select Location: Similar to Basic Mode, choose the location (home directory or document root) you want to edit the PHP configuration for.
- Edit Configuration File: The editor will display the content of the PHP configuration file (usually named php.ini) for the chosen location. You can directly edit the settings here by adding, modifying, or removing lines. Be cautious when editing this file, as syntax errors can cause unexpected behavior on your website.
- Save Changes: After making your edits, click the “Save” button to save the changes to the php.ini file.
Important Considerations:
- Exercise Caution: Especially in Editor Mode, make sure you understand the implications of any changes you make to the PHP configuration. Incorrect settings can lead to website malfunctions.
- Basic Mode for Beginners: If you’re new to editing PHP settings, start with Basic Mode, which provides a user-friendly interface with explanations for each option.
- Refer to Documentation: For detailed information about specific PHP directives and their effects, consult the official PHP documentation https://www.php.net/manual/en/index.php.
By following these steps and using caution, you can effectively adjust PHP settings for your websites using the MultiPHP INI Editor in cPanel.
Expand Your Hosting Services with 5wire’s Cloud Server, Reseller Hosting, and Forex Servers. Join the 5wire reseller hosting network and leverage our advanced cloud servers and specialised forex servers to grow your business.