Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ubuntu: Install php5 modules #PHP #Markdown

Introduction

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

Requirements

  • Ubuntu server
  • php5-fpm

Installation

Restart the php5-fpm service after every installation.

sudo service php5-fpm restart

php5-curl

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

sudo apt-get install php5-curl

php5-dev

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

sudo apt-get install php5-dev 

php5-geoip

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

php5-mcrypt

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

sudo apt-get install php5-mcrypt

php5-mysql

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

sudo apt-get install php5-mysql

Source

Ubuntu package repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.