In this post, we will find out How to update the PHP variation in Windows 10 in XAMPP.
XAMPP is a total setup bundle for the Apache Web Server, MySQL, PHP, Perl, FTP Server, and phpMyAdmin on Linux, Solaris, Windows, and Mac OS X. It likewise permits you to handle Apache Web Server, MySQL, and PHP. In spite of the truth that XAMPP is continuously upgraded, it might be essential to make use of the most current variation of PHP up until XAMPP includes it in its circulation.
You require to follow the following 6 actions to update the PHP variation in Windows 10
Action 1: Open the XAMPP Control Board.
As seen in screenshot 1, open the XAMPP Control board.
Action 2: Open to the Apache Setup Panel.
Beside apache, click the Config button. It will show the setting alternatives showed in screenshot 2.
Action 3: Search to the Config File.
Select the Apache (httpd-xampp. conf) choice, as displayed in Fig 2. It will open the httpd-xampp. conf setup file, as shown in screenshot 3.
Action 4: Customize the PHP Setup Course
In screenshot 3, I have actually highlighted a couple of PHP settings. While composing this post, I set up the most newest variation of PHP, PHP 7.4.0, by following How To Set up PHP 7 On Windows. In addition, as seen in screenshot 4, I have actually customized the PHP setup course.
Step 5: Conserve the setup and begin Apache.
Conserve your adjustments and begin Apache Web Server. As shown in screenshot 5, it will show the Apache status.
Action 6-- Validate PHP
In this action, we will inspect the PHP variation that XAMPP is utilizing. Open a web browser and type http://localhost into the address bar. The XAMPP Control panel will be shown. Now, as displayed in screenshot 6, click the PHPInfo Link to see the PHP info page.
It shows the most current PHP variation, PHP 7.4, as displayed in Fig 6.
Summary
We checked out how to utilize various variations of PHP with XAMPP by setting up the apache setup file in this post. I have actually detailed all of the actions essential to update the PHP provided by XAMPP to the most current variation of PHP, PHP 7.4.