How to update php version in cpanel?

Updating the PHP version in cPanel is a straightforward process that can be done in just a few steps. In this article, we will guide you through the process of updating the PHP version in cPanel.

Step-by-Step Guide to Updating the PHP Version in cPanel:

Step 1: Log in to cPanel Log in to your cPanel account using your username and password. You should be able to access the cPanel dashboard.

Step 2: Navigate to the "Select PHP Version" section Once you are in the cPanel dashboard, navigate to the "Software" section and click on "Select PHP Version". This will take you to the PHP version selection page.

Step 3: Select the desired PHP version On the PHP version selection page, you will see a list of available PHP versions. Choose the PHP version that you want to update to by selecting it from the drop-down menu. You can also select different PHP modules that you want to enable or disable.

Step 4: Save changes Once you have selected the desired PHP version and modules, click on the "Save" button to apply the changes. You will receive a confirmation message once the changes have been saved.

Step 5: Verify the PHP version To verify that the PHP version has been updated, you can create a PHPinfo file. This file will display information about the PHP version that is currently running on your server.

To create a PHPinfo file, follow these steps:

  1. Go back to the cPanel dashboard and navigate to the "File Manager" section.

  2. Create a new file in the public_html directory and name it "phpinfo.php".

  3. Edit the file and add the following code:

<?php phpinfo(); ?>

  1. Save the file and close the editor.

  2. Open a web browser and go to http://yourdomain.com/phpinfo.php. Replace "yourdomain.com" with your actual domain name.

  3. The PHPinfo file should display information about the PHP version that is currently running on your server.

  • 0 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Articles connexes

How to add additional domain in cpanel?

Adding an addon domain in cPanel allows you to host additional domains on your hosting account....

How to set nameservers?

Changing your domain nameservers can seem like a daunting task, especially if you are new to...

How to install any script or application using softaculous

Softaculous is a popular auto-installer for cPanel that allows you to install various scripts and...

how to uplode website in cpanel?

Uploading a website in cPanel is a simple process that involves transferring the website files...

How to create email account in cpanel

Creating an email account in cPanel is a straightforward process that involves just a...