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.0.1

...

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.1 0 (and related extensions). ProVision 7.x installations using Debian versions prior to Stretch 9 require updating to PHP 7.10. Debian Wheezy comes with PHP 5.4 by default. You can either add a repository which provides PHP 7.1 0 or install PHP manually. In this example, we are going to use 3rd party repository that also upgrades the Apache to 2.4 as well as some other packages.

 

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

 

Code Block
languagebash
  vi /etc/apt/sources.list


Add the following lines to sources.list:

 

Code Block
languagetext
  deb http://packages.dotdeb.org wheezy-php71php70 all
  deb-src http://packages.dotdeb.org wheezy-php71php70 all
Install the GPG key:

 

Code Block
languagebash
  wget https://www.dotdeb.org/dotdeb.gpg
  apt-key add dotdeb.gpg

 

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.1 0 / Apache2 / extensions

  • httpd 
  • php71w php70w 
  • php71wphp70w-opcache 
  • php71wphp70w-mysqlnd 
  • php71wphp70w-pdo 
  • php71wphp70w-ldap 
  • php71wphp70w-pecl-memcache 
  • php71wphp70w-bcmath 
  • php71wphp70w-devel 
  • php71wphp70w-pear 
  • php71wphp70w-cli

Development tools for pecl / additional system packages:

  • curl 
  • openssl 
  • memcached 
  • mod_ssl


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

 

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

MySQL

...

Expand
  • curl 
  • openssl 
  • memcached 
  • php7-memcache 
  • nmap 
  • dnsutils 
  • bind9utils dnssec-tools 
  • expect

 


Code Block
apt-get install curl openssl memcached php7-memcache nmap dnsutils bind9utils dnssec-tools expect

 


3) Configuring the requirements:

...

Expand
titleIf you are going to use radius authentication, click here.


1. Install radius module:
Debian 7:

 

Code Block
languagebash
titleDebian 7:
    pecl install radius

 

Debian 8:

 

Code Block
languagebash
titleDebian 8:
    apt-get install php7-radius

 

Create module loading configuration:
(shown using the vi editor, though you may use the editor of your choice)

 

Code Block
languagetext
    vi /etc/php7php5/mods-available/radius.ini

 

  Add the following lines to radius.ini:

 

Code Block
languagetext
    ; configuration for php radius module
    ; priority=20
    extension=radius.so

 

  To enable the radius module, type the following command:

 

Code Block
languagebash
    php7enmod radius

 

  

...

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

2. Change the permissions to be the web user permissions

...