Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Excerpt

This page describes how How to install and configure the frontend VCL web code components including the web server prerequisites and frontend VCL web code. It also describes how to add local web accounts to the VCL database, configure LDAP authentication, and set the timezone correctly.

...

The following instructions assume these tasks have previously been completed:


Your web server should meet the following criteria before installing the frontend VCL codeWeb Server:

  • Apache HTTP Server v1.3 or v2.x with SSL enabled - while VCL
  • PHP 5.0 or later
    Note: The VCL web frontend may run under another webserver other web server platforms capable of running PHP code, it but has only been tested to work with Apache HTTP Server.

Required Linux Packages:

  • libmcrypt - Encryption algorithms library

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 , this is not requiredor later)
  • php-mcrypt
  • php-mysql
  • php-openssl
  • php-sysvsem
  • php-xml
  • php-xmlrpc
  • php-ldap (if you will be using ldap LDAP authentication)
  1. Install the Required Linux Packages & PHP Modules

    If

...

  1. your web server is running a Red Hat-based OS, the required PHP modules can be installed with:

    ...

    Panel

...

  1. % yum

...

  1. install

...

  1. httpd

...

  1. mod_ssl

...

  1. php-gd

...

  1. php-mcrypt

...

  1. php-mysql

...

  1. php-xml

...

  1. php-xmlrpc

...

  1. php-ldap

...

  1. -y

...

    • it up on CentOS

...

    • It is useful

...

    • to configure the server set up to be able to send debugging emails

...

  1. Configure & Start the Apache Server Daemon

    Panel

    /sbin/chkconfig --level 345 httpd on
    /sbin/service httpd start

  2. Install the VCL

...

  1. Frontend Web Code

    1. If you
    haven't
    1. have not already done so, download and extract
    a copy of the latest release. There is a link to it under the Project Resources section on our wiki home page. Look for "Current version".copy the "web" directory to a location somewhere
    1. the source files on the web server:
      Panel

      wget http://www.apache.org/dist/incubator/vcl/apache-VCL-2.2.1-incubating.tar.bz2
      tar -jxvf apache-VCL-2.2.1-incubating.tar.bz2

    2. Copy the web directory to a location under the web root of your web server: code
      Panel
    1. cp

    1. -r

    1. apache-VCL-2.2.1-incubating/web/

    1. /var/www/html/vcl

    copy/
    1. Copy or rename secrets-default.php to secrets.php
    modify
    1. :
      Panel

      cp /var/www/html/vcl/.ht-inc/secrets-default.php /var/www/html/vcl/.ht-inc/secrets.php

    2. Edit the secrets.php file:
      Panel

      vi /var/www/html/vcl/.ht-inc/secrets.php

  2. set $vclhost, $vcldb, $vclusername, and $vclpassword to match your database setup
      • Set the following variables to match your database configuration:
        • $vclhost
        • $vcldb
        • $vclusername
        • $vclpassword
      • Create random passwords for the following variables:
        • $mcryptkey
        • $mcryptiv (
    create random passwords for $mcryptkey, $mcryptiv, and $pemkey - $mcryptiv
        • must be 8 hex characters
    run
        • )
        • $pemkey
      • Save the secrets.php file
    1. Run the genkeys.sh script
    from within vcl/.ht-inc and give it $pemkey from
    1. , enter the value you set for $pemkey in secrets.php as the passphrase (3 times, copy/paste is a good idea
    here
    1. )
    1. Panel

      /var/www/html/vcl/.ht-inc/genkeys.sh

    2. Copy or
    copy/
    1. rename conf-default.php to conf.php
    modify
    1. :
      Panel

      cp /var/www/html/vcl/.ht-inc/conf-default.php /var/www/html/vcl/.ht-inc/conf.php

    2. Modify conf.php to match your site
      Panel

      vi /var/www/html/vcl/.ht-inc/conf.php

      • COOKIEDOMAIN needs to be the domain name your web server is using
    ,
      • or left blank if you are only accessing
    it
      • the web server by its IP
    only.
      • address
    *
      • IMPORTANT: You really do need to modify every entry in the "Things in this section must be modified" part of the file
    .*
    1. Set the owner of
    make
    1. the .ht-inc/maintenance directory
    writable by
    1. to the web server user
    - i.e. if the httpd process is running as user
    1. (normally 'apache'
    run '
    1. ):
      Panel

      chown apache /var/www/html/vcl/.ht-inc/maintenance

    '
    open
    1. Open the testsetup.php page in a web browser:
      i.e. if
      Image Removed
      Image Removed
      debug
        • Debug any issues reported by testsetup.php
    2. Log In to the VCL Website

      1. Open
      now, open
      1. the index.php page in your browser
      select Local Account and use 'admin' as the user and 'adminVc1passw0rd' as the password
      1. (https://my.server.org/vcl/index.php)
        • Select Local Account
        • Username: admin
        • Password: adminVc1passw0rd
          **Now would be a good time to change the password from the default by going to User Preferences
    3. Add a Management Node to the Database

      click the "
      1. Click the
      1. Management Nodes
      "
      1. link
          enter
            1. Enter the hostname and IP address of your management node
          click
            1. Click Add
          fill
            1. Fill in these additional required fields:
              • 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 - probably just enter "/etc/vcl/vcl.key"
          optionally
            1. Optionally, fill in these
          unrequired
            1. 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 "
          1. Click Confirm Management Node
          "
          click
          1. Click Submit
          click
          1. Click the "Management Nodes" link
              select "
                1. Select Edit Management Node Grouping
              "
              click
                1. Click Submit
              select
                1. Select the checkbox for your management node
              click
                1. Click Submit

            Further steps if using only VMWare

            Further steps if using xCAT

            Next Step: Management Node Installation

            Adding extra local accounts

            ...

            instructions on Adding LDAP Authentication have been moved to a separate page


            ...

            Previous Step: VCL 2.2.1 Database Installation
            Next Step: VCL 2.2.1 Management Node Installation