Pages: 12Next
Current Page: 1 of 2
How Can I make a valid cgi-bin directory
Posted by: 30naa (194.225.103.---)
Date: July 24, 2006 12:37PM

I installed WAMP5 and PERL_ADD one.
but I still can not run .cgi files. I even create a cgi-bin directory in my local host folder. but it doesn't work and I couldn't browse .cgi files in it.
How can i create a cgi-bin directory that i can run .cgi files in it???

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: yfastud (72.236.169.---)
Date: July 24, 2006 01:35PM

cgi bin in wamp/apache2, but if you want to make cgi dir for each and several dir, do the search in this forum, especially posts from cyberspatium.
Hope this help.

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: CyberSpatium (67.170.181.---)
Date: July 24, 2006 05:37PM

you need to download and install the WAMP Perl add0on

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: 30naa (194.225.103.---)
Date: July 24, 2006 09:30PM

Thanks for your answer. I downloaded and installed the WAMP Perl add on. it just added a perl directory where my program is installed. it didn't create cgi-bin directory and still do not support .cgi and .pl pages.

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: yfastud (72.236.169.---)
Date: July 24, 2006 10:24PM

After install wamp perl add-on, just put your cgi files in wamp/apache2/cgi-bin as I already mentioned above.
Hope this help.

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: 30naa (217.218.42.---)
Date: July 25, 2006 12:46AM

I putted my cgi files where you said. but when I try to browse this link [localhost]
then this error comes.
Not Found

The requested URL /Apache2/cgi-bin/mt/mt.cgi was not found on this server.
Apache/2.0.58 (Win32) PHP/5.1.4 Server at localhost Port 80
______________________________________________________
and when I try to browse this link
[localhost]
I see this on my screen:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.0.58 (Win32) PHP/5.1.4 Server at localhost Port 80
_________________________________________________________
I Downloaded active perl. if this can help please tell me.

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: yfastud (72.236.169.---)
Date: July 25, 2006 02:42PM


Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: 30naa (194.225.103.---)
Date: July 25, 2006 08:15PM

so if I have a folder in my cgi-bin directory I can not excute .cgi files in this subfolder and I must copy my .cgi files directly to cgi-bin directory???
Does WAMPserver support postgreSQL???

Options: ReplyQuote
this is how
Posted by: dbzkid (---.dyn.optonline.net)
Date: July 25, 2006 08:49PM

you also need to set apache to allow perl scripts, open your httpd.conf file and find:
#AddHandler cgi-script .cgi

change it to:
AddHandler cgi-script .cgi .pl

then find:
Options Indexes FollowSymLinks

change to:
Options Indexes FollowSymLinks Includes +ExecCGI

save your file, and restart apache for the new settings to take effect.

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: yfastud (72.236.169.---)
Date: July 25, 2006 09:06PM

Already answered your questions for cgi, I don't want to repeat myself.

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: CyberSpatium (67.170.181.---)
Date: July 25, 2006 09:29PM

also make sure you put the correct location to perl in the first line of your perl scripts

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: 30naa (194.225.103.---)
Date: July 26, 2006 01:17AM

doesn't work.
Perl and CGI scripts are not compatible with wampserver.
I will not try to run my scripts on wampserver any more.
I think better to remove perl add on from your add ons list. because its just a junl. good for spending time for none. just try to solve the problem
Thank you



Post Edited (07-26-06 01:31)

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: CyberSpatium (67.170.181.---)
Date: July 26, 2006 02:50AM

wamp does work with perl. unfortunately, when you install the perl add-on, it just installs perl, it does not configure your server to run perl scripts. you will have to edit your httpd.conf file and setup perl yourself.
Edit your httpd.conf file:
find:
#AddHandler cgi-script .cgi

change it to:
AddHandler cgi-script .cgi .pl

then find:
Options Indexes FollowSymLinks

change to:
Options Indexes FollowSymLinks Includes +ExecCGI

save your file, and restart apache for the new settings to take effect.
now,

you need to set the correct location to perl in the top line line of your perl files, change them to

#!"C:\wamp\Apache2\cgi-bin\perl\bin\perl.exe"

now you can run pl and cgi files.



Post Edited (07-26-06 02:51)

CyberSpatium
----------------------
WAMP Forum Admin

Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: yfastud (---.cable.mindspring.com)
Date: July 26, 2006 03:56AM

he he... already give up that easy. did you check and see my sample cgi file run flawlessly here:

[testsite.jlbn.com]

so, it's not wamp's problem at all.

try as cyberspatium's suggestion, then post back here.

good luck

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: 30naa (194.225.103.---)
Date: July 26, 2006 02:14PM

When I was readind the old post I understand that the no one could use cgi scripts on wamp 5. and you couldn't help any one.
Thanks for your attention

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: yfastud (72.236.169.---)
Date: July 26, 2006 06:01PM

He he... what do you mean old post? what else can I say? Did you check my cgi files running on my wamp server yet?
[testsite.jlbn.com]
Are they worrking? If no, let me know. If yes, check your setting or coding. Remember, different server has different setup, your codes might work well in other servers, but when switching to wamp server, you do need to edit it a little bit to make it work. I've been through it and for god shake, I even post my codes there in case anyone wonder what might missing in their code and cause it not working right.
Anyway, try again harder with our suggestions, and post back here. Hope you have a good news this time.
Have fun.

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: CyberSpatium (67.170.181.---)
Date: July 26, 2006 10:46PM

I too have cgi and perl files running fine

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: sudeep (220.225.71.---)
Date: August 01, 2006 01:16PM

hello the 2nd last line says
" correct location to perl in the top line line of your perl files perl files, change them to

#!"C:\wamp\Apache2\cgi-bin\perl\bin\perl.exe"

means where exactly inside the perl folder ...?
which file...?

plz let me know
sudeep

Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: yfastud (72.236.169.---)
Date: August 01, 2006 01:40PM


Options: ReplyQuote
Re: How Can I make a valid cgi-bin directory
Posted by: yfastud (---.mia.bellsouth.net)
Date: August 13, 2006 03:32AM


Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


Sorry, only registered users may post in this forum.