home *** CD-ROM | disk | FTP | other *** search
- THE AUTOSWISH README
-
- AUTOSWISH?
-
- AutoSwish is a CGI script that works in conjunction with SWISH-E, and
- allows you or your users to index a Web site by simply filling out a
- form. AutoSwish will then automatically write a SWISH-E configuration
- file, index the directories and files that have been specified, create
- a cgi script for searching the index, and generate a fully functional
- search form, which can be used immediately. In just minutes your users
- can make their WebPages fully searchable and they didn't have to come
- running to you!
-
- SYSTEM REQUIREMENTS
-
- So far AutoSwish has only been tested on the Solaris 2.5.1 and Dec
- Alpha 3.2 platforms, both using the NCSA HTTPD server. The only specific
- requirement is that Perl 4 or above be available on your system.
-
- SECURITY
-
- AutoSwish has only the most basic security features. As of this version,
- these consist of a simple check of submitted form data for unknown variable
- names or shell metacharacters. In the future I plan to write a perl 5
- version of AutoSwish which will incorporate the -T tainting option to
- further decrease the likelihood of anyone trying to issue system commands
- using the form.
-
- The installation of AutoSwish requires that you give a number of directories
- universal permissions (777). This is so that the CGI script, which will run
- as "nobody" on most systems, can write to them. Because of this, it is essential
- that you set up an AutoSwish users group and restrict use of the script to
- members of that group. I have included instructions for doing this with an
- .htaccess file at the end of the readme.
-
- INSTALLATION
-
- NOTE: INSTALLATION SHOULD ONLY BE DONE BY THE SYSTEM ADMINISTRATOR!
-
- 1. Download and uncompress the AutoSwish files to a temporary directory:
-
- % uncompress autoswish.tar.Z
- % tar -xvf autoswish.tar
-
- You should see the following directory and file names:
-
- SWISH-E/
- AutoSwish/
- index.html
- stopwords.txt
- Images/
- powered.gif
- powered+.gif
- swish-e.gif
- swish-e+.gif
- swishbullet.gif
- swishrule.gif
- SwishForms/
- SwishTest/
- swish_create.pl
- swish_cgi_sub
-
- 2. Install the SWISH-E Executable
-
- Follow the instructions in the SWISH-E README for installing the executable.
- Once this is done create the following two directories in the same directory
- where SWISH-E resides:
-
- % mkdir -m 777 ConfigFiles SwishIndexes
-
- 3. Install the CGI Script
-
- A sub-directory of your CGI directory (usually /usr/local/etc/httpd/cgi-bin/)
- must be created (swish-bin) and the AutoSwish script installed in its own
- directory there (SwishCreate):
-
- % mkdir -p swish-bin/SwishCreate
-
- Change swish-bin's permissions so the that script can write to it:
-
- % chmod 777 swish-bin
-
- Move swish_create.pl & swish_cgi_sub into SwishCreate and make the
- perl script executable:
-
- % chmod +x swish_create.pl
-
- 4. Install the Web Files
-
- The AutoSwish form and a number of other files must be installed on your
- Web server. Move the entire SWISH-E directory there from your temporary
- directory:
-
- % mv SWISH-E webpath
-
- Where webpath is the path to you principal Web directory. Now change the
- permissions on the SwishForms sub-directory so that the CGI script can
- write to it:
-
- % chmod 777 SwishForms
-
- 5. Configuration
-
- A number of configuration variables need to be changed in the header of
- the swish_create.pl script to reflect you particular environment. There
- are comments there to guide you.
-
- Also two changes must be made to SWISH-E/AutoSwish/index.html. In the
- editor of your choice change the path of swish_create.pl in all <FORM> tags
- and change the replace rule paths in the hidden fields on lines 46 and 111
- to reflect the those on your system.
-
- 6. User Access
-
- Create an .htaccess file for the .../swish-bin/SwishCreate directory and
- limit access to a group named something like "swish-users". The accompanying
- .htpasswd and .htgroup files should be placed in a SECURE area on your server
- to avoid security problems. Be sure to create a user ID and password for each
- individual user or unit so they will only have access to their files. Also,
- if you would like to make the SwishTest directory available to guests for
- demonstration purposes, add a "guest" ID with "test" for a password. For more
- information on user authentication see:
-
- http://hoohoo.ncsa.uiuc.edu/docs/tutorials/user.html
-
- A FINAL NOTE
-
- AutoSwish is still in the very earliest stages of its development. In it's
- present form the script is less than streamlined but seems to work just fine.
- I would, however, appreciate any reports of bugs, installation difficulties,
- or needed improvements. I can be contacted at khasting@library.berkeley.edu.
- We have also started a discussion list. Subscription information available at:
-
- http://sunsite.berkeley.edu/Discussion/
-
- AUTHOR
-
- Kirk V. Hastings
- Library Systems Office
- UC Berkeley Libraries
-
- khasting@library.berkeley.edu
-
- 8/12/97
- 12/23/97, last update
-