When I write PHP artisan serve in Laravel 10, This error always write in console. How to resolve this issue?
PS C:\xampp\htdocs\Laravel\test_proj> php artisan serve
*PHP Warning: Module "openssl" is already loaded in Unknown on line 0
Warning: Module "openssl" is already loaded in Unknown on line 0
WARN PHP Warning: Module "openssl" is already loaded in Unknown on line 0.*
Check both the
php.inifile used by your web server (like Apache or Nginx) and the one used byPHP CLI. These files are often located in the PHP installation directory or a separate conf directory. Look for lines that includeextension=openssl.so(on Linux) orextension=php_openssl.dll(on Windows). Ensure that these lines are not duplicated in either file.You need to find all relevant
php.inifiles in yourxamppdirectory and remove or comment out one of the module directives like this:After a server restart, this should solve it.