...
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 | ||||
---|---|---|---|---|
| ||||
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 | ||
---|---|---|
| ||
apt-get update |
Install Apache2/PHP7/MySQL and development tools for pecl:
Expand | ||
---|---|---|
| ||
PHP 7.x / Apache2 / extensions
Development tools for pecl / additional system packages:
|
Code Block | ||
---|---|---|
| ||
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
...