EDG Web Interface Installation

This assumes you are on a platform that supports apache and perl.

  1. check out the edg module from the edg.sourceforge.net:

    cvs -d:pserver:anonymous@cvs.edg.sourceforge.net:/cvsroot/edg login
     
    cvs -z3 -d:pserver:anonymous@cvs.edg.sourceforge.net:/cvsroot/edg co edg

  2. start lisp and do :
    1. (load "load-edg")
    2. (load-all)
    3. (listen-on-port :port 8010)
  3. Test the lisp server in a shell. Your shell session should look something like the following :
    ekoontz@newhiro ekoontz $ telnet localhost 8010
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    (parse "hiro sleeps")
    ((<VP-2 ("hiro sleeps ")> <HIRO ("hiro")>)
     (<SLEEPS ("sleeps")>))
    Connection closed by foreign host.
    ekoontz@newhiro ekoontz $
                
  4. check out the edg-web module from the edg.sourceforge.net:

    cvs -d:pserver:anonymous@cvs.edg.sourceforge.net:/cvsroot/edg login
     
    cvs -z3 -d:pserver:anonymous@cvs.edg.sourceforge.net:/cvsroot/edg co edg-web

  5. install apache
  6. install the Sablotron library, including XML::Sablotron, the Perl module.
  7. Supposing your edg-web is checked out into /home/ekoontz, (your directory will vary of course), add the following lines to the httpd.conf file :
    Alias /edg "/home/ekoontz/edg-web/"
    
    <Directory "/home/ekoontz/edg-web">
        Options MultiViews
        Order allow,deny
        Allow from all
    </Directory>
    
    <Directory "/home/ekoontz/edg-web/cgi">
        AllowOverride None
        Options ExecCGI
        Order allow,deny
        Allow from all
        SetHandler cgi-script
    </Directory>
    
  8. restart apache
  9. open a web browser and go to : http://localhost/edg/parse.html
  10. That's it! You should be able to interact with EDG through the web-based interface now. You can monitor the lisp process; it will print the input that it is getting from the cgi script edg-web/cgi/edg.pl

Eugene Koontz
Last modified: Tue Aug 27 22:50:02 PDT 2002