Skip to content

CGIWrap

CGIWrap

Assume we have main web root directory at /home/admin/web, and we would like to have CGIWrap transparently at the background. The cgi-bin folder is located inside web folder. Please change both the user and group in httpd.conf to apache.

  1. tar -zxvf cgiwrap-version.tar.gz

  2. ./configure –with-cgi-dir=web/cgi-bin –with-httpd-user=apache –with-install-dir=/home/<user>/web/cgi-bin

  3. make

  4. make install

  5. Update the httpd.conf file with

    ScriptAlias /cgi-bin/ “/home/admin/web/cgi-bin/”

    RewriteEngine On
    RewriteMap lowercase int:tolower
    RewriteRule ^/cgi-bin/(.*) /cgi-bin/cgiwrap/admin/$1 [PT]

    <Directory “/home/admin/web/cgi-bin”>

  6. Sample of error message for CGIWrap:

Categories: Lesson, Linux, Server, Solution, Web Hosting.

Comment Feed

No Responses (yet)



Some HTML is OK

or, reply to this post via trackback.