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.
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.
0 Comments