Running
php -m
will list all currently enabled modules.If you look at the top and see this warning:
PHP Warning: Unable to load module "http" because the required module "raphf" is > not loaded
You just need to install ext-raphf.If you are using Ubuntu, just run
sudo apt install php-raphf
.
Then run php -m until there are no errors or warnings above.
After solving all warnings, you can continue installing dependencies.
In my case, on php7.4 I needed to install the following packages
sudo apt install php7.4-raphf
sudo apt install php7.4-propro