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
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
Installing the package solved the issue for me:
$ sudo apt install php-raphf
sudo apt install php8.1-raphf
. To check your php version, you can run command, php --version
.
– ibnɘꟻ
Mar 18 '23 at 04:21
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
sudo apt install php-raphf
. – Jos Jan 13 '22 at 17:26universe
repo. – Jos Jan 14 '22 at 12:41