Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 7.1.0

...

2) Install Required Packages

PHP

Info
This step is only applicable to Debian 7 users. If you are using Debian 8, please skip to the next step.

Installations of ProVision 7.x and newer require  PHP 7.0 1 (and related extensions). ProVision 7.x installations using Debian versions prior to Stretch 9 require updating to PHP 7.01. Debian Wheezy comes with PHP 5.4 by default. You can either add a repository which provides PHP 7.0 1 or install PHP manually. In  


Info

For this example, we are

going to use 3rd party repository that also upgrades the Apache to 2.4 as well as some other packages.

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.

 

Edit sources.list:
(shown using the vi editor, though you may use the editor of your choice)
 


Code Block
languagebash
titleDebian 8 Install Package
sudo apt install apt-transport-https lsb-release ca-certificates 
sudo wget -O  vi /etc/apt/sources.list

Add the following lines to sources.list:

 

Code Block
languagetext
  deb httptrusted.gpg.d/php.gpg https://packages.dotdeb.org wheezy-php70 all
  deb-src http.sury.org/php/apt.gpg 
sudo sh -c 'echo "deb https://packages.dotdeb.org wheezy-php70 all
Install the GPG key:

 

Code Block
languagebash
  wget https://www.dotdeb.org/dotdeb.gpg
  apt-key add dotdeb.gpg
 
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.0 x / Apache2 / extensions

  • httpd 
  • php70w php71w 
  • php70wphp71w-opcache 
  • php70wphp71w-mysqlnd 
  • php70wphp71w-pdo 
  • php70wphp71w-ldap 
  • php70wphp71w-pecl-memcache 
  • php70wphp71w-bcmath 
  • php70wphp71w-devel 
  • php70wphp71w-pear 
  • php70wphp71w-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 php7php7.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

...

Expand
  • curl 
  • openssl 
  • memcached 
  • php7.1-memcache 
  • nmap 
  • dnsutils 
  • bind9utils 
  • expect

 


Code Block
apt-get install curl openssl memcached php7.1-memcache nmap dnsutils bind9utils expect

 

...

Code Block
languagebash
 	tar -xf productionBuild-7.x.x-php7.0x.tar -C /var/www/

2. Change the permissions to be the web user permissions

...