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

Setting Up a NextCloud Server on DigitalOcean
When I met my friend Johannes, who has even been honored at the Davos conference, at the end of last year, he said, “You're still using…

Setting Up Name-Based HTTPS Virtual Hosts (SNI) with Let’s Encrypt
Let's Encrypt is a free TLS server-certificate service provided by the US foundation Internet Security Research Group (ISRG). Its motto is free, automated, secure, transparent, open,…

Why Doesn’t Apache Apply DefaultCharSet Even When It Is Specified?!
I got a little stuck on this... Have you ever migrated an old EUC-JP or Shift JIS site to a new server and ended up with…
