On Apache 2.0, .cgi files would not run in public_html, so I struggled with it for an entire day.

In the end, I compiled cgiwrapper with options, and got it working. It is not the essential solution, but it will do.

The options look like this:

./configure –with-cgi-dir=public_html –with-httpd-user=apache –with-install-dir=/var/www/cgi-bin

Apparently, unless at least these 3 options are specified, it does not work at all.
With –with-cgi-dir=public_html, .cgi files directly beneath it are also managed.

The steps are as follows:

develop% ./configure –with-cgi-dir=public_html –with-httpd-user=apache –with-install-dir=/var/www/cgi-bin

develop% make

root# make install

Related posts