Saturday, July 30, 2022

Laragon With Apache

 .

1. Introduction

In Laragon, updating the Apache HTTP service to the latest version is easy.

laragon

Just download the new version, unpack it into the right folder and select the new version in the Laragon menu.

apache

2. Notice

Be sure your Windows 10 (64 bit) OS has the latest Visual C++ Redistributable for Visual Studio 2015-2019 installed.

3. Laragon - Updating Apache HTTP service

  • Download the latest Win64-VS16 Apache version from www.apachelounge.com into your \Downloads\ folder.
    The packed file is named for instance httpd-2.4.46-win64-VS16.zip.
  • Unpack the downloaded ZIP archive in a folder with the same name, for instance httpd-2.4.46-win64-VS16.
  • Move all files inside the \httpd-2.4.46-win64-VS16\Apache24\ folder up one level.
    Then delete the (now empty) \Apache24\ folder.
  • Move the complete \httpd-2.4.46-win64-VS16\ folder to the \bin\apache\ folder of your Laragon installation.
  • In the Apache section, select the newly installed Apache version.
  • Laragon will restart the Apache Service using the new version.
  • Now you can remove the previous version by removing its folder from \bin\apache\.

4. Fixing ERR_SSL_KEY_USAGE_INCOMPATIBLE error

After updating to a new Apache version the first time, you’ll notice there’s a problem with SSL access to your projects. The browser will throw an ERR_SSL_KEY_USAGE_INCOMPATIBLE error.

  • Stop the Apache Service
  • Update the next 3 files :
    \laragon\bin\laragon\tpl\openssql.conf.tpl
    \laragon\usr\tpl\openssql.conf.tpl
    \laragon\etc\ssl\openssql.conf
  • In each file, replace the line
    keyUsage = keyEncipherment, dataEncipherment

    by

    keyUsage = nonRepudiation, digitalSignature, keyEncipherment
  • Then add the Lagaron Certificate to your Windows Trust Store. In the menu, select Apache → SSL → Add laragon.crt to Trust Store.
  • Restart the Apache Service.

.

From:

LARAGON - Update Apache | KREAWEB

No comments:

Post a Comment

Labels