LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cgi-bin (https://www.linuxquestions.org/questions/linux-networking-3/cgi-bin-47625/)

Llwyd 02-28-2003 01:55 PM

Cgi-bin
 
I know this has been covered, and I think I've read every prior thread on this issue. I'm having a problem with Apache displaying my .pl files as text as opposed to actually executing the files.

Here's the relevant part of my httpd.conf file:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<IfModule mod_cgid.c>
#
# Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
# for setting UNIX socket for communicating with cgid.
#
#Scriptsock logs/cgisock
</IfModule>

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
AllowOverride None
Options ExecCGI
AddHandler cgi-script .cgi .pl
Order allow,deny
Allow from all
</Directory>

All permissions are set to 755.

If you can see something wrong with this PLEASE let me know. I'm running out of hairs to pull out.

Thanks,

Lance

Mara 02-28-2003 05:02 PM

Moved to Linux-Networking... Llwyd asked for Linux-General, but it fits betther here IMHO.

Suggestion: do you have mod_cgi (httpd -l)? Are you sure suexec is off?

Llwyd 02-28-2003 05:34 PM

No, I never installed mod_cgi.


"suEXEC feature which is never installed or activated by default"

I never enabled it, so I can safely say no.

Mara 03-01-2003 01:46 PM

You need mod_cgi.


All times are GMT -5. The time now is 03:35 PM.