...
- If you haven't 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 under the web root of your web server:
Code Block |
---|
cp -r web/ /var/www/html/vcl
|
- copy/rename secrets-default.php to secrets.php
- modify vcl/.ht-inc/secrets.php
- set $vclhost, $vcldb, $vclusername, and $vclpassword to match your database setup
- create random passwords for $mcryptkey, $mcryptiv, and $pemkey - $mcryptiv must be 8 hex characters
- run the genkeys.sh script from within vcl/.ht-inc and give it $pemkey from secrets.php as the passphrase (3 times, copy/paste is a good idea here)
- copy/rename conf-default.php to conf.php
- modify vcl/.ht-inc/conf.php to match your site - COOKIEDOMAIN needs to be the domain name your web server is using, or left blank if you are accessing it by IP only.
**You really need to modify every entry in the "Things in this section must be modified" part of the file.** - *NOTICE* JpGraph 2.x is no longer available. JpGraph 3.x is released under a dual license. QPL 1.0 (Qt Free Licensee). Free for non-commercial, open-source or educational use (JpGraph Professional License for commercial use). If you are planning to use this for commercial use and don't want to pay for JpGraph, you can safely skip this step with the only side effect of not being able to display a few graphs on the statistics page.
Download JpGraph from http://www.aditus.nu/jpgraph/jpdownload.php - For PHP5, download the 3.x series, extract it, and copy the src directory from it to vcl/.ht-inc/jpgraph
- open a browser and open the testsetup.php page
- debug any issues reported by testsetup.php
- now, open the index.php page in your browser
- select Local Account and use 'admin' as the user and 'adminVc1passw0rd' as the password
**Now would be a good time to change the password from the default by going to User Preferences - click the "Management Nodes" link
- enter the hostname and IP of your management node
- click Add
- fill in "Install Path" - this is parent directory under which image files will be stored
- enter "/etc/vcl/vcl.key" for "End Node SSH Identity Key Files"
- 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
Further steps if using only VMWare
Further steps if using xCAT
- click "Manage Computers"
- select the "Add Single Computer" radio button
- click Submit (UPDATED TO HERE)
- For vmware:
fill in Hostname, IP Address, owner (admin@Local), RAM, Proc Speed, Network Speed, select "blade" for Type, select "xCAT 1.x Provisioning" for "Provisioning Engine", and click the checkbox under "allcomputers", and "newimages"
Note: if using using vmware, select "virtualmachine" for Type and "VMWare Server Provisioning" for "Provisioning Engine" - click Confirm Computer
- click Submit (don't worry about the fact that the computer you just added isn't listed after clicking Submit)
- after you've configured your image library and your management node has started checking in, you should be able to make a reservation
...
- fill in the necessary information in vcl/.ht-inc/conf.php
- add an entry to the affiliation table and use the id for that entry as 'affiliationid' for your new entry in vcl/.ht-inc/conf.php
- uncomment the 'require_once(".ht-inc/authmethods/ldapauth.php");' line in in vcl/.ht-inc/conf.php
Setting Time Zone
- Edit /var/www/html/vcl/.ht-inc/php5extras.php to indicate the correct time zone:
date_default_timezone_set('America/Los_Angeles'); - Edit /var/www/html/vcl/.ht-inc/requests.php (line 3301 currently) to indicate the correct time zone (purely cosmetic):
print "<small>(Pacific Time Zone)</small>";