How to install missing PHP extensions

Posted by Vasilis on June 8, 2018

 

Image Processing and Generation

sudo apt-get install php7.0-gd

 Zip module for PHP

sudo apt-get install php7.0-zip

 JSON module for PHP

sudo apt-get install php7.0-json

 MySQL module for PHP

sudo apt-get install php7.0-mysql

 

To get a list of any php7.0 module

apt-cache search php7.0

 

After installing any extension you have to restart the server

sudo service apache2 restart