You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 22
Next »
Prerequisites
The following instructions assume these tasks have previously been completed:
Web Server:
- Apache HTTP Server v1.3 or v2.x with SSL enabled
- PHP 5.0 or later
Required Linux Packages:
- httpd - Apache HTTP Server
- mod_ssl - SSL/TLS module for the Apache HTTP server
- php - The PHP HTML-embedded scripting language
- libmcrypt - Encryption algorithms library (this requirement can be removed with a patch)
Required PHP Modules:
(Some of these may already be included with your PHP distribution)
- php-gd
- php-json (required if your PHP version is 5.2 or later)
- php-mcrypt (this requirement can be removed with a patch)
- php-mysql
- php-openssl
- php-sysvsem
- php-xml
- php-xmlrpc
- php-ldap (if you will be using LDAP authentication)
Install the Required Linux Packages & PHP Modules
- If your web server is running a Red Hat-based OS, the required components can be installed with:
- If you will be using a self-signed certificate for SSL, this is a great HOWTO explaining how to set it up on CentOS
- It is useful to configure the server to be able to send debugging emails
- Configure the web server daemon (httpd) to start automatically:
- Start the web server daemon:
- If SELinux is enabled, run the following command to allow the web server to connect to the database:
- If the iptables firewall is being used, port 80 and 443 should be opened up:
Install the VCL Frontend Web Code
- If you have not already done so, download and extract the source files on the web server:
- Copy the web directory to a location under the web root of your web server and navigate to the destination .ht-inc subdirectory:
- apply patch to fix editing reservations
- apply patch to fix processing of block allocations
- Copy secrets-default.php to secrets.php:
- Edit the secrets.php file:
- Set the following variables to match your database configuration:
- $vclhost
- $vcldb
- $vclusername
- $vclpassword
- Create random passwords for the following variables:
- $mcryptkey
- $mcryptiv (must be 8 hex characters)
- $pemkey
- Save the secrets.php file
- Run the genkeys.sh script. Enter the value you set for $pemkey in secrets.php as the passphrase (3 times, copy/paste is a good idea)
- Copy conf-default.php to conf.php:
- Modify conf.php to match your site
- COOKIEDOMAIN - set this to the domain name your web server is using or leave it blank if you are only accessing the web server by its IP address
- Set the owner of the .ht-inc/maintenance directory to the web server user (normally 'apache'):
- Optionally, you can install phpseclib and apply a patch to remove the requirement of having mcrypt installed
- Open the testsetup.php page in a web browser:
Log In to the VCL Website
- Open the index.php page in your browser (https://my.server.org/vcl/index.php)
- Select Local Account
- Username: admin
- Password: adminVc1passw0rd
- Set the admin user password (optional):
- Click User Preferences
- Enter the current password: adminVc1passw0rd
- Enter a new password
- Click Submit Changes
Add a Management Node to the Database
- Click the Management Nodes link
- Click Add
- Fill in these required fields:
- Hostname - the value you set for Hostname should match the FQDN line in the /etc/vcl/vcld.conf file on the management node
- IP address - the public IP address of the management node
- SysAdmin Email Address - error emails will be sent to this address
- Install Path - this is parent directory under which image files will be stored - only required if doing bare metal installs or using VMWare with local disks
- End Node SSH Identity Key Files - enter /etc/vcl/vcl.key unless you know you are using a different SSH identity key file
- Optionally, fill in these fields:
- Address for Shadow Emails - End users are sent various emails about the status of their reservations. If this field is configured, copies of all of those emails will be sent to this address.
- Public NIC configuration method - this defaults to Dynamic DHCP - if DHCP is not available for the public interface of your nodes, you can set this to Static. Then, the IP configuration on the nodes will be manually set using Public Netmask, Public Gateway, Public DNS Server, and the IP address set for the computer under Manage Computers
- Click Confirm Management Node
- Click Submit
- Click the Management Nodes link
- Select Edit Management Node Grouping
- Click Submit
- Select the checkbox for your management node
- Click Submit Changes
Further steps if using only VMWare
Further steps if using xCAT
Adding Local VCL Accounts
Local VCL accounts are contained within the VCL database. The admin account is a local VCL account. Additional local accounts can be added via the backend management node code. After you have finished the backend management node installation, run:
- Select VCL Base Module
- Select Add Local VCL User Account
- Enter the requested information
Adding LDAP Authentication
Follow the instruction on the Adding LDAP Authentication page.
Previous Step: VCL 2.2.1 Database Installation
Next Step: VCL 2.2.1 Management Node Installation