How to update PHP in Laragon and WampServer on Windows

To update PHP in Laragon, add the patched build with Menu > Tools > Quick add (or extract the php.net Windows zip into bin\php), then select it under Menu > PHP > Version; in WampServer, add the new PHP version and switch to it before restarting Apache.

This guide covers both local stacks on Windows 11 and Windows 10, which build to pick, how to confirm the switch, and what to do when Apache refuses to start afterwards.

How to update PHP in Laragon and WampServer on Windows
Laragon lists every installed PHP build under Menu > PHP > Version, with a tick beside the active one. (Image: laragon.org)

Fastest way to update PHP in Laragon to 8.5.12, 8.4.27 or 8.3.36

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two critical remote code execution flaws, CVE-2026-109618 and CVE-2026-109619, so any local stack on an older build of those branches needs the update. The PHP guide hub lists every release and advisory in this cluster.

Laragon's own docs describe one route for adding and switching PHP versions.

  1. Open Laragon and click Menu.
  2. Go to Tools > Quick add and pick the PHP version you want to add.
  3. Wait for Laragon to download and integrate the package.
  4. Click Menu > PHP > Version and select the new version.
  5. Restart the running services so Apache or Nginx loads the new PHP.

If the patched version is not offered under Quick add yet, use the manual zip route in the next sections.

Laragon Quick add vs php.net zip vs WampServer addon

Your situation Use this Why
Laragon, patched version listed in Quick add Menu > Tools > Quick add > [PHP Version] Laragon downloads and integrates it for you
Laragon, patched version not listed yet Extract the php.net Windows zip into bin\php Laragon's docs say versions dropped into bin\php can be toggled from the menu
Laragon on Apache Thread Safe (TS) x64 zip php.net requires TS builds when PHP is loaded as an Apache module
Laragon on Nginx Non Thread Safe (NTS) x64 zip php.net says NTS builds suit FastCGI and the CLI
WampServer The PHP addon for the new version from the WampServer site WampServer bundles its own Apache and PHP pairing
Update PHP Laragon manually with the php.net Windows ZIP downloads page
php.net recommends x64 builds and says Apache users need the Thread Safe (TS) zip rather than NTS. (Image: php.net)

Check the PHP version in Laragon

Check before and after the update so you know which build your sites actually run.

  1. Click Menu > PHP > Version and note which version is ticked.
  2. Open the Laragon Terminal, its built-in command line.
  3. Type php -v and press Enter.
  4. Confirm the first line shows 8.5.12, 8.4.27, 8.3.36 or 8.2.35.
  5. For the web server's view, save a file containing <?php phpinfo(); in C:\laragon\www, open http://localhost/ followed by the file name, and read the PHP Version line.
  6. Delete the phpinfo file when you are done.

A version lower than the fixed releases on the same branch means the site is still exposed. You can also check your PHP version against CVE-2026-109618 on any other server you run.

Add a new PHP version to Laragon

Use this route when Quick add does not offer the patched release. Laragon's docs state that you can download and extract PHP versions into the bin\php directory and toggle between them from the menu.

  1. Open the official Windows downloads page at https://windows.php.net/download/ (it redirects to php.net's Windows downloads).
  2. Pick the branch you use, for example PHP 8.5 (8.5.12).
  3. Download the VS17 x64 Thread Safe zip for Apache, or VS17 x64 Non Thread Safe for Nginx.
  4. Install the Visual C++ Redistributable for Visual Studio 2015-2022 if it is not already on the PC, because php.net says these builds require it.
  5. Create a new folder inside C:\laragon\bin\php named after the version, for example php-8.5.12-Win32-vs17-x64.
  6. Extract the zip contents into that folder.
  7. Leave the old version's folder in place, so you can switch back if a project breaks.

Laragon is installed at C:\laragon by default, but the folder is portable, so use your own path if you moved it. The PHP 8.5.12 download and changes page lists what else changed in this release.

Update PHP Laragon with Tools > Quick add PHP version menu
Open Menu > Tools > Quick add and pick a PHP entry to download that branch into Laragon. (Image: laragon.org)

Switch PHP versions in Laragon

  1. Click Menu in the Laragon window.
  2. Go to PHP > Version.
  3. Select the folder for the patched version.
  4. Restart the services so the web server picks up the change.
  5. Run php -v in the Laragon Terminal to confirm the switch.

Your projects in www\ and your settings in usr\ stay in place, because Laragon keeps user data separate from the binaries in bin\. If you changed php.ini in the old version, copy those settings into the new version's configuration.

