Posts

Showing posts from March, 2017

Install PHP 7.x on Linux Mint 18

Adding a PPA for PHP 7.1 Packages sudo add-apt-repository ppa:ondrej/php Install Language Pack sudo apt-get install -y language-pack-en-base sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php Update the local package cache sudo apt-get update Upgrading mod_php with Apache sudo apt-get install php7.1 If you are using MySQL, make sure to re-add the updated PHP MySQL bindings sudo apt-get install php7.1-mysql Upgrading PHP-FPM sudo apt-get install php7.1-fpm Testing PHP php -v   Output PHP 7.1.2-4+deb.sury.org~xenial+1 (cli) (built: Mar 2 2017 10:39:59) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.2-4+deb.sury.org~xenial+1, Copyright (c) 1999-2017, by Zend Technologies