Janik von Rotz

1 min read

Install php5 modules

This post is part of my Your own Virtual Private Server hosting solution project.
Get the latest version of this article here: https://gist.github.com/9758559.


Php5 modules extending the functionality for php scripts and are required by several php projects.



Restart the php5-fpm service after every installation.

sudo service php5-fpm restart


CURL is a library for getting files from FTP, GOPHER, HTTP server.

sudo apt-get install php5-curl


This package provides the files from the PHP5 source needed for compiling additional modules.

sudo apt-get install php5-dev 


This PHP module allows you to find the location of an IP address - City, State, Country, Longitude, Latitude, and other information as all, such as ISP and connection type.

sudo apt-get install php5-geoip


This package provides a module for MCrypt functions in PHP scripts.

sudo apt-get install php5-mcrypt


This package provides modules for MySQL database connections directly from PHP scripts.

sudo apt-get install php5-mysql


Ubuntu package repository

Categories: Web server
Tags: php , server , ubuntu
Improve this page
Show statistic for this page