Here's how to make it work:
Copy the xml-data/tei directory to Apache's htdocs directory.
Copy cgi-bin/xsltproc.cgi to the htdocs directory.
Copy cgi-bin/tei.cgi to the htdocs directory.
Copy swish-indexes/tei.cfg to the htdocs directory.
Edit tei.cfg so IndexDir points to tei (IndexDir tei).
Edit tei.cfg so IndexFile outputs to tei.idx (IndexFile tei.idx).
Index the contents of tei ( swish-e -c tei.cfg ).
Edit tei.cgi's first line so it points to Perl.
Edit xsltproc.cgi's first line so it points to Perl.
Open a command prompt and run tei.cgi from the command line. It should return a stream of
11. Finally, open any Web browser and point it to tei.cgi.
If all goes well you should see pointers to the full text of your documents as well as be able to read the full texts on your screen.