Switch PHP version in Laragon from the PHP Version submenu
Click any listed build under PHP > Version to make it active; the current one is shown in brackets. (Image: laragon.org)

Add a PHP version to WampServer

WampServer adds PHP versions as separate addon installers published on its own site. Pick the addon that matches the patched release and your WampServer build (32-bit or 64-bit).

  1. Open the official WampServer site at https://www.wampserver.com/.
  2. Find the PHP addon for 8.5.12, 8.4.27, 8.3.36 or 8.2.35.
  3. Check that the addon matches your WampServer build, 32-bit or 64-bit.
  4. Install it following the instructions published with the addon.
  5. Restart WampServer so it lists the new version.

If no addon exists yet for the patched release, wait for one rather than mixing in a build of unknown origin. The general PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 update steps cover standalone PHP installs.

Switch PHP version in WampServer

WampServer keeps each installed PHP version side by side, so switching back and forth is the same action.

  1. Open the WampServer menu from its icon in the notification area.
  2. Open the PHP version list in that menu.
  3. Select the patched version and let WampServer restart its services.
  4. Open a phpinfo page from your www folder and confirm the PHP Version line.

To undo the update on either stack, select the old version again from the same menu. Remove the old version only after every project runs on the new one.

Fix Apache not starting after a PHP change

Apache will not start after switching to a manually added PHP version

A Non Thread Safe build was used; php.net states the Apache handler (apache2handler) needs the Thread Safe build.

  1. Download the Thread Safe zip for the same version from the php.net Windows downloads page.
  2. Delete the contents of the Non Thread Safe folder in bin\php.
  3. Extract the Thread Safe zip into that folder.
  4. Confirm the folder contains php8apache2_4.dll, the module php.net names for PHP 8 under Apache 2.4.
  5. Select the version again and start the services.

Apache or php.exe fails with a missing DLL error

The Visual C++ Redistributable for Visual Studio 2015-2022 that php.net lists as a requirement is missing.

  1. Install the x64 Visual C++ Redistributable for Visual Studio 2015-2022 from Microsoft.
  2. Restart Laragon or WampServer.
  3. Run php -v to confirm PHP loads.

Apache config error about paths after editing httpd.conf by hand

Windows backslashes or curly quotes in Apache path directives break the config.

  1. Open the Apache httpd.conf you edited.
  2. Change every backslash in LoadModule and PHPIniDir paths to a forward slash, for example c:/php/php8apache2_4.dll.
  3. Replace any curly quotes with straight quotes.
  4. Save the file and start Apache again.

Laragon and WampServer PHP update FAQ

How do I update PHP in Laragon?

Add the new version with Menu > Tools > Quick add, or extract the php.net Windows zip into Laragon's bin\php folder. Then select it under Menu > PHP > Version and restart the services. Laragon keeps older versions, so you can switch back.

Does Laragon support PHP 8?

Yes. Laragon runs multiple PHP versions side by side, including the PHP 8 branches. The patched releases are 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and any of them can sit in bin\php next to older builds.

Which PHP build should I download for Laragon?

Use the x64 Thread Safe build if Laragon runs Apache, because php.net requires Thread Safe builds for PHP loaded as an Apache module. Use Non Thread Safe for Nginx, which runs PHP through FastCGI.

How do I update WampServer to PHP 8.3?

Install the WampServer PHP addon for 8.3.36 from the official WampServer site, then select it from the PHP version list in the WampServer menu. 8.3.36 is the release that fixes CVE-2026-109618 and CVE-2026-109619 on the 8.3 branch.

Do I lose my projects when I switch PHP versions?

No. Switching PHP only changes which binary the web server loads. In Laragon, projects stay in www\ and settings stay in usr\. Copy any custom php.ini values into the new version's configuration.

Is a local Laragon or WampServer install at risk from the PHP RCE flaws?

php.net says all PHP installations serving web requests are at risk, with the highest risk for Apache mod_php. A local stack reachable from other machines on the network is exposed, so update it like a server.

Does Laragon update PHP automatically?

Laragon's FAQ says it can auto-update PHP, and its docs say it detects and integrates the latest PHP versions. Still check Menu > PHP > Version and php -v to confirm you run a patched release.

Bottom line: update PHP in Laragon and WampServer today

Add the patched PHP build to Laragon or WampServer now, switch to it, and confirm the version before you remove the old one. The October releases close two unauthenticated remote code execution flaws, and both stacks let you switch back in seconds if a project breaks. If you can't patch yet, apply the PHP mitigations for CVE-2026-109618 in the meantime.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *