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 jessie all
deb-src jessie all

Add our new keys

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


Buy Me A Coffee
back arrowBack to Index