Thanks in advance.
I recently migrated all virtual servers from an old CentOS host to a new Ubuntu 14.04 LTS server installed with the install script. Most things went very well due to Virtualmin (Pro).
I have one small CGI script that is not being executed. It is located in cgi-bin with a file type of .cgi, written in perl. No errors appear to be logged anywhere...the .cgi file is just served up as text in a separate pop-up window (the original script opened a separate window too).
This is in /etc/apache2/sites-available/problemdomain.com.conf:
allow from all
Require all granted
AddHandler fcgid-script .cgi
The permissions look fine to enable execution. The actual script is in a subdirectory of cgi-bin:
root@www:~# ll /home/problemdomain/cgi-bin/ipcalc/ipcalc.cgi
-rwxr-xr-x 1 username problemdomain 6382 Jun 16 2014 /home/problemdomain/cgi-bin/ipcalc/ipcalc.cgi*
Also, a 'test.cgi' script also fails to execute in the cgi-bin directory. I believe it's a problem with 'executing CGI' as opposed to a problem with that file...maybe an 'executing perl' issue (the test.cgi was also perl)?
The fcgid module is already enabled (as reported by a2enmod).
Any clues welcomed.