Executing .cgi files on Windows
Posted by: iantresman (---.bb.sky.com)
Date: October 29, 2018 01:56PM

My virtual host is not executing a .cgi files (a windows utility with an MZ header). When I click the file, my Browser want to Open it. In the C:\wamp64\bin\apache\apache2.4.35\conf\extra\httpd-vhosts.conf file, I have:

1. Added +ExecCGI to the line:
Options +Indexes +Includes +FollowSymLinks +MultiViews +ExecCGI

2. Added to the end of the file, the line:
AddHandler cgi-script .cgi

I've tried:
1. Restarting all services.
2. Tweaking the same line in C:\wamp64\bin\apache\apache2.4.35\conf\httpd.conf

Am running Windows10, Firefox. PHP is running fine. Anything more I can try?

Options: ReplyQuote
Re: Executing .cgi files on Windows
Posted by: Otomatic (Moderator)
Date: October 29, 2018 04:50PM

Hi,

I've never done it before, but I think it's best to check the Apache documentation:
Apache Tutorial: Dynamic Content with CGI

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.