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.51k stars 373 forks source link

Unable to start redis built on cygwin from laragon #753

Open yes8080 opened 8 months ago

yes8080 commented 8 months ago

Hello, after testing, it is because the redis built by cygwin cannot parse the redis.conf configuration file with the absolute path passed in by Laragon. I would like to ask, is there any configuration item in the laragon.ini configuration file that can prevent laragon from passing in the configuration file.

Redis 7.2.4 for Windows Project Home https://github.com/redis-windows/redis-windows

Source of problem feedback @richwxd https://github.com/redis-windows/redis-windows/issues/22

yes8080 commented 8 months ago

suggestion: Laragon.ini adds a new parameter-passing compatibility configuration item for the cygwin compiler. After it is enabled, the absolute path of the passed parameters is changed to a path that can be recognized by cygwin. The format is as follows: Current transfer parameters c:\>C:\tmp\redis\Redis-7.2.4-Windows-x64-cygwin-with-Service\redis-server.exe C:\tmp\redis\Redis-7.2.4-Windows-x64-cygwin -with-Service\redis.conf 357:C 08 Apr 2024 08:49:11.777 # Fatal error, can't open config file '/cygdrive/c/C:\tmp\redis\Redis-7.2.4-Windows-x64-cygwin-with-Service\ redis.conf': No such file or directory

Passing parameters in cygwin compatibility mode c:\>C:\tmp\redis\Redis-7.2.4-Windows-x64-cygwin-with-Service\redis-server.exe /cygdrive/C\tmp\redis\Redis-7.2.4-Windows-x64-cygwin-with -Service\redis.conf image

richwxd commented 8 months ago

How to enable the feature or write in the configuration in laragon.ini?

JaservTECH commented 5 months ago

i've got one too but if i run by command line manually it okay, but still how Passing parameters in cygwin compatibility mode on laragon.ini thanks