How to install all required PHP extensions for Laravel?


This problem can occur while creating Laravel project via composer and the system is missing the PHP extensions.

In order to resolve this, you need to install missing extensions, you can run the following command to resolve this issue.


sudo apt install openssl php-common php-curl php-json php-mbstring php-mysql php-xml php-zip

Once you run the command, the issue will be gone.

Author: Danyal
I'm working as programmer since 2002. Born, grew up, studied and worked in Pakistan now Im located in Denmark since 2006.