Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI Script won't execute

Status
Not open for further replies.

Whatszzup

Programmer
Oct 8, 2000
3
US
I have successfully installed Apache 1.3.12 on Win 95.

Modified httpd.conf file to support CGI

ScriptAlias /cgi-bin/ "E:/Apache Group/Apache/cgi-bin/"

AddHandler cgi-script cgi
<Directory &quot;E:/Apache Group/Apache/cgi-bin&quot;>
AllowOverride None
Options ExecCGI FollowSymLinks
</Directory>

Now the cgi script executes fine when i say something like:

No problem here. The script is executed and I see proper output.

But when I call the same script via a HTML file it does not work. My html file located in cgi-bin dir. looks like following:

<HTML>

<HEAD><TITLE> Trying </TITLE></HEAD>

<FORM ACTION = &quot;myCGIscript.cgi&quot; METHOD=GET>
<INPUT TYPE=&quot;submit&quot; VALUE=&quot;Submit&quot;>
<INPUT TYPE=&quot;reset&quot; VALUE=Reset&quot;>
</FORM>
</BODY>
</HTML>

When I click the &quot;submit&quot; button, the script is not executed. Instead I see the all the text of the script file.
I do not get any server error, just the whole script file is displayed on the browser.

Here is how my script looks

#!D:\Perl\bin\perl.exe

print &quot;Content-type: text/html \n\n&quot;;
print &quot;If you see this it works \n&quot;;


Does anybody has a clue.

Thanks in Advance


[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top