Installing php7 on Debian for Magento2

I’m currently working on a Magento 2 (M2) project and needed to setup my vagrant box with php7 FPM / Apache2 Event. Here are some basic notes for anyone looking to do similar.

Add the following to /etc/apt/source.list

deb http://packages.dotdeb.org jessie all
deb-src http://packages.dotdeb.org jessie all

Add our new keys

wget https://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg

Install services

sudo apt-get update
sudo apt-get install -y php7.0 php7.0-fpm
sudo apt-get install -y apache2 apache2-mpm-event libapache2-mod-fcgid
sudo apt-get install -y mysql-server-5.6 mysql-client-5.6

Install required php mods

sudo apt-get install -y php7.0-mysql php7.0-mcrypt php7.0-redis php7.0-curl php7.0-gd php7.0-opcache php7.0-intl php7.0-xsl

 

Gareth
Buy Me A Coffee
back arrowBack to Index