On Fri, Jul 31, 2020 at 11:12:53AM -0400, Gary Dale wrote: > My server is running Debian/Stable on an AMD64 system. > > I'm trying to set up its local Apache2 service to execute cgi-bin scripts > but I'm having some problems getting it to work. > > I note that /etc/apache2/conf-enabled contains a link to > /etc/apache2/conf-available/serve-cgi-bin.conf so I'm assuming that cgi-bin > is enabled. The .conf contains a ScriptAlias directive which I believe > redirects /cgi-bin/ to /usr/lib/cgi-bin/ but that's as far as I can get. > > I don't want to tamper with the conf-available scripts so I went along with > their settings. First I tried to link the script I want executed to the file > in the site's public_html/cgi-bin/ folder but that didn't work. Next I tried > copying the file to /usr/lib/cgi-bin but got the same results. Even when I > changed the ownership of the directory and its files from root:root to > www-data:www-data, the script still doesn't execute. > > Instead when I click on the page's submit button, I get a dialog box asking > me what program I want to use to open the file (which gives me the option of > Kate). > > To be clear, the perl script is marked a+x and it does work on the external > web server that I use to host the live site. Also, I have restarted the > apache2 service multiple times even though the config has not changed. > > Can anyone figure out what I'm missing? >
Did you enable it? sudo a2enmod cgi -H -- Henning Follmann | hfollm...@itcfollmann.com