Ubuntu 18.04
Before You Begin
Ensure that System Requirements have been met prior to proceeding with the Installation Guide.
Permissions
Before installing, verify that you have appropriate install permissions. Depending on your permissions and system setup, commands may need to be run as superuser by prepending "sudo" to the listed commands.
Install Requirements
1) Upgrade your current packages
apt-get update apt-get upgrade
2) Install Required Packages
PHP
Install Apache2/PHP 7.x/MySQL 5.7 and development tools for pecl:
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
ProVision 7.x and above requires MySQL 5.7 and above.
apt-get install mysql-server
You will be asked to enter a root password for the mysql server.
DNS and Additional Utilities
apt-get install curl openssl nmap dnsutils bind9utils expect
3) Configuring the requirements:
SSL
a2enmod php7 ssl rewrite headers
vi /etc/hosts
Add a record for your hostname:
X.X.X.X yourhostname
Create self-signed certificate:
make-ssl-cert generate-default-snakeoil --force-overwrite
Apache
mod rewrite REQUIRED
Please note that mod_rewrite is required! If it is not enabled in Apache, key elements will not work as expected.
a2ensite default-ssl
Allow overwrites in the apache vhosts:
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
Update site configurations to use /var/www for docroot:
sed -i 's/\/var\/www\/html/\/var\/www/' /etc/apache2/sites-available/000-default.conf sed -i 's/\/var\/www\/html/\/var\/www/' /etc/apache2/sites-available/default-ssl.conf
Restart apache:
service apache2 restart
MySQL
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.
MySQL Packet Size Configuration
4) Optional configurations:
Radius (Optional)
This section only needs to be followed if the customer will be using Radius for authentication.
SSH
apt-get install libssh2-1-dev
pecl install ssh2-1.1.2
vi /etc/php7/mods-available/ssh2.ini
Add the following lines to ssh2.ini (adding extension=ssh2.so to your ssh2.ini):
; configuration for php ssh2 module ; priority=20 extension=ssh2.so
To enable, type the following command:
phpenmod ssh2
service apache2 reload
5) Install 6connect ProVision Software:
The latest version of ProVision can be found at https://cloud.6connect.com/Download/Latest/ and downloaded using the credentials provided to you.
If you need credentials provided to you, or any other assistance, please contact our support team atsupport@6connect.com.
1. Remove the current contents in the ProVision web folder location (currently the www root) and after extract the archive contents (where 7.x.x is the version number for the build):
tar -xf productionBuild-7.x.x-php7.x.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!