How can i update my xampp php to 8.0 2?

It provides all the steps required to update and upgrade the PHP version to PHP 8 in XAMPP on Windows 10.

XAMPP is a complete package to install the Apache Web Server, MySQL, PHP, Perl, FTP Server, and phpMyAdmin for Linux, Solaris, Windows, and Mac OS X. It also provides an interface to admin Apache Web Server, MySQL, and PHP. Though XAMPP is being released frequently, it might be required to use the most recent version of PHP till XAMPP include it in its distribution. This tutorial provides all the steps required to update or upgrade the PHP version to PHP 8 in XAMPP.

You can also follow the tutorials How To Install XAMPP On Windows and How To Install PHP 8 On Windows to install the most recent version of XAMPP and PHP on Windows.

Step 1 - Open XAMPP Control Panel

Open the XAMPP Control Panel as shown in Fig 1.

How can i update my xampp php to 8.0 2?

Fig 1

Step 2 - Open Apache Config Panel

Click the Config Button next to apache. It will show the configuration options as shown in Fig 2.

How can i update my xampp php to 8.0 2?

Fig 2

Step 3 - Open Config File

Choose the option Apache(httpd-xampp.conf) as highlighted in Fig 2. It will open the configuration file httpd-xampp.conf as shown in Fig 3.

How can i update my xampp php to 8.0 2?

Fig 3

Step 4 - Update PHP Installation Path

I have highlighted some of the PHP configurations in Fig 3. I have installed the most recent version of PHP i.e. PHP 7.4.0 while writing this tutorial by following How To Install PHP 7 On Windows. Also, I have updated the PHP installation path as highlighted in Fig 4.

How can i update my xampp php to 8.0 2?

Fig 4

Step 5 - Save Configuration and Start Apache

Now save the changes and start the Apache Web Server. It will show the Apache status as shown in Fig 5.

How can i update my xampp php to 8.0 2?

Fig 5

Step 6 - Verify PHP

In this step, we will verify the PHP version used by XAMPP. Open the Browser and type the URL http://localhost. It will show the XAMPP Dashboard. Now click the PHPInfo Link to open the PHP info page as shown in Fig 6.

How can i update my xampp php to 8.0 2?

Fig 6

It reflects the most recent version of PHP i.e. PHP 8.0.3.

Summary

In this tutorial, we have discussed using the multiple versions of PHP using XAMPP by configuring the apache configuration file. I have provided all the steps required to upgrade the PHP distributed by XAMPP to the most recent version of PHP i.e. PHP 8.0.3.

This tutorial provides the steps you need to upgrade from PHP 7 version to PHP 8 in Xampp

Step 1. Get php 8 folder 

Go to this link https://sourceforge.net/projects/xampp/ and download the zip file which at the time of this tutorial is /XAMPP Windows/8.0.11/xampp-portable-windows-x64-8.0.11-0-VS16.zip

How can i update my xampp php to 8.0 2?

Step 2. Extract php folder from the zip file

How can i update my xampp php to 8.0 2?

Step 3. Place the php folder in the Xampp folder 

Go to the root of the Xampp folder and rename the current php folder to something like php7 and copy/paste the php folder you extracted. Make sure that the folder you extracted is called php.

How can i update my xampp php to 8.0 2?

Step 4. Open the XAMPP Control Panel and click the config button

How can i update my xampp php to 8.0 2?

Step 5. Click the Config Button next to apache

Choose the option Apache(httpd-xampp.conf), It will open the configuration file httpd-xampp.conf and change the lines highlighted from php 7 to 8. Be sure to change all the lines with php7_module to php_module throughout the file.

How can i update my xampp php to 8.0 2?
How can i update my xampp php to 8.0 2?

Step 6. Save and restart Apache

Now save the changes and start the Apache Web Server.

How can i update my xampp php to 8.0 2?

Now Xampp is updated with PHP 8

How can i update my xampp php to 8.0 2?

Related

Related

How can I update my PHP version in XAMPP 8?

Download PHP from the latest Xampp: Extract the folder and copy php folder from the latest xampp. Now, go to your existing xampp folder and rename the current PHP folder to php7 or whatever you want. Then paste the new php folder in the existing xampp. That's it!

How can I update my XAMPP version?

Process Overview.
Step 1: Backup Website Files. All of your XAMPP website files live inside of the \xampp\htdocs\ directory. ... .
Step 2: Export Databases. ... .
Step 3: Uninstall the Old Version of XAMPP. ... .
Step 4: Install the New Version of XAMPP. ... .
Step 5: Adjust PHP Settings. ... .
Step 6: Restore Your Website Files and Databases..

How do I update PHP to latest version?

How do I change the PHP version?.
Log in to your one.com control panel..
Scroll down to the Advanced settings tile and select PHP and database settings..
Scroll down to Update PHP version..
Select the PHP version you want to switch to and click Update..

How can I update PHP version in XAMPP 32 bit?

Go to your xampp folder rename the default php folder to something else. Copy the extracted (renamed php ) folder in xampp directory. Copy the php..
Download PHP binary from here. ... .
Created a backup of xampp/php folder..
Extract all the contents of zip file to xampp/php folder..
Copied php..