genesisweb / valet-linux-plus

Advanced local development experience for Linux.
MIT License
143 stars 23 forks source link

Bug: Valet installation fails on Fedora 37 #69

Closed akoshodi closed 1 year ago

akoshodi commented 1 year ago
Fedora 37 (i3 spin) PHP 8..1 Valet v2.3.0
Ex: Manjaro 18.3 7.3.1 2.2.3

Running valet install fails with the error "Unable to find a match: php8.1-fpm" even though php-fpm is installed.

valet-error

I installed fpm using dnf install php-fpm which installed version php-fpm-8.1.13 while valet attempts to install it with dnf install php8.1-fpm which causes it to fail as indicated in the above image

akoshodi commented 1 year ago

Fedora 37 (i3 spin) PHP 8..1 Valet v2.3.0 Ex: Manjaro 18.3 7.3.1 2.2.3 Running valet install fails with the error "Unable to find a match: php8.1-fpm" even though php-fpm is installed.

valet-error

I installed fpm using dnf install php-fpm which installed version php-fpm-8.1.13 while valet attempts to install it with dnf install php8.1-fpm which causes it to fail as indicated in the above image

Found a temporary solution inspired by https://github.com/cpriego/valet-linux/issues/402#issuecomment-1373959372 To get dnf to install the PHP modules the way Fedora expects i.e dnf install php-fpm , replace php{$this->version}-fpm with php-fpm in the install function in ~/.config/composer/vendor/genesisweb/valet-linux/cli/Valet/PhpFpm.php as seen in the screenshot below

valet-fix

uttamrabadiya commented 1 year ago

@akoshodi Sure, we will look into it and include the needed fix in code.

Thank you.

uttamrabadiya commented 1 year ago

@akoshodi

Thank you for being patient, we've fixed this in our latest release (1.6.3), please update your local version to fix this from package.