valet-linux
valet-linux copied to clipboard
Bug: Issue with php8.2-fpm package name.
Basic info
Distro (Name and version) | PHP Version | Valet version |
---|---|---|
Ex: Arch rolling | 8.2 | 2.2.7 |
- [x] I've checked the issue queue and could not find anything similar to my bug.
- [x] I'm on the latest version of valet-linux (
valet --version
):2.3.7
- [x] I've run
valet fix
andvalet install
after updating and before submitting my issue/feature.
What is the problem? When try to run valet install an error with php8.2-fpm happens: 1- php fpm already installed on my machine. 2- an error happens while the installer try to pull the package from ache repositories, the write name for the package is "php-fpm", but the error tell me that "Pacman was unable to install [php8.2-fpm]." and thereis no package name on the arch repo with this name, and the right name is "php-fpm".
What was supposed to happen? Becouse the php-fpm already installed end running and not disable by "systemctl", the valet installer supposed to find the php-fpm running.
What actually happened? This error message return "In Pacman.php line 79: Pacman was unable to install [php8.2-fpm]."
How to reproduce this? 1- install php-fpm using packman "packman -S php-fpm" 2- run "valet install" 3- the output of the command fail when try to install php8.2-fpm: "[php8.2-fpm] is not installed, installing it now via Pacman... 🍻" "error: target not found: php8.2-fpm" "In Pacman.php line 79:" "Pacman was unable to install [php8.2-fpm]." "install [--ignore-selinux]"
What is the solution? The correct name for php fpm on arch repository in the base repositories or the aur-repositories "php-fpm" not "php8.2-fpm"
Sources
This is a screenshot to the command and the output:
Confirming everything from @Meklad above - reproduced on Manjaro/Arch
Unfortunately I'm facing the same problem. I saw a pull-request for this problem. Waiting to be merged.
The PR needs some work
I have the same problem on openSUSE Tumbleweed. I have php-fpm (php8-fpm) installed, but when trying to run 'valet install' I get the 'Package not found: php8.2-fpm' problem.
Still having this issue on openSUSE Tumbleweed, now with Package not found: php8.3-fpm
, although php8-fpm
has been manually installed.
:~> pkcon search php8-fpm
Searching by details [=========================]
Querying [=========================]
Finished [=========================]
Installed php8-fpm-8.3.4-1.1.x86_64 (installed:download.opensuse.org-oss) FastCGI Process Manager PHP Module
Available php8-fpm-apache-8.3.4-1.1.noarch (download.opensuse.org-oss) Apache configuration for PHP-FPM
Available php8-fpm-apache-8.3.4-1.1.noarch (openSUSE-20240412-0) Apache configuration for PHP-FPM
:~> pkcon search php8.3-fpm
Searching by details [=========================]
Querying [=========================]
Finished [=========================]
For a moment I thought I will get it to work by setting the php version to 8, but it only works halfway. Although it sees php8-fpm
, I still need to get valet install
to finish, but this command still looks for php8.3-fpm
, instead of php8-fpm
.
:~> valet use 8
Changing php-fpm version...
This does not affect php -v.
Stopping php-fpm...
Disabling php8.3-fpm...
Php-fpm has been disabled
Php-fpm was already disabled
Changing php version from 8.3 to 8...
PHP Logs
Installing php config
Restarting php-fpm
Restarting php8-fpm...
Enabling php8-fpm...
Php-fpm has been enabled
php-fpm version successfully changed! 🎉
:~> valet install
Nginx was already enabled
Stopping nginx...
[php8.3-fpm] is not installed, installing it now via PackageKit... 🍻
Transaction: Resolving
Status: Waiting in queue
Status: Starting
Status: Querying
Package not found: php8.3-fpm
Transaction: Resolving
Status: Waiting in queue
Status: Starting
Status: Querying
Package not found: php8.3-fpm
Command failed: This tool could not find any available package.
In PackageKit.php line 79:
PackageKit was unable to install [php8.3-fpm].
install [--ignore-selinux]
I can link projects with valet link
and these show up correctly in valet links
, but the URL does not load up in the browser.