...
Code Block | ||
---|---|---|
| ||
apt-get update apt-get upgrade |
2) Install Required Packages
PHP
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 7.1 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 /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 |
Code Block | ||
---|---|---|
| ||
apt-get update |
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 |
MySQL
Code Block | ||
---|---|---|
| ||
apt-get install mysql-server |
DNS and Additional Utilities
...
Expand |
---|
|
Code Block |
---|
apt-get install curl openssl memcached php7.1-memcache nmap dnsutils bind9utils expect |
3) Configuring the requirements:
...
Code Block | ||
---|---|---|
| ||
a2enmod php7 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';" |
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:
|
5) Install 6connect ProVision Software:
...
2. Change the permissions to be the web user permissions
Code Block | ||
---|---|---|
| ||
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!
...