cgi-bin location

Problems with the Windows version of XAMPP, questions, comments, and anything related.

cgi-bin location

Postby pyro » 08. February 2005 00:42

Just to add something

If I go here
http://localhost/xampp/simon/test.cgi the script below works fine
it prints Helo world

#!/perl/bin/perl -wT
print "Content-type: text/html\n\n";
print "<h2>Hello, World!</h2>\n";

But if i add a folder cgi-bin like below
http://localhost/xampp/simon/cgi-bin/test.cgi

I get the page cannot be found error, when using the same file " test.cgi "
any ideas ?

Pyro
pyro
 
Posts: 11
Joined: 07. February 2005 03:03

Postby Dave_L » 08. February 2005 02:57

Is the cgi-bin folder within the htdocs folder, or is it at the same level?

I think that the default httpd.conf is configured to look for the cgi-bin folder at the same level as the htdocs folder. I'm not sure, since I've made some changes to the default configuration.
User avatar
Dave_L
 
Posts: 212
Joined: 23. October 2004 00:43

Postby speedracer » 25. April 2006 07:30

Was a solution found?
speedracer
 
Posts: 2
Joined: 25. April 2006 02:13

Postby WorldDrknss » 25. April 2006 19:16

use the full path not #!/perl/bin/perl -wT

examples:
#!C:/Program%20Files/xampp/perl/bin/perl -wT
#!/Program%20Files/xampp/perl/bin/perl -wT

In my setup I use:
#!C:/xampp/xampp/perl/bin/perl -wT
or
#!/xampp/xampp/perl/bin/perl -wT

open your httpd.conf and add something similar bellow or add it to your virtualhost is you are using one.

ScriptAlias /cgi-bin/ "C:/Program%20Files/xampp/htdocs/simon/cgi-bin/"
<Directory "C:/Program%20Files/xampp/htdocs/simon/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
http://wdguides.org - XAMPP Tutorials & MORE!!!!
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 132 guests