• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Apache CGI scripts download via web browser, and don't run?

wezal

Member
I recently set up Linux Redhat 6.2 and I have Apache running with most of the default values within the htttpd.conf. Everything works fines, except when I try to run a perl/cgi script, it tries to download it instead of run it? I have checked to make sure that the scripts are executable and that it first line of the scripts points to the correct Perl location, and I have also uncommented the two lines within the httpd.conf file pertaining to perl. Any suggestions on what is wrong? I also added the following line, without success 'AddHandler cgi-script .cgi.pl' Thanks for your help.
 
I believe that problem is caused by the lack of a ExecCGI, and maybe the AddHandler lines in this type of directive:

<Directory /home/pgienger/public_html/cgi_test>
AddHandler cgi-script cgi
Options Indexes ExecCGI
</Directory>


That's from the access.conf of a webserver I use with scripts running correctly. The Indexes isn't necessary, it's just there so I don't need an index.html in my directory.

 
Back
Top