Changes between Version 14 and Version 15 of NDGBrowseHowTo


Ignore:
Timestamp:
10/04/07 12:32:45 (13 years ago)
Author:
lawrence
Comment:

more detailed instructions on installing browse/discovery

Legend:

Unmodified
Added
Removed
Modified
  • NDGBrowseHowTo

    v14 v15  
    4646/your/path/bin/easy_install  
    4747}}} 
    48  1. Get the contents of TI07-MOLES/trunk/PythonCode/wsgi and put them into a suitable directory on your webserver, and change the ownership of the directory to apache (or whatever account you run your website under). 
     48 1. Get the contents of TI07-MOLES/trunk/PythonCode/wsgi and put them into a suitable directory on your webserver, and change the ownership of the directory to apache (or whatever account you run your website under). This can most easily be done with the following command (which will give you a subversion working copy):  
     49{{{ 
     50svn co http://glue.badc.rl.ac.uk:/ndgsvn/TI07-MOLES/trunk/PythonCode/wsgi 
     51}}}  
    4952 1. cd into that directory! 
    5053 1. Modify 00deploy.sh so that MYPYTHONBIN points to your python: 
     
    5255MYPYTHONBIN=/your/path/bin/ 
    5356}}} 
    54  1. Modify the contents of ndg.ini so that the socket matches the description in your fastcgi setup, so it has this in the server.main section: 
     57 1. Modify the contents of ndg.ini so that the socket matches the description in your fastcgi setup, and it has the right configDir in the [DEFAULT] section. Here, for example, is what is running on glue (where the wsgi code is directory /var/www/ndg): 
    5558{{{ 
     59[server:main] 
     60#use = egg:PasteScript#wsgiutils 
     61#host = localhost.localdomain 
     62#port = 8001 
    5663use = egg:PasteScript#flup_fcgi_thread 
    5764socket = /tmp/ndg_fastcgi.soc 
     65 
     66[DEFAULT] 
     67configDir = /var/www/ndg/ 
    5868}}} 
    5969 1. Create a passwords.txt file and make sure it exists in the directory from which you run the deploy script (and check that you can't get access to that directory via the web!).  It is for allowing the browse code access to your exist repository and should have the following format: 
     
    6272}}} 
    6373 1. You will need to modify the ndgDiscovery.config file as well. You should only need to modify the entries in the default and layout sections.  
    64  1. You will need to modify ndg.ini so that the configDir in [DEFAULT] points to the directory where you've put this code and where apache sees it. 
     74 1.  
    6575 1. At this point you can check the underlying transport works, try 
    6676{{{ 
     
    7383}}} 
    7484 1. You may need to make changes to 001deploy.sh (in particular the path to your python, and potentially you may not be running apache under the user apache). 
     85 1. Make sure that the directory that holds all this code provides read/write access to the user apache (or whatever user your webserver runs under). 
     86 1. Now you can try and run the service: 
     87{{{ 
     88./001deploy.sh 
     89}}} 
     90 1. At the moment one needs to restart the process by hand after a system reboot. 
    7591    
    7692 
    7793==== Troubleshooting ==== 
     94 
     95The last step should produce a log file in your directory, and a file called paster.pid. The latter has the pid of the process. If it doesn't exist, something has gone wrong with your deployment, check the log files in your directory. If they don't exist, suspect that your webserver either has failed to fire up fastcgi or that apache can't write into your directory! 
    7896 
    7997If you have trouble setting up wsgi and fastcgi, see if you can get the wsgiEnvTest code