wiki:NDGBrowseHowTo

Version 2 (modified by lawrence, 12 years ago) (diff)

starting the new browse/discovery installation documentation

How to Install the NDG Browse Code

[This page is NOT FINISHED ... and is not a real guide to do anything YET]

Note that the new browse and discovery code is integrated using paste, so you will need to ensure you have all the paste code installed in your python. In the following instructions, I'll assume you have access to your python, and that it exists at /your/path/bin/python. You may not need all these steps depending on the state of your system, and you may have needed to ensure that you have a http proxy variable set!

  1. /your/path/bin/easy_install paste
  2. ...

Your apache configuration should have something like this in it:

<IfModule mod_fastcgi.c>
  Alias /retrieve "/var/www/fastcgi/ndg"
  Alias /browse "/var/www/fastcgi/ndg"
  Alias /discovery "/var/www/fastcgi/ndg"
  Alias /layout "/var/www/fastcgi/ndg"
  <Directory /var/www/fastcgi>
    SetHandler fastcgi-script
    Order allow,deny
    Allow from all
  </Directory>
  # following socket ought to be setup by paste via ndg.ini (bnl)
  FastCgiExternalServer /var/www/fastcgi/ndg -socket /tmp/ndg_fastcgi.soc

</IfModule>

Obsolete Instructions Follow

This version of the page discusses what I did to install NDG browse on superglue, based on the glue distribution (which is older than that in SVN, but considered "stable").

  1. Tarred up the glue distribution (should have used an svn distribution, but there were useful stable mods post alpha but before the current version)
    1. In /var/www/cgi-bin. I used tar czvf ~lawrence/browse.tgz browse*
    2. In /var/www/html. I used tar czvf ~lawrence/layout.tgz layout*
  2. Unpack files
    1. c.d into the appropriate cgi-bin directory. I think this should be /var/www/cgi-bin
      1. Unpack ... tar xzvf yourbrowsetarfile
    2. c.d into the appropriate layout directory /var/www/html/
      1. Unpack ... tar xzvf yourlayouttarfile
  3. Edit the browse config file in /var/www/cgi-bin so that
    1. the localAA and localSM point to an installation of NDG security running on this system.
    2. the exist database is the superglue one ...
    3. Wonder, like I did, about the libraryLOC, but don't do anything.

At this point I visited  http://host/cgi-bin/browse.py and it crashed with a security releated problem.

Message sent to list.