Compile & Install jwCGI

Download jwCGi
Unpack the archive.
tar -xvzf jwcgi-<version>
cd jwcgi-<version>
./configure
make
make install
where <version> is the latest version of jwCGI without the <> symbols.
This compiles and installs the library.
There are a few switches that can be used with the configure script
use the --with-html option to override the path to your web server document root.
e.g. ./configure --with-html=/var/www/html

use the --with-cgibin= option to override the path to your cgi-bin directory.
e.g. ./configure --with-cgibin=/usr/lib/cgi-bin


to compile the demos --enable-demos must be passed to the configure script.
e.g. ./configure --enable-demos

to compile the mysql demo --enable-mysqldemo must be passed to the configure script.
e.g. ./configure
--enable-demos --enable-mysqldemo

use the --with-mysql option to override default mysql lib directory
e.g. ./configure --with-mysql=/usr/local
To remove all debugging info/symbols
make strip
If the MySQL demo app is compiled the database will have to be created
for the demo cgi to use. To do this:
 make createdb create the database
make dropdb remove the database
There is no user called here for mysql so the user logged in will need
rights to mysql. if not add the user to the statements like this in the
Makefile:
createdb:
mysqladmin -u root -p create personnel
mysql -u root -p personnel < jwcgi/personnel.sql
Assuming that root is the 'all powerful' mysql user.

How to use the library.

CGI specification:- CGI specs
JohnWiggins.net
email