Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   cgi issue (https://www.warriorforum.com/programming/25826-cgi-issue.html)

cypherslock 5th November 2008 02:03 PM

cgi issue
 
I'm trying to install a cgi script from the ebook traffic signups and sales. I've uploaded it in ascii and have chmoded to 755. When I go to start it up via my web browser (i'm in firefox 3 on ubuntu) it asks me what it wants to do, according to the directions I should be getting a login page where I can configure everything. I'm on 000webhost.

Thanks for any help

it is at www.nocahsnecessary.com/cgi-bin/classifieds.cgi

jonhel 5th November 2008 03:45 PM

Re: cgi issue
 
I can't get any pages to display from your site, even the homepage. Just get a page cannot be displayed error.

jonhel 5th November 2008 03:47 PM

Re: cgi issue
 
Are you certain that the file extension is .cgi?

cypherslock 5th November 2008 04:11 PM

Re: cgi issue
 
sorry about that I just realized the typo. Yes it is a .cgi The site is nocashnecessary.com

jonhel 5th November 2008 04:21 PM

Re: cgi issue
 
I am not sure what is the problem with this. My knowledge of cgi is almost non-existent.

For me, both Firefox and IE 7.0 do not recognise the file type for some reason.

Techie Turtle 5th November 2008 04:29 PM

Re: cgi issue
 
Is this your path to perl: /usr/bin/perl ??

cypherslock 5th November 2008 04:38 PM

Re: cgi issue
 
Er....the instructions didn't mention anything regarding that. I just created a cgi-bin directory and plunked it in there. My host supports cgi, perl etc. I must admit I'm clueless and could really use the help.

rwil02 5th November 2008 04:53 PM

Re: cgi issue
 
I get a "download this file" prompt.

Which means that the .cgi extension is being treated as static content rather than being processed.

So you are missing a configuration option somewhere.

Can you tell us that the server is (apache vs iis, etc)

Techie Turtle 5th November 2008 04:53 PM

Re: cgi issue
 
When you log in to your website using your FTP program, do you see a cgi-bin folder? It should be in the public_html (root directory). You mentioned you had to create one but most hosts have a /cgi-bin directory already in place.

As far as your perl path, log in to your cPanel and look for your server specs. Some cPanels skins show all kinds of good information like php build, path to mail, path to perl, etc. If you don't see it on your cPanel sidebar, look through your web host's FAQ's. It bound to be there. :)

Techie Turtle 5th November 2008 04:57 PM

Re: cgi issue
 
Looks like it's on apache

rwil02 5th November 2008 07:26 PM

Re: cgi issue
 
My guess would be that the cgi-bin folder has not been set to allow execution. Not sure how you would enable that though.

Techie Turtle 5th November 2008 07:29 PM

Re: cgi issue
 
Quote:

Originally Posted by rwil02 (Post 229917)
My guess would be that the cgi-bin folder has not been set to allow execution. Not sure how you would enable that though.

CHMOD 775 or 777?

jonhel 5th November 2008 08:31 PM

Re: cgi issue
 
Also does the script have a shebang line at the top with the path - e.g.
#!/usr/bin/perl

Techie Turtle 5th November 2008 08:35 PM

Re: cgi issue
 
Quote:

Originally Posted by jonhel (Post 230015)
Also does the script have a shebang line at the top with the path - e.g.
#!/usr/bin/perl

It does, I checked.

cypherslock 5th November 2008 10:01 PM

Re: cgi issue
 
I've set it (file and folder) to 755


All times are GMT -6. The time now is 09:13 AM.