Search code examples
phpapachexampplaragon

Cannot start service apache on laragon


Everything was ok before. Today I tried to start laragon apache and I got the following error :

httpd: Syntax error on line 546 of

C:/laragon/bin/apache/httpd-2.4.35-win64-VC15/conf/httpd.conf:

Syntax error on line 1 of

C:/laragon/etc/apache2/fcgid.conf: Cannot load

C:/laragon/etc/apache2/modules/mod_fcgid-2.3.9-Win32-VC14.so

into server: %1 is not a valid Win32 application.

enter image description here

I have tried to change PHP versions, but it didn't help. What should I do to start apache withour this error?


Solution

  • The answer was given by one of Laragon's administrators

    You need to use a PHP Thread Safe version. The PHP NTS (non thread safe) versions are NOT compatible with Laragon.

    https://forum.laragon.org/topic/166/tutorial-how-to-add-another-php-version-php-7-4-php-8-0-updated/1

    You must also make sure that the VC of both PHP & Apache are the same.