Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Info

For this example, we are using Debian/Ubuntu installation instructions from:

https://ayesh.me/Ubuntu-PHP-7.1 , using  Ondřej Surý's PPA.

Another reference containing instructions for Debian 7, 8, CentOS / RHEL, MacOS X, and Windows is available here:

https://www.colinodell.com/blog/201612/installing-php-71

Depending on what repository you choose, installation instructions and syntax may differ.


Code Block
languagebash
titleDebian 8 Install Package
sudo apt install apt-transport-https lsb-release ca-certificates 
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg 
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' 
sudo apt update


And update the packages list:

 

Code Block
languagebash
   apt-get update

 

Install Apache2/PHP7/MySQL and development tools for pecl:

 

Expand
titleClick here for the list of extensions...

PHP 7.x / Apache2 / extensions

  • httpd 
  • php71w 
  • php7.1w 
  • php7.1wphp71w-opcache 
  • php71wphp7.1w-mysqlnd 
  • php71wphp7.1w-pdo 
  • php71wphp7.1w-ldap 
  • php71wphp7.1w-pecl-memcache 
  • php71wphp7.1w-bcmath 
  • php71wphp7.1w-devel 
  • php71wphp7.1w-pear 
  • php71wphp7.1w-cli
  • php7.1-imap

Development tools for pecl / additional system packages:

  • curl 
  • openssl 
  • memcached 
  • mod_ssl


Code Block
languagebash
   apt-get install apache2 libapache2-mod-php7.1 php7.1 php7.1-cgi php7.1-cli php7.1-gd php7.1-curl php7.1-ldap php7.1-mysqlnd php7.1-ssh2 php-pear php7.1-dev php7.1-imap curl openssl memcached php7.1-memcache

 

 While installing you will be asked to set the MySQL root password.

MySQL

...