Debian 7/ Debian 8

Before You Begin
Ensure that System Requirements have been met prior to proceeding with the Installation Guide.
Install Requirements
1) Upgrade your current packages
Upgrade your current packages.
apt-get update
apt-get upgrade |
2) Install Required Packages
PHP
This step is only applicable to Debian 7 users. If you are using Debian 8, please skip this step. |
All installations of ProVision require at least PHP 5.6 (and related extensions). Debian Wheezy comes with PHP 5.4 by default. You can either add a repository which provides PHP 5.6 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)
Add the following lines to sources.list:
deb http://packages.dotdeb.org wheezy-php56 all
deb-src http://packages.dotdeb.org wheezy-php56 all |
Install the GPG key:
wget https://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg |
And update the packages list:
Install Apache2/PHP5/MySQL and development tools for pecl:
PHP5 / Apache2 / extensions apache2 libapache2-mod-php5 php5 php5-cgi php5-cli php5-gd php5-curl php5-ldap php5-mysqlnd php5-ssh2 php-pear php5-dev
Development tools for pecl / additional system packages: - curl
- openssl
- memcached
php5-memcache
|
apt-get install apache2 libapache2-mod-php5 php5 php5-cgi php5-cli php5-gd php5-curl php5-ldap php5-mysqlnd php5-ssh2 php-pear php5-dev curl openssl memcached php5-memcache |
While installing you will be asked to set the MySQL root password.
MySQL
Install MySQL to use a local database.
apt-get install mysql-server |
You will be asked to enter a root password for the mysql server.
DNS and Additional Utilities
Install the DNS and other utilities:
- curl
- openssl
- memcached
- php5-memcache
- nmap
- dnsutils
- bind9utils
- dnssec-tools
- expect
|
apt-get install curl openssl memcached php5-memcache nmap dnsutils bind9utils dnssec-tools expect |
3) Configuring the requirements:
SSL
Enable the necessary apache modules with the following command:
In order to create self signed certificates and to work properly, the hostname must be resolved properly.
Open the hosts file for editing:
Add a record for your hostname
Create self signed certificate:
make-ssl-cert generate-default-snakeoil --force-overwrite |
Apache
Please note that mod_rewrite is required! If it is not enabled in Apache, key elements will not work as expected. |
Enable the default vhost for apache
Allow overwrites in the apache vhosts
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/sites-available/default* |
6. Reload apache
MySQL Configuration:
mysql -p -e "SET GLOBAL sql_mode='NO_ENGINE_SUBSTITUTION';SET SESSION sql_mode='NO_ENGINE_SUBSTITUTION';" |
Then, enter the MySQL root password when prompted.
4) Optional configurations:
Radius (Optional)
This section only needs to be followed if the customer will be using Radius for authentication.
1. Install radius module: Debian 7: Debian 8:
apt-get install php5-radius |
Create module loading configuration: (shown using the vi editor, though you may use the editor of your choice)
vi /etc/php5/mods-available/radius.ini |
Add the following lines to radius.ini:
; configuration for php radius module
; priority=20
extension=radius.so |
To enable the radius module, type the following command: |
5) Install 6connect ProVision Software:
1. Remove the current contents in the ProVision web folder (currently the www root) and after extract the archive contents (where 5.x.x is the version number for the build):
tar -xf productionBuild-5.x.x-php5.6.tar -C /var/www/ |
2. Change the permissions to be the web user permissions
chown -R www-data.www-data /var/www |
3. Go to http://﹤web root﹥/install/configTest.php. Follow the provided instructions, correcting any configuration errors if they occur. Once all steps are completed, you are ready to use your ProVision instance!