Like wise in Apache has many modules, PHP also different useful modules and libraries that you can add onto your Virtual Server.

Install PHP modules on Linux server OS
You can see available PHP libraries using following Linux command:
1 |
apt-cache search php5- |
The terminal will display list of available modules mentioned below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
php5-cgi - server-side, HTML-embedded scripting language (CGI binary) php5-cli - command-line interpreter for the php5 scripting language php5-common - Common files for packages built from the php5 source php5-curl - CURL module for php5 php5-dbg - Debug symbols for PHP5 php5-dev - Files for PHP5 module development php5-gd - GD module for php5 php5-gmp - GMP module for php5 php5-json - JSON module for php5 php5-ldap - LDAP module for php5 php5-mysql - MySQL module for php5 php5-odbc - ODBC module for php5 php5-pgsql - PostgreSQL module for php5 php5-pspell - pspell module for php5 php5-readline - Readline module for php5 php5-recode - recode module for php5 php5-snmp - SNMP module for php5 php5-sqlite - SQLite module for php5 php5-tidy - tidy module for php5 php5-xmlrpc - XML-RPC module for php5 php5-xsl - XSL module for php5 libphp5-embed - HTML-embedded scripting language (Embedded SAPI library) php5-adodb - Extension optimising the ADOdb database abstraction library php5-apcu - APC User Cache for PHP 5 php5-enchant - Enchant module for php5 php5-exactimage - fast image manipulation library (PHP bindings) php5-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary) php5-gdcm - Grassroots DICOM PHP5 bindings php5-gearman - PHP wrapper to libgearman php5-geoip - GeoIP module for php5 php5-gnupg - wrapper around the gpgme library |
You can see complete list of available PHP modules.
If you need to install any module, enter following command in Linux terminal.
1 |
sudo apt-get install <em>name of the module</em> |
You can also install multiple libraries at one go by separating multiple modules name with a blank space.
For Example:
1 |
sudo apt-get install php5-xhprof php5-xdebug php5-xcache |
After installation of any module, do not forget to restart Apache to make it effective using below command:
1 |
sudo service apache2 restart |
Hence now are able to install multiple PHP libraries and modules on to your virtual server.