• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

problem displaying CGI files

MJCfromCT

Gawd
Joined
Jun 27, 2006
Messages
735
Hi all,

I have my own LAMP server, running FC5, up-to-date versions of apache, mysql, php, perl. I have a problem when it comes to cgi files. My server will just display them as text instead of executing them. I am pretty sure there is a simple solution to this, does anyone have any ideas? Thanks in advance.
 
Hi BillLeeLee,

I believe CGI is enabled, is there a way I can check to confirm this?

I am unsure if the files are in the proper directory. What I have downloaded is a copy of the battlefield 2 stats lookup. It comes as a zip with .cgi, .pm, and various other files. I have tried to put the .cgi files in my /var/www/cgi-bin directory, but I am not having lucking getting everything set up.
 
First you should have a handler like

AddHandler cgi-script .cgi .pl

In your httpd.conf

Then you'll need to allow cgi in the directory where you place the files. This is done either through a ScriptAlias:

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

Or a suitable directory directive:
Code:
   <Directory /home/*/public_html/cgi-bin/>
      Options ExecCGI
      SetHandler cgi-script
    </Directory>
Think that's about it.
 
Back
Top