How to Upgrade PHP Version 7 to 8 in Xampp Windows: A Step-by-Step Guide

Upgrading PHP from version 7 to 8 in Xampp for Windows is a fairly easy process. This article will provide a step-by-step guide on how to make the upgrade.

How to Upgrade PHP Version 7 to 8 in Xampp Windows: A Step-by-Step Guide


Are you looking for a guide on how to upgrade PHP version 7 to 8 in Xampp Windows? If so, you have come to the right place! In this blog post, we will walk you through the step-by-step process of making this upgrade. Upgrading PHP can be a bit tricky, but with our help, it will be easy for you!

How to Upgrade PHP Version 7 to 8

Step 1. Download the latest PHP folder from Xampp.

The file you need is called 8.0.19 / PHP 8.0.19.

You can download the XAMPP PHP zip file from this link: https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/8.0.19/xampp-portable-windows-x64-8.0.19-0-VS16.zip/download.

Step 2. Extract the php folder from the zip file.

Step 3. Now place the extracted new PHP files in your installed XAMPP directory.

  1. Rename the PHP folder in the Xampp root to php7.
  2. Copy the PHP folder you extracted to the Xampp root.
  3. Make sure that the PHP folder is called PHP.

Step 4. Now start the XAMPP program.

Step 5. In the Apache line, you will see a config button, click that.

  1. Open the file httpd-xampp.conf in a text editor.
  2. Change the php7_module lines to php_module.
  3. Save and close the file.

Step 6. Restart Apache

Now restart the XAMPP application and restart the Apache.

You should now see that the PHP version has been changed to 8 in phpinfo.

Now, you can test your PHP installation by creating a new file called test.php and adding the following code to it:

  <?php    phpinfo();    ?>  

There you have it! You have successfully upgraded your PHP version from 7 to 8 in Xampp Windows!

We hope this guide was helpful for you. If you have any questions or comments, please feel free to leave them below.

Tags:

About Author

Hameed Aslam

  • 1 Post
  • 0 Recent Post

Hameed Aslam is a website design and development expert, as well as an SEO and content strategist. He is the founder of DCreato and many other online ventures. Hameed's skills with web design, development, SEO, and content marketing have helped him achieve success in online business. He loves to help others learn about these topics so that they can also be successful online.

Latest Comments 0 Responses

Login/ Register to Comment
Back