Version 2 (modified by joe, 12 years ago) (diff) |
---|
Installing VSO
Due to some concerns from the legal folks regarding distribution of software, the instructions are intentionally missing a key variable -- the location of the 'DarkPAN' site that you need to pull the software from. Please contact [people/JoeHourcle Joe Hourclé] if you're interested (and so we can get feedback to improve these instructions).
VSO Install Script
First, download the shell script that'll do 90% (ish) of the work:
wget http://sdac.virtualsolar.org/Installers/install_vso.sh
or
curl -O http://sdac.virtualsolar.org/Installers/install_vso.sh
If you don't have curl or wget installed ... that's a problem, as you'll need something to fetch the dependancies and such.
Modify the file as appropriate so it'll install where you want, and knows about the super-secret place where the VSO perl scripts are. I'd also recommend that you look over what the script's doing, as it's generally a bad idea to just download stuff from the internet and run it. (also, it's going to download other scripts part way through and run it under sudo to set up all of the local configuration bits ... set PAUSE_AFTER_DOWNLOAD to get it to wait for you to inspect 'em first)
install the CGIs and static files
Once the scripts have finished running, you should get a message similar to:
To finish the install: copy files in /tmp/cgi to the local path for http://servername.example.com/cgi-bin/vso copy files in /opt/vso/html to the local path for http://servername.example.com/vso
We'll assume for this example that the webserver root is /var/www/html and the CGI root is /var/www/cgi-bin
You have a few options for the static files:
- Symlink the directories
ln -s /opt/vso/html /var/www/html/vso
The only advantage is that you won't have to do anything in the future after updates. Many web servers don't allow symlinks (and it's a good idea not to), so you may get reports in your webserver's error log such as:
Symbolic link not allowed or link target not accessible: /var/www/html/vso
- Set up an Alias in the httpd.conf file or the appropriate site/*.conf file for that virtual host:
Alias /vso/ /opt/vso/html
You will need to restart your webserver ( issue the command apachectl graceful ).
This might not work if you followed the CIS benchmarks to the letter (not allowing access to files outside of the web root)
- Or, just copy the files into place:
cp -r /opt/vso/html /var/www/html/vso
..
for the CGIs, you really want to copy them into place. Barring any errors, they'll have been copied into /tmp/cgi with the appropriate names to use.
cp -r /tmp/cgi /var/www/cgi-bin/vso
(note to self -- they don't check to see if you over rode the filenames when configuring; they assume the default names)
Modify the Web UI configuration (if appropriate)
This is only necessary if you're running the 'UI' (web front end) portions of the VSO. If you're only running the APIs, this isn't necessary.
edit : /opt/vso/etc/webui_config.xml
add a '<server>' block to describe the instance. You'll want to use whatever you set for INSTANCE_ID as the 'name' The version number doesn't really matter.
then look for the <version> block ... change it so that only your instance ID is listed in there as a '<current>' element. (or add it in, and it'll round-robin)'