Skip to content

Instantly share code, notes, and snippets.

Last active January 24, 2024 09:27
Show Gist options
  • Save BARNZ/821cc31a4ed1d82d1681200ccfb9fae2 to your computer and use it in GitHub Desktop.
Save BARNZ/821cc31a4ed1d82d1681200ccfb9fae2 to your computer and use it in GitHub Desktop.
My notes for upgrading laragon to work with latest apache and php8.1
Update to laragon 5:
- Stop all running services in laragon
- Make sure laragon itself is properly closed
- Download the latest laragon.exe and overwrite your original laragon.exe
Update to latest apache
- Download the latest apache 2.4 VS16 for windows (Apache 2.4.x OpenSSL 1.1.1 VS16):
- Extract contents of download. Move+rename the "Apache24" folder to laragon/bin/apache/httpd-2.4.51-o111l-x64-vs16 (same setup as your other versions of apache)
- Make 2 edits to conf/httpd.conf
- Comment out #Define SRVROOT "/Apache24" and add below it: Define SRVROOT "/laragon/bin/apache/httpd-2.4.51-o111l-x64-vs16" (just path if necessary)
- In the same file also comment out the line: #Include conf/extra/httpd-ahssl.conf
- You also need the latest Mod FCGID for Apache
- Extract and copy+rename "" into laragon/etc/apache2/modules/
- Edit laragon/etc/apache2/fcgid.conf and comment out #LoadModule fcgid_module
- Below it add: LoadModule fcgid_module "C:/laragon/etc/apache2/modules/" (adjust path if necessary)
- Enable the latest apache from laragons quick menu
Download the latest php 8.1 Non Thread Safe (NTS) version
- (select the zip download option)
- Download and extract into your laragon/bin/php folder
- Update any environment variable to use this new version of php if necessary
- Enable this version of php in your laragon quick menu (it will create a php.ini file)
- Copy any prior settings and extensions from your old php as required
- You'll probably want the latest php8.1 sqlserver drivers: (extract extensions to php/ext dir and enable as needed)
Ensure both latest apache and php running in laragon. Hopefully no error when starting apache!
Copy link

I thought Laragon was supposed to be upgradeable from it's menu???? Not true? We are using Windows11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment