WebMO Home Page
   Features
   Pro Features
   Enterprise Features
   Compare Features
   System Requirements
   Screen Shots
   Working Demo
   Support & Tutorials
   Support Forum
   Testimonials
   Revision History
   Mailing List
   Educational Resources
   Workshops
   License Info
   Pricing
   Buy WebMO Pro/Ent
   Obtain Free License
   Download
WebMO - Computational chemistry on the WWW
Recent news

WebMO 18.1 is now available for free download!

WebMO 18.1 Pro and Enterprise have a variety of additional features and is available for purchase.

The WebMO app is now available for iOS and Android.

December 12, 2018
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.

  1. 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).
  2. Uncompress the cgiwrap archive
    % su
    # cd /download_dir
    # tar zxvf cgiwrap-3.6.4.tar.gz
  3. 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
  4. 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
  5. 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]

  6. Restart Apache web server
    # /etc/rc.d/init.d/httpd restart

Copyright © 2000, WebMO, LLC, all rights reserved.