Changes between Initial Version and Version 1 of InstallVSO


Ignore:
Timestamp:
07/27/12 13:36:16 (12 years ago)
Author:
joe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallVSO

    v1 v1  
     1= Installing VSO = 
     2 
     3Due 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). 
     4 
     5== VSO Install Script == 
     6 
     7First, download the shell script that'll do 90% (ish) of the work: 
     8 
     9{{{ 
     10wget http://sdac.virtualsolar.org/Installers/install_vso.sh 
     11}}} 
     12 
     13Modify 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 a [http://sdac.virtualsolar.org/Installers/ConfigAll.PL Perl script] part way through and run it to set up all of the local configuration bits) 
     14 
     15== The Manual Bits == 
     16 
     17 
     18For everyone: 
     19 
     201. Make it so the webserver can see the static HTML files. 
     21 
     22  (I'm assuming you have it being told that the static files are it something like `http://server/vso`, and they're locally in `/opt/vso/html`, and the webserver root is `/var/www/html`) 
     23 
     24  Depending on your webserver's security, you might be able to just symlink it in: 
     25 
     26 {{{ 
     27   ln -s /opt/vso/html /var/www/html/vso  
     28}}} 
     29 
     30  But if you don't allow symlinks, you can define an alias in either `httpd.conf` or the appropriate `site/*.conf` file for that virtual host: 
     31 
     32{{{ 
     33    Alias /vso/ /opt/vso/html 
     34}}} 
     35 
     36  But that might not work if you followed the CIS benchmarks to the letter (not allowing access to files outside of the web root), so in that case, just copy 'em in place: 
     37 
     38{{{ 
     39cp -r /opt/vso/html /var/www/html/vso 
     40}}} 
     41 
     422. Put all of the CGIs in place 
     43 
     44  First, you're going to have to decide which set of CGIs you're going to use, as there's multiple versions of most of 'em. 
     45 
     46  Like before, you can either symlink into `/var/www/cgi-bin/vso` add a `ScriptAlias` directive  (Alias + designate as CGI) to the webserver config, or just copy 'em in place 
     47 
     48  If you're using Fast CGI (and you've already installed the FCGI perl module, if not, run `cpanm FCGI`), you will need the following files: 
     49 
     50{{{ 
     51        cartfi.cgi       -> carti 
     52        cartufi.pl       -> cartui 
     53        searchFormufi.pl -> search 
     54        show_details.pl  -> show_details 
     55        vsoufi.cgi       -> vsoui 
     56        vsofi.cgi        -> vsoi 
     57 
     58        (optional bits) 
     59        catalogufi.pl     -> catalog 
     60        vsofi_wsdl.cgi    -> vsoi_wsdl 
     61        vsoi_tabdelim.cgi -> vsoi_tabdelim 
     62}}} 
     63 
     64 If you're using mod_perl ... contact me, as it looks like they're not all packed in. 
     65 
     66 If you're using basic CGI: 
     67 
     68{{{ 
     69        carti.cgi       -> carti 
     70        cartui.pl       -> cartui 
     71        searchForm.pl   -> search 
     72        show_details.pl -> show_details 
     73        vsoui.cgi       -> vsoui 
     74        vsoi.cgi        -> vsoi 
     75 
     76        (optional bits) 
     77        catalog.pl        -> catalog 
     78        vsoi_wsdl.cgi     -> vsoi_wsdl 
     79        vsoi_tabdelim.cgi -> vsoi_tabdelim 
     80}}} 
     81 
     82 It's very likely that the files won't parse clean, because we've put the perl libraries in a strange place. So, you'll need to pop them open, and add the following line (adjusted to your system): 
     83 
     84{{{ 
     85use lib '/opt/vso/lib/perl5'; 
     86}}} 
     87 
     88 You can then check the files using the command: 
     89 
     90{{{ 
     91perl -wc filename 
     92}}} 
     93 
     94 If you get a `Can't locate` message, check to make sure that the `@INC contains:` bit includes what you have listed in the `use lib` line.  If it's still got problems, [People/JoeHourcle  e-mail me]. 
     95 
     963. Modify the `webui_config.xml` file so it knows about itself: 
     97  (note to self -- automate this part, as it should all come from the config, and we need to trim out the old bits) 
     98 
     99 edit : `/opt/vso/etc/webui_config.xml` 
     100 
     101 add a `'<server>'` block to describe the instance.  You'll want to use whatever you set for `INSTANCE_ID` as the `'name'` 
     102 The version number doesn't really matter. 
     103 
     104 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)'