Score:0

PHP Warning: Cannot load module "http" because required module "raphf" is not loaded in Unknown on line 0

in flag

When entering artisan commands in laravel- ubuntu 20.04 it shows following error

PHP Warning: Cannot load module "http" because required module "raphf" is not loaded in Unknown on line 0

PHP version 8.1.1, Laravel 8 , Ubuntu 20.04

screen shot

uz flag
Jos
Try `sudo apt install php-raphf`.
Venkitesh avatar
in flag
E: Unable to locate package php-raph
uz flag
Jos
It's in the `universe` repo.
Score:2
in flag

Some more details. This occurs when you switch PHP versions - it happened to me when I switched to PHP 8.

If you check for your installed version of php-raphf with

apt list php-raphf

You will notice that you (most likely) have it. However, if you run

$ sudo apt install php-raphf

as described above, Ubuntu will install a PHP-dependent version:

The following NEW packages will be installed:
  php-raphf php8.1-raphf
Jakke avatar
in flag
Yes If you have multiple php versions installed, like when using php-fpm, you'll have to specify the version number. Usually you can check in '''/etc/php''' or '''/use/bin/''' wich php versions you have installed and you can switch with '''sudo update-alternatives'''' for php-cli and separately in your webserver config (nginx, Apache, etc)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.