WebMO Home Page
Features
Pro Features
Enterprise Features
Compare Features
System Requirements
Screen Shots
Working Demo
Support
Support Forum
Testimonials
Revision History
Mailing List
Curriculum Examples
Workshops
License Info
Pricing
Buy WebMO Pro/Ent
Obtain Free License
Download
|
|
|
Cgiwrap Installation Instructions for Linux
|
Cgiwrap is a program that allows cgi scripts run as the user in whose directory they are installed,
rather than 'nobody'. This can be convenient both for security and practical reasons. If desired,
cgiwrap can be installed using the instructions below.
- Obtain a copy of the cgiwrap source code
Visit the cgiwrap download page
and download the most recent version of cgiwrap (cgiwrap-3.6.4.tar.gz).
- Uncompress the cgiwrap archive
% su
# cd /download_dir
# tar zxvf cgiwrap-3.6.4.tar.gz
- Configure and compile cgiwrap
# cd cgiwrap-3.6.4
# ./configure
# make
If httpd is running as a different user, e.g., User=web, then the --with-httpd-user=web option must be appended to the ./configure command
- Install cgiwrap
# cp cgiwrap /home/httpd/cgi-bin/
# cd /home/httpd/cgi-bin/
# chown root:root cgiwrap
# chmod 4755 cgiwrap
# ln -s cgiwrap cgiwrapd
# ln -s cgiwrap nph-cgiwrap
# ln -s cgiwrap nph-cgiwrapd
- Update Apache configuration file
# cd /etc/httpd/conf
# cp -p httpd.conf httpd.conf.000
# vi httpd.conf, make the following changes
|
Add the lines
RewriteEngine On
RewriteRule ^/~(.*)/cgi-bin/(.*) /cgi-bin/cgiwrap/$1/$2 [PT]
|
- Restart Apache web server
# /etc/rc.d/init.d/httpd restart
Copyright © 2000, WebMO, LLC, all rights reserved.
|