XAMPP is a free and open-source tool used by web developers in the Windows family and other platforms to set up the development and testing environment. XAMPP server comes with the XAMPP control panel to manage all its components easily. Installing XAMPP frees you to learn and remember commands to run Apache, MySQL, etc. It simply gives you a control panel to manage all-inclusive components. Xampp free download for windows 10 64 bit. How to Install XAMPP on Windows 10. Let’s start, xampp installation in windows 10 64 bit step by step. But although installing XAMPP is easy, updating XAMPP takes a few steps extra. Why Should I Update XAMPP? Chances are that you, just as we did, have an old version of XAMPP installed on your computer. And just like WordPress and its extensions get updated, so does PHP and the database systems. And you simply have to keep up.
Upgrade PHP Version 7 to 8 in Xampp: Here we have the latest version in PHP with many updates and improvements. Many web developers, especially beginners, have a common question “How to update PHP version in XAMPP?”. After getting a lot of queries on the topic, we decided to write a short and simple tutorial on how you can easily update the PHP versions in Windows XAMPP.
It is not very complex but sometimes very essential when we need the latest version of PHP for a new project without changing the current local server settings. So, I am trying to cover changing the version by keeping the old version manually.
Latest Version of PHP in 2021
Now we have the PHP 8.0.2 version and more latest versions will be on the way. And PHP 8 has many features as given below.
- PHP 8.0 is a major update of the PHP language.
- It contains many new features and optimizations including named arguments, union types, attributes, constructor property promotion, match expression, null safe operator, JIT.
- PHP 8 has improvements in the type system, error handling, and consistency.
- PHP 8.0 improves speed and compiling.
Now, I am going to tell you How to Upgrade PHP Version 7 to 8 in Xampp
Step1: Download PHP 8.0.2 Version from its official website. click to download PHP 8.0.2. You need to download Thread safe version.
after download the PHP latest version. you need to create a new folder named “php” and extract the downloaded zip inside the PHP folder you recently created.
Step 2: Go to your XAMPP installation directory ( C:xamppphp ) and rename your old PHP directory with an old version prefix like PHP to PHP_old or PHP_7_4. Now copy & paste the extracted new PHP folder here. You can see this in the given image below. I have changed my PHP folder name to php7.2. and the PHP folder is the latest version.
Step 3: After the rename of the old php folder to php7.2 or something else. Now you need to move the new “php” to xampp directory.
Step4: Next, open httpd-xampp.conf from the XAMPP dashboard configuration panel. as you can see in the given below image.
On the PHP-Module setup section, comment these two lines and add the two lines below
# PHP-Module setup
LoadModule php_module “/xampp/php/php8apache2_4.dll”
That’s it. Now restart your XAMPP server and keep coding. Now you can check your php version via using the php_info() function or you can also use the command: php -v
Summary for Upgrade PHP Version 7 to 8 in Xampp
May in some cases you will face an error or issue. so, I recommend you restart your system once and check it again. if the error is still there or Xampp apache is not running so, you have 2 scenarios.
- Your PHP new version does not download or extracted correctly. or you have downloaded the wrong zip file.
- you did a mistake in the editing of httpd-xampp.conf file.
Also, Read Top Programming Languages and the Best way to earn online.
3,151 total views, 43 views today
Step 1: Install the Visual C++ Redistributable for Visual Studio 2015 from http://www.microsoft.com/en-us/download/details.aspx?id=48145 if not installed.
Step 2: Download preferred version of PHP for Windows from https://windows.php.net/download/
if preferred version not found in main download page then check past release page https://windows.php.net/downloads/releases/archives/
Upgrade Xampp Mysql Version
Here I am upgrading PHP 7 version:
chose version (7**) Non-thread-safe 32/64-bit
I am downloading the “php-7.3.21-nts-Win32-VC15-x64.zip” version as per my need.
Step 3: Once downloaded. Expand the zip file into the path C:YOUR-XAMPP-FOLDERphp7**
Step 4: In the C:YOUR-XAMPP-FOLDERphp7** folder, rename the file php.ini-development to php.ini, it may ask for administrator access, allow it.
Step 5: Edit the php.ini file in a text editor (e.g. Notepad++, Atom, or Sublime Text).
Step 6: Change the following settings in the file and save the file:
Change memory_limit from 128M to 2G (because Composer can use lots of memory!) (For Magento reference)
Uncomment the line that reads ; extension_dir = 'ext'
Step 8: In the section where you find a bunch of extension= lines, uncomment the following required (For Magento reference) lines:
thenclick OK for'Environment Variables window',
andclose the System Control Panel.
Step 10: restart XAMPP.
check the PHP version using “php -v”.
Hopefully it will help someone. If you have any questions, please comment out.