We mostly use Xampp or Wampserver to run php in localhost but Xampp or Wampserver does not support php 8 in 32 bit windows architecture. in this blog we will discuss about software called “Laragon” in which we can successfully run php 8 in 32 bit windows architecture.
Before install “Laragon ” we need to install below software.
“Microsoft Visual C++ 2008” “vcredist_x86.exe”
“Microsoft Visual C++ 2010” “vcredist_x86.exe”
“Microsoft Visual C++ 2013” “vcredist_x86.exe”
“Microsoft Visual C++ 2017” “vcredist_x86.exe”
How to Install Laragon 32 bit version
Go to link and download Laragon from official site
After download install Laragon
After install start Laragon.
Right click on Web button. currently it show PHP default version.
How to Install Multiple PHP 8
Now go to link to download PHP 8 x86 architecture version .
I have downloaded php-8.1.27-nts-Win32-vs16-x86
Copy, paste and extracted downloaded version in Laragon install directory.
My root folder is “C:\laragon\bin\php”
Right click on “Web” button. Choose PHP version 8
Restart “Laragon” again if PHP latest version does not work please Restart “PC”
To check your PHP version go “Terminal” option in Laragon
After open “Terminal”
Type php -v in “Terminal”. It will show current PHP version
How to Add phpMyAdmin in Laragon 32 bit version
Laragon by default does not have phpMyAdmin so we need to install it.
Download it from link , extract the archive to the C:\laragon\etc\apps and name the folder as phpMyAdmin
Next go to “C:\laragon\etc\apps\phpMyAdmin” folder
Rename file “config.sample.inc.php” to “config.inc.php”
Now open file “config.inc.php”.
Change
$cfg[‘Servers’][$i][‘AllowNoPassword’] = false;
to
$cfg[‘Servers’][$i][‘AllowNoPassword’] = true;
Stop and restart Laragon again.
Type url “http://localhost/phpmyadmin”
add username “root” leave password blank
How to run PHP project
To run php project go to folder “C:\laragon\www” and create your project