[Tutorial] How to add another PHP version (PHP 7.4)
With Laragon, adding another PHP version is very easy. Here's how to add
- Download PHP:
In this case we download:
- Extract the downloaded to:
C:\laragon -- bin ---- php -------- php-7.4.0-Win32-vc15-x64 -------- .............
- Select the new version at: Laragon Menu > PHP > Version > php-7.4.0-Win32-vc15-x64
Very easy huh. That's all!
Please be noticed about PHP Version (so you can add new extensions properly)
ntsmeans Non Thread Safe
If something's wrong, please check and install correspond VC Redist (VC11, VC14, VC15...)
- Download PHP:
I still maintain a project using PHP 5.4, is itu possible to add a 5.4 version PHP into Laragon?
I changed to PHP 5.5.25 succesfully.. but phpmyadmin does work.
How I can change phpmyadmin to compatible version
What is your Laragon version?
Laragon 2.0.5 comes with phpMyAdmin 4.6.4. However, you can install other version of phpMyAdmin (just download and extract to etc/apps/phpMyAdmin)
Hi there! I just download the phpmyadmin version that i want and extract it into WWW folder and i worked! (use others directory name such "phpmyadmin-old" ..etc, so it wont conflict with original ones)..
I'm still using Laragon 1.0.6, and when I tried to install PHP 7.1.0 I was using the Thread Safe version because it's the only version that included php7apache2_4.dll. Before, I tried using NTS version and failed to install. Hope this help to someone who still using old version of Laragon.
I installed the latest laragon with php-7.1.12-Win32-VC14-x64. After adding another version of PHP i.e. php-5.6.33-Win32-VC11-x64, it threw an error as below
Server Apache can not start. Reason: ------------------------------------ httpd: Syntax error on line 542 of C:/laragon/bin/apache/httpd-2.3.27-win64-VC14/con....: Syntax error on line 2 of C:/laragon/bin/apache/mod_php.conf: Cannot load C:/laragon/bin/php/php-5.6.33-Win32-VC11-x64/php5... into server. The specified module could not be found.
@Wisam-Qadeer171 : What's behind
Please check the:
File not found at
Besides, php-7.1.12-Win32-VC14-x64 is working perfect
@Wisam-Qadeer171 : Why your error message contains that file?
I believe it is located at
Btw, what's behind php-5.6.33-Win32-VC11-x64/php5...?
That information is useful to figure out but why
The message in the dialogue box printed the
...That's also weird for me too
@Wisam-Qadeer171 : You should
Ctrl + Cto capture all message and paste it here - (Don't type)
# This file is auto-generated, so please keep it intact. LoadModule php7_module "C:/laragon/bin/php/php-7.1.12-Win32-VC14-x64/php7apache2_4.dll" PHPIniDir "C:/laragon/bin/php/php-7.1.12-Win32-VC14-x64" <IfModule mime_module> AddType application/x-httpd-php .php </IfModule>
@Wisam-Qadeer171 : Can you rename it to mod_php.conf.bak and restart Laragon?
Fetch from apache error.log:
httpd: Syntax error on line 542 of C:/laragon/bin/apache/httpd-2.4.27-win64-VC14/conf/httpd.conf: Syntax error on line 2 of C:/laragon/etc/apache2/mod_php.conf: Cannot load C:/laragon/bin/php/php-5.6.33-Win32-VC11-x64/php5apache2_4.dll into server: The specified module could not be found.
@Wisam-Qadeer171 : Does the file exists?
Yes it does exists
@Wisam-Qadeer171 : I guess you don't have VC Redist 11 x64, please download & install it: