Debian 7/ Debian 8
Table of Contents |
---|
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. |
Code Block | ||
---|---|---|
| ||
vi /etc/apt/sources.list |
Add the following lines to sources.list:
Code Block | ||
---|---|---|
| ||
deb http://packages.dotdeb.org wheezy-php56 all deb-src http://packages.dotdeb.org wheezy-php56 all |
Code Block | ||
---|---|---|
| ||
wget https://www.dotdeb.org/dotdeb.gpg apt-key add dotdeb.gpg |
Code Block | ||
---|---|---|
| ||
apt-get update |
Expand | ||
---|---|---|
| ||
PHP5 / Apache2 / extensions
Development tools for pecl / additional system packages:
|
Code Block | ||
---|---|---|
| ||
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 |
MySQL
Code Block | ||
---|---|---|
| ||
apt-get install mysql-server |
DNS and Additional Utilities
Expand |
---|
|
Code Block |
---|
apt-get install curl openssl memcached php5-memcache nmap dnsutils bind9utils dnssec-tools expect |
3) Configuring the requirements:
SSL
Code Block | ||
---|---|---|
| ||
a2enmod php5 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';" |
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:
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):
Code Block | ||
---|---|---|
| ||
tar -xf productionBuild-5.x.x-php5.6.tar -C /var/www/ |
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!