Koozali.org: home of the SME Server

Cannot execute .CGI on primary site?

Bill

Cannot execute .CGI on primary site?
« on: August 27, 2003, 11:27:53 PM »
For some reason I cannot seem to get any scripts to run on the primary web site. I am running 5.6 and have the system configured as a public server and gateway. The script is in the cgi-bin dir.

The script runs fine from the commmand line but not from IE. I have the permissions set so it should run but no go and not much error other than the usual internal config error message. The script is a very simple perl test script that just returns a simple static web page.

What have I missed? I find it very curious that I cannot run any script by calling it from the web browser.

Until I figure this out I am going to try to set up a ibay subdomain and run the script from within that ibay.

TIA, Bill

Ryan

Re: Cannot execute .CGI on primary site?
« Reply #1 on: September 02, 2003, 06:41:03 AM »
maybe "Options +ExecCGI" in the /cgi-bin/.htaccess file?  You may have to edit the httpd.conf template and change the "AllowOverride None" to "AllowOverride All" in the directories you want to enable this in.  Then expand the template.

Bill

Re: Cannot execute .CGI on primary site?
« Reply #2 on: September 02, 2003, 04:12:17 PM »
I finally tracked down the problem. It was the usual windows/linux problem. Line feeds following carrage returns in the file.

What I don't understand is why linux in general doesnt just ignaore any line feeds following a CR. It certainly would make the OS more user friendly and would eliminate the #1 headache for people who have to live in the MS world.