How to update PHP7 to PHP8 in live server - Step by Step Guide

preview_player
Показать описание
In this video tutorial, we will learn how to update the php version from 7 to 8 and resole the Wordpress Dashboard issue.

In my WordPress dashboard, wp alerted that the PHP update recommended.Your site is running an insecure version of PHP 7.2 which should be updated.

Let’s see how to get rid of this message by updating the PHP version of your live server.
In my previous video,
I showed you how to update the PHP version in the local computer xampp whereas in this video we are going to update the PHP version on the live site.

Before jumping to the solution, we can check the currently running PHP version in the server ever easily.

Navigate to your file manager and on the root folder path create a new file.

Here it is. Select to edit it.
Insert a simple PHP script on it.
Php open tag
PHP function phpinfo.
And end the PHP tag.

Save and open in the browser. It’s running 7.2

Let’s update it to 8
Navigate to the control panel and open it.

Here in the control panel, navigate to select the PHP version link on the exclusive for NameCheap customers section.

Here you can see 7.2 is the current version of PHP and from the drop-down, you can change it very easily. Let me go with 8.0 and set it as current.
Let’s check over here. Refresh the page. Great it showing PHP version 8.0
Now moving to WordPress, let’s refresh the page. Boom … It's all gone.
In this way, we can update the PHP version on the live server.

Don’t forget to like, share, and subscribe to the channel if you haven’t already. See you all in the next video tutorial. Bye.

Рекомендации по теме