HTML |
---|
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> |
Debian 8
Table of Contents |
---|
Debian 7/ Debian 8
Table of Contents |
---|
Note | ||
---|---|---|
| ||
Debian 8 currently uses PHP 5.6 and is not supported. However, it will be supported in a future release. |
Before You Begin
Ensure that System Requirements have been met prior to proceeding with the Installation Guide.
Install Requirements
1) Upgrade your current packages
Code Block | ||
---|---|---|
| ||
apt-get update apt-get upgrade |
2) Install Required Packages
PHP
Info |
---|
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.5
Installations of ProVision 7.x and newer require PHP 7.1 (and related extensions). ProVision 7.x installations using Debian versions prior to Stretch 9 require updating to PHP 7.1. Debian Wheezy comes with PHP 5.4 by default. You can either add a repository which provides PHP
57.
51 or install PHP manually.
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 vi /etc/apt/sources.list |
Add the following lines to sources.list:
Code Block | ||
---|---|---|
| ||
deb httptrusted.gpg.d/php.gpg https://packages.dotdeb.org wheezy-php55 all deb-src http.sury.org/php/apt.gpg sudo sh -c 'echo "deb https://packages.dotdeb.org wheezy-php55 all |
Code Block | ||
---|---|---|
| ||
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 |
Code Block | ||
---|---|---|
| ||
apt-get update |
Expand | ||
---|---|---|
| ||
PHP5 PHP 7.x / Apache2 / extensions
apache2 libapache2-mod-php5 php5 php5-cgi php5-cli php5-gd php5-curl php5-ldap php5-mysqlnd php5-ssh2 php-pear
Development tools for pecl / additional system packages:
|
Code Block | ||
---|---|---|
| ||
apt-get install apache2 libapache2-mod-php5 php5 php5php7.1 php7.1 php7.1-cgi php5php7.1-cli php5php7.1-gd php5php7.1-curl php5php7.1-ldap php5php7.1-mysqlnd php5php7.1-ssh2 php-pear php5php7.1-dev php7.1-imap curl openssl memcached php5php7.1-memcache |
MySQL
Code Block | ||
---|---|---|
| ||
apt-get install mysql-server |
You will be asked to enter a root password for the mysql server.
DNS and Additional Utilities
Expand |
---|
|
Code Block |
---|
apt-get install curl openssl memcached php5php7.1-memcache nmap dnsutils bind9utils dnssec-tools expect |
3) Configuring the requirements:
SSL
Code Block | ||
---|---|---|
| ||
a2enmod php5php7 ssl rewrite |
Code Block | ||
---|---|---|
| ||
vi /etc/hosts |
Code Block | ||
---|---|---|
| ||
yourhostname X.X.X.X |
Code Block | ||
---|---|---|
| ||
make-ssl-cert generate-default-snakeoil --force-overwrite |
Apache
Note | ||
---|---|---|
| ||
Please note that mod_rewrite is required! If it is not enabled in Apache, key elements will not work as expected. |
Code Block | ||
---|---|---|
| ||
a2ensite default-ssl |
Code Block | ||
---|---|---|
| ||
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/sites-available/default* |
Code Block | ||
---|---|---|
| ||
service apache2 reload |
MySQL
Code Block | ||
---|---|---|
| ||
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.
Note | ||
---|---|---|
| ||
We recommend setting the max_allowed_packet setting in the MySQL configuration file to 128MB (or similar) to account for the typical dataset size handled in ProVision. |
4) Optional configurations:
Radius (Optional)
This section only needs to be followed if the customer will be using Radius for authentication.
Expand | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||
1. Install radius module: Debian 7:
Debian 8:
Create module loading configuration: (shown using the vi editor, though you may use the editor of your choice)
Add the following lines to radius.ini:
To enable the radius module, type the following command:
|
Source Guardian
Note |
---|
Source Guardian is only required for ProVision versions 5.1.2 and earlier. If installing ProVision 5.1.3 or later, skip this step. |
...
title | Click here for Source Guardian installation instructions (applies only to ProVision 5.1.2 and earlier)... |
---|
Info |
---|
Download and find additional details from http://www.sourceguardian.com/ixeds/. Choose either Linux 32 or Linux 64 .tar.gz depending on architecture. |
Download the loader and put it in the appropriate place.
...
Code Block | ||
---|---|---|
| ||
wget https://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.bz2
tar -xjf loaders.linux-x86_64.tar.bz2
cp -rpPf ixed.5.5.lin /usr/lib/php5/20121212/ |
Code Block |
---|
vi /etc/php5/mods-available/ixed.ini |
Code Block | ||
---|---|---|
| ||
; configuration for php ixed module
; priority=20
extension=ixed.5.5.lin |
Code Block | ||
---|---|---|
| ||
php5enmod ixed |
|
Code Block | ||
---|---|---|
| ||
service apache2 reload |
Info | ||
---|---|---|
| ||
If you have any issues with getting Source Guardian installed, and the instructions are not working in your case, please check out http://www.sourceguardian.com/loaders/download.php - this page allows you paste in the output of your phpinfo page and then it will tell you the steps that need to be taken for your particular use case. If you are still having issues, please contact 6connect at support@6connect.com so one of our engineers can assist you. |
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 7.x.x is the version number for the build):
Code Block | ||
---|---|---|
| ||
tar -xf productionBuild-57.1x.2x-php5php7.5x.tar -C /var/www/ |
2. Change the permissions to be the web user permissions:
Code Block | ||
---|---|---|
| ||
chown -R www-data.www-data /var/www |
...
4. Run configDir.sh ﹤web user﹥ from the command line as root in the web root. This will setup the directories apache user needs read/write access to.
Code Block | ||
---|---|---|
| ||
cd /var/www/
/var/www/configDir.sh www-data |
5. Create the default database and initial user in MySQL
6. Go to http://﹤web root﹥/configBootstrap.php. Fill in the requested information, noting any login credentials.
7. Create a secure directory and run configSecureKeys.sh ﹤web user﹥ ﹤path to secure directory﹥ from the command line as root. This sets up the secure directory where your key file for password management will be stored. The secure directory should be a location outside of the web root that is only accessible by appropriate users.
Code Block | ||
---|---|---|
| ||
mkdir /secure
./configSecureKeys.sh www-data /secure |
...