List of Help Articles
Overview of Batoi Hosting Renew Your Domain Name with Batoi Protect or Lock Your Domain Name with Batoi View Action History of Your Domain Name Manage Name Servers for a Domain Name Forward a Domain Name to a Different Website Handle Privacy Protection for a Domain Name Domain Name Whois Data Reminders from Batoi Modify the Contact Details of Your Domain Name Backup Your Website with cPanel on Linux Managing DNS Records in Linux Hosting via cPanel: A Comprehensive Guide Create FTP Accounts in Your Linux Hosting using cPanel Backup and Restore Your Linux Hosting Account via cPanel Effortless 301 and 302 Redirects in Linux Hosting: A Detailed cPanel Guide How to Seamlessly Manage DNS Records with Batoi's Premium DNS Service through Your Domain Control Panel Mastering Contact Management within Batoi's Domain Control Panel Step-by-Step Guide: Managing Business/Enterprise Email via My Domain Control Panel How to Efficiently Manage Users and Assign Administrative Roles in Google Workspace A Complete Guide to Purchasing and Managing Google Workspace through Batoi Hosting Control Panel Effortless Migration from cPanel Email to Google Workspace: Your Step-by-Step Guide Setting Up Google Workspace Using cPanel: A Comprehensive Guide How to Add an SPF Record to Your DNS Settings for Email Security Setup of Microsoft Office 365 Using cPanel: A Comprehensive Guide Reviewing Your Linux Hosting Resource Allocation and Usage in cPanel Creating and Managing Sub-domains with cPanel on Linux How Do I Emulate DNS Change on My PC? Effortless Migration from cPanel Email to Microsoft Office 365: Your Step-by-Step Guide How to Set up MFA for Your Microsoft Office 365 Outlook Account Setting up POP or IMAP Email on an Apple iPhone Creating and Managing MySQL Databases with cPanel on Linux How to Fix the Error '0x800CCC1A' in Microsoft Outlook? How to Fix the Error '0x800CCC78' in Microsoft Outlook? Setting up Email Account on Your Mac Mail Application Installing WordPress within Your Hosting Account with cPanel on Linux Setting up POP or IMAP Email on an Android Phone Setting up Mozilla Thunderbird as Your Email Client in Windows PC Setting up Microsoft Outlook as Your Email Client in Your Windows PC Setting up Mozilla Thunderbird as Your Email Client in Mac Creating Email Accounts with cPanel on Linux Creating More FTP Accounts with cPanel on Linux Accessing cPanel and Webmail on Linux Generate a Certificate Signing Request (CSR) Generate the Domain Secret or the Authorization Code for Your Domain Name How to Fix the Error '0x800CCCDD' in Microsoft Outlook with IMAP Server? Comprehensive Guide to Managing PHP Settings in cPanel on Your Linux Hosting Account Integration of Google Analytics on Your Website My Emails Are Bouncing Back. What Should I Do? What should I do when I cannot access my email or website on My Windows PC? Password Protect Files and Folders with cPanel on Linux Transfer Your Domain Name from your Current Registrar to Batoi Uploading Your Files with an FTP client (FileZilla)

Comprehensive Guide to Managing PHP Settings in cPanel on Your Linux Hosting Account


Maximize your Linux hosting capabilities by mastering PHP configurations in cPanel. Our definitive guide covers the PHP Version Selector, MultiPHP Manager, and MultiPHP INI Editor, ensuring your website runs optimally.

Introduction

Effective PHP management is essential for running a dynamic website or application. This guide walks you through using cPanel's integrated tools like PHP Version Selector, MultiPHP Manager, and MultiPHP INI Editor to manage your PHP settings comprehensively.

Section 1: Accessing cPanel

Login to cPanel: To start, you need to access your cPanel account. You can do this by appending '/cpanel' to your domain name (e.g., https://<your-domain-name>/cpanel) or via the link provided by our Support Team. Use your username and password to log in, as illustrated in Figure 1 below.

Figure 1: cPanel Login Screen
Figure 1: cPanel Login Screen

You will land on the dashboard page upon successful login, as illustrated in Figure 2 below.

Figure 2: cPanel Dashboard Screen
Figure 2: cPanel Dashboard Screen

Section 2: Select PHP Version

Go to the Software section in the dashboard and click on the Select PHP Version link, as illustrated in Figure 3 below.

Figure 3: cPanel Dashboard Software Section
Figure 3: cPanel Dashboard Software Section

You will land on the page after clicking the Select PHP Version link, as illustrated in Figure 4 below.

Figure 4: cPanel PHP Version Selector Screen
Figure 4: cPanel PHP Version Selector Screen

You can select the PHP version from the My Domains list and click on the drop menu to change the version. By default, the server host PHP version will be inherited.

Section 3: Multi-PHP Manager

Go to the Software section in the dashboard and click on the MultiPHP Manager link, as illustrated in Figure 5 below.

Figure 5: cPanel Dashboard Software Section
Figure 5: cPanel Dashboard Software Section

You will land on the page after clicking the MultiPHP Manager link, as illustrated in Figure 6 below.

Figure 6: cPanel MultiPHP Manager Screen
Figure 6: cPanel MultiPHP Manager Screen

On the MultiPHP Manager dashboard, all the domains and subdomains will be listed along with their current PHP version, as illustrated in Figure 6 above.

Select the check box for the domain or sub-domains for which you would like to change the PHP version from the dashboard, as illustrated in Figure 7 below.

Figure 7: cPanel MultiPHP Manager Screen
Figure 7: cPanel MultiPHP Manager Screen

Click on the PHP version drop menu from the top, and you will able to see all the versions available for you in the dropdown list, as illustrated in Figure 7 above.

After selecting the version, click the Apply button to save the changes you made.

Section 4: MultiPHP INI Editor

Go to the Software section in the dashboard and click on the MultiPHP INI Editor link, as illustrated in Figure 8 below.

Figure 8: cPanel Dashboard Software Section
Figure 8: cPanel Dashboard Software Section

You will find two modes on the INI editor dashboard, as illustrated in Figure 9 below.

  • Basic Mode
  • Editor Mode
Figure 9: cPanel MultiPHP INI Editor Dashboard Screen
Figure 9: cPanel MultiPHP INI Editor Dashboard Screen

Basic Mode

By default, you will land on the Basic Mode. Select the location from the drop menu as Home Directory, as illustrated in Figure 9 above. You can also select the domain name for which you want to change the setting.

Once you select the location a table will appear with PHP Directive and their settings, as illustrated in Figure 10 below.

Figure 10: cPanel MultiPHP INI Editor Basic Mode Screen
Figure 10: cPanel MultiPHP INI Editor Basic Mode Screen

Here, you can set your preferences, and do not forget to click the Save button at the bottom of the screen.

Editor Mode

Select the location that you wish to configure from the menu. You can edit either the user account’s home directory or the domain’s document root. If you want changes made to reflect on any website under this cPanel user, edit the home directory, as illustrated in Figure 11 below.

Figure 11: cPanel MultiPHP INI Editor Mode Screen
Figure 11: cPanel MultiPHP INI Editor Mode Screen

Once you select the location, a text area will appear, as illustrated in Figure 12 below.

Figure 12: cPanel MultiPHP INI Editor Mode Screen
Figure 12: cPanel MultiPHP INI Editor Mode Screen

The Editor Mode section will load the contents of the php.ini file for your selected domain if it exists. If the php.ini file does not exist, the interface loads a blank editor so that you can create your own file. Make your changes to the desired directives and click the Save button.

Once you save, both the php.ini file and the user.ini file will be updated. This will also save these changes to your .htaccess file.

Conclusion

Managing your PHP settings is integral to the successful operation of your website or application. This guide equips you with all the necessary skills to use the cPanel to manage PHP effectively. Mastering these tools will be crucial for scalability and performance as you grow your venture. Our Support Team is always available to assist you if you have any questions or require further clarification.