4

https://forum.laragon.org/topic/166/tutorial-how-to-add-another-php-version, I tried doing this because I want to update my php to the latest version of php 7.3.

enter image description here

Now I got that error

TheBAST
  • 2,680
  • 10
  • 40
  • 68

1 Answers1

6

With Laragon, adding another PHP version is very easy. Here's how to add PHP 7.3

  1. Download PHP: http://windows.php.net/downloads/releases/

In this case we download: https://windows.php.net/downloads/releases/php-7.3.0-Win32-VC15-x64.zip


  1. Extract the downloaded to: {LARAGON_ROOT}\bin\php\php-7.3.0-Win32-VC15-x64

    C:\laragon
    -- bin
    ---- php
    -------- php-7.3.0-Win32-VC15-x64
    -------- .............


  1. Select the new version at: Laragon Menu > PHP > Version > php-7.3.0-Win32-VC15-x64

Very easy huh. That's all!

Please be noticed about PHP Version (so you can add new extensions properly)
- x64 means 64-bit
- x86 means 32-bit
- nts means Non Thread Safe


If something's wrong, please check and install correspond VC Redist (VC11, VC14, VC15...)

Leo Khoa
  • 897
  • 7
  • 8
  • Your PHP Version (php-7.3.0-Win32-VC15-x64) & Apache Version (httpd-2.4.27-win64-VC14) are not compatible! ---------------------------------------- Please make sure PHP and Apache are both: - x86 (win32) or x64 (win64) - Same VC (VC11, VC14, VC15...) Hey bud, I got this – TheBAST Dec 25 '18 at 06:40
  • Wrong directory structure: C:\laragon\bin\apache\httpd-2.4.37-win64-VC15\Apache24\conf Should be: C:\laragon\bin\apache\httpd-2.4.37-win64-VC15\conf – TheBAST Dec 25 '18 at 06:55
  • Service Apache can not start. Reason: Unknown. Please check Apache log file – TheBAST Dec 25 '18 at 07:11
  • Hey buddy any possible fixes on this one. – TheBAST Dec 25 '18 at 07:14
  • What the hell dude, I already reinstalled and installed VC14 then I get this, what the heck? Your computer is missing some Visual C++ packages. Install "Visual C++ Redistributable for Visual Studio 2015" (VC14) may fix the problem – TheBAST Dec 25 '18 at 07:39
  • Current version of laragon is 4.0.4. What's your Laragon version? – Leo Khoa Dec 25 '18 at 08:20
  • Mine is 3.4.0 180809 – TheBAST Dec 25 '18 at 09:07
  • You can upgrade to the latest version: https://forum.laragon.org/topic/1232/tutorial-how-to-upgrade-to-laragon-4-x-from-former-versions-laragon-3-x – Leo Khoa Dec 25 '18 at 10:29
  • As VC14 and VC15 can be exchanged each other, Laragon 4 will not show the warning about VC mismatch. – Leo Khoa Dec 25 '18 at 10:30