Bobcares

Update PHP version in Plesk panel – How we do it safely?

by | Mar 5, 2020

Looking for the steps to update the PHP version in Plesk panel? We can help you.

The latest version of PHP protects the website against vulnerabilities identified in the previous version.

However, a bad update can make all your PHP based websites down.

At Bobcares, users often approach us with queries regarding PHP update as a part of our Server Management Services.

Today, let’s see how our Support Engineers guide our customers on this.

 

Benefits of adding the latest PHP version

PHP is an open-source programming language that runs on a webserver. Plesk provides full support for the PHP scripting language and supports multiple PHP versions.

The latest PHP version provides better security, new features and it makes the websites faster.

 

Preparing for PHP update

PHP update on the server is a major change. Therefore, it’s good to prepare the server well prior to the update process.

Having a decade of experience in handling Plesk servers, our Support Engineers take the following actions.

  • ensure enough server backups as a fallback option.
  • choose an off-peak time for PHP updates.
  • communicate to customers before-hand about the PHP update plan.
  • check for website compatibility with new PHP versions.

 

How to Update a new PHP version in Plesk panel?

Recently, one of our customers approached us for the steps to update the new PHP version in his Plesk server. The steps for PHP update slightly vary depending on the version of Plesk, type of server, etc.

Let’s now see how our Support Engineers guide them to follow the below steps for adding the new PHP version in Plesk.

 

In Plesk Onyx

1. Initially we log in to the Plesk.

2. Then we go to Tools & Settings and select Updates.

3. After that open, the Add/Remove Components tab.

4. For Windows Plesk, we expand the Plesk hosting features section.

Update PHP version in Plesk panel

For Linux Plesk, we expand the Web hosting section, and then the PHP interpreter versions section. Currently installed PHP versions will be marked with a green checkbox icon, and not installed versions are marked with a red cross icon.

5. To install the PHP version we select the PHP versions and click the corresponding icon Install. We remove the PHP version by clicking the corresponding Remove icon.

6. Click Continue to install the selected PHP versions.

 

In Plesk Obsidian

In Plesk Obsidian, we follow the below steps.

1. Initially we log in to the Plesk.

2. Then we go to Tools & Settings and click Updates.

3. After that, we click click Add/Remove Components.

4. Then, we select the Plesk hosting feature section if this is a Windows server. In Linux, we expand Web hosting and select the PHP interpreter versions section.

5. Then select the required PHP versions for installation and click Continue.

To uninstall the PHP version we follow the same steps.

 

Plesk Update through the command-line interface

We can also add the PHP versions via a command-line interface in Windows or Linux. Let’s see the update procedure in the Windows server.

1. Firstly we connect to a Plesk server via RDP in Windows Server.

2. Then in the windows server, we run the command prompt as an Administrator.

3. Then we run the below command to get the list of all available Plesk components.

plesk installer --select-release-current --show-components

4. We install the additional PHP versions using the below command.

plesk installer add --components phpXX

We can remove the PHP version by using the remove command instead of the add command.

 

Change the PHP version for a domain in Plesk

We can easily change the PHP version for a domain in Plesk.

1. For that firstly we log in to Plesk.

2. Then select the Domain.

3. Then select the PHP Settings and set the required PHP version from the drop-down list.

Always take a backup before changing the PHP version. Also, we make sure that the CMS version is compatible with the latest PHP version.

 

[Need more assistance in updating the PHP version? We’ll help you.]

 

Conclusion

In short, we discussed the benefits and exact procedure to update PHP version in Plesk panel. Also, we also saw how our Support Engineers update PHP safely.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Speed issues driving customers away?
We’ve got your back!

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF