leokhoa / laragon

Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.
https://laragon.org
4.48k stars 372 forks source link

Apache with VC17 is not supported for fast CGI - fcgid.conf updated incorrectly #892

Open Sophist-UK opened 1 month ago

Sophist-UK commented 1 month ago

Apache versions are now compiled with VS17, and Laragon automatically sets the 1st line of fcgid.conf to LoadModule fcgid_module "D:/Laragon/etc/apache2/modules/mod_fcgid-2.3.9-Win64-vs17.so" however this file does not exist.

Laragon needs to check for the latest FCGID and VS versions for which there is a mod_fcgid-*-win64-vs*.so file and use that.

In this case it should be LoadModule fcgid_module "D:/Laragon/etc/apache2/modules/mod_fcgid-2.3.10-win64-VS16.so".

Note: A workaround is to edit the file manually and then set the read-only property.

FlavioSuarez commented 1 month ago

Hi,

If I remember, this issue could be related to your current PHP being [TS] (thread safe) or not...

Sophist-UK commented 1 month ago

It is indeed indirectly related to that. I have installed a non-thread-safe version of PHP so that I can use it with nginx. And Laragon has correctly detected that and has "included" fcgid.conf as a direct consequence - but has created a version of fcgid.conf that points to a non-existent module file (which is a bug).

FlavioSuarez commented 1 month ago

Ah, ok. Got your point.

Sophist-UK commented 4 weeks ago

I have added something to the Wiki to give the workaround.