Author Topic: CGI not working out-of-the-box - mod_cgid.so not loaded  (Read 7035 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CGI not working out-of-the-box - mod_cgid.so not loaded
« on: April 24, 2017, 11:02:25 PM »
I'm using CWPpro version 0.9.8.312 pretty much out of the box.  I installed the regular version on a VPS last week the paid for the Pro update, and this is what I got.

The problem I had is that cgi-bin scripts weren't working on any of my hosted domains.  I checked the vhosts.conf and the ScriptAlias directives were there (okay, the path was missing a closing quote but that didn't matter and anyway has already been reported), but I kept getting the contents of my script files served rather than the output from executing them.

After entirely too long reading around about the ScriptAlias directive I thought to check for mod_cgi, and it wasn't loaded.  The fix was to edit httpd.conf and uncomment
Code: [Select]
LoadModule cgid_module modules/mod_cgid.so
After restarting the Apache server, CGI scripts started to work.
« Last Edit: April 24, 2017, 11:05:53 PM by kbro »

Offline
*
Re: CGI not working out-of-the-box - mod_cgid.so not loaded
« Reply #1 on: August 26, 2017, 09:28:49 AM »
You can find instructions for running cgi scripts securely here
http://wiki.centos-webpanel.com/how-to-run-cgi-scripts-with-apache
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: CGI not working out-of-the-box - mod_cgid.so not loaded
« Reply #2 on: September 10, 2017, 08:26:23 AM »
After following the instructions from the link above http://wiki.centos-webpanel.com/how-to-run-cgi-scripts-with-apache I am still unable to run CGI scripts. It turns out I also need perl-CGI installed which is not installed by default (CWP version 0.9.8.354)

Code: [Select]
yum install perl-CGI