Installing PHP Modules

PHP has very large number of modules and libraries that we can used in our servers.We can install them in our local machines as we need it and following is the way to do it.

you can see the libraries available using the following command.

apt-cache search php5-

following is the syntax to install a module.

sudo apt-get install moduleName

as an example if you need to install Curl package following is what you need to type and run.

sudo apt-get install php5-curl