Debian 8 currently uses PHP 5.6 and is not supported. However, it will be supported in a future release. |
Ensure that System Requirements have been met prior to proceeding with the Installation Guide.
apt-get update apt-get upgrade |
This step is only applicable to Debian 7 users. If you are using Debian 8, please skip this step. |
vi /etc/apt/sources.list |
Add the following lines to sources.list:
deb http://packages.dotdeb.org wheezy-php55 all deb-src http://packages.dotdeb.org wheezy-php55 all |
wget https://www.dotdeb.org/dotdeb.gpg apt-key add dotdeb.gpg |
apt-get update |
PHP5 / Apache2 / extensions
Development tools for pecl / additional system packages:
|
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 |
apt-get install mysql-server |
|
apt-get install curl openssl memcached php5-memcache nmap dnsutils bind9utils dnssec-tools expect |
a2enmod php5 ssl rewrite |
vi /etc/hosts |
yourhostname X.X.X.X |
make-ssl-cert generate-default-snakeoil --force-overwrite |
Please note that mod_rewrite is required! If it is not enabled in Apache, key elements will not work as expected. |
a2ensite default-ssl |
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/sites-available/default* |
service apache2 reload |
mysql -p -e "SET GLOBAL sql_mode='NO_ENGINE_SUBSTITUTION';SET SESSION sql_mode='NO_ENGINE_SUBSTITUTION';" |
This section only needs to be followed if the customer will be using Radius for authentication.
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 is only required for ProVision versions 5.1.2 and earlier. If installing ProVision 5.1.3 or later, skip this step. |
Install the Source Guardian php extension
Download the loader and put it in the appropriate place. Place the file in your php extension directory as specified in your php.ini Note: The PHP cli binary path must be set in the ProVision software Admin section if is different from default. By default it is /usr/bin/php.
Create module loading configuration: (shown using the vi editor, though you may use the editor of your choice)
Add the following lines to ixed.ini (adding extension=ixed.x.x.y.y to your php.ini):
To enable the radius module, type the following command:
Reload apache
|
1. Remove the current contents in the ProVision web folder (currently the www root) and after extract the archive contents:
tar -xf productionBuild-5.1.2-php5.5.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﹥/configTest.php. If there are any configuration errors listed in red, other than in the Database and Configuration Files section, they must be corrected.
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.
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.
mkdir /secure ./configSecureKeys.sh www-data /secure |
8. Log in using the credentials that were generated in Step 6 and change your password!