Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 5th Nov 2008, 02:03 PM   #1
Always be learning
War Room Member
 
cypherslock's Avatar
 
Join Date: 2007
Location: Kitchener, Ontario, Canada.
Posts: 3,087
Thanks: 531
Thanked 732 Times in 553 Posts
Blog Entries: 2
Default
cgi issue
Share on: 
fb share twitter share gplus share more share

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
cypherslock is offline  
Unread 5th Nov 2008, 03:45 PM   #2
HyperActive Warrior
War Room Member
 
jonhel's Avatar
 
Join Date: 2008
Location: Perth, Western Australia
Posts: 238
Thanks: 3
Thanked 17 Times in 17 Posts
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

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

Warrior For Hire - Freelance web developer/troubleshooter/fixer etc. - Affordable website help

Last edited on 5th Nov 2008 at 03:45 PM. Reason: whoops, just noticed the typo in your URL will look again
jonhel is offline  
Unread 5th Nov 2008, 03:47 PM   #3
HyperActive Warrior
War Room Member
 
jonhel's Avatar
 
Join Date: 2008
Location: Perth, Western Australia
Posts: 238
Thanks: 3
Thanked 17 Times in 17 Posts
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

Are you certain that the file extension is .cgi?

Warrior For Hire - Freelance web developer/troubleshooter/fixer etc. - Affordable website help
jonhel is offline  
Unread 5th Nov 2008, 04:11 PM   #4
Always be learning
War Room Member
 
cypherslock's Avatar
 
Join Date: 2007
Location: Kitchener, Ontario, Canada.
Posts: 3,087
Thanks: 531
Thanked 732 Times in 553 Posts
Blog Entries: 2
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

sorry about that I just realized the typo. Yes it is a .cgi The site is nocashnecessary.com
cypherslock is offline  
Unread 5th Nov 2008, 04:21 PM   #5
HyperActive Warrior
War Room Member
 
jonhel's Avatar
 
Join Date: 2008
Location: Perth, Western Australia
Posts: 238
Thanks: 3
Thanked 17 Times in 17 Posts
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

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.

Warrior For Hire - Freelance web developer/troubleshooter/fixer etc. - Affordable website help
jonhel is offline  
Unread 5th Nov 2008, 04:29 PM   #6
<><
 
Techie Turtle's Avatar
 
Join Date: 2007
Location: Texas
Posts: 309
Thanks: 27
Thanked 42 Times in 32 Posts
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

Is this your path to perl: /usr/bin/perl ??
Techie Turtle is offline  
Unread 5th Nov 2008, 04:38 PM   #7
Always be learning
War Room Member
 
cypherslock's Avatar
 
Join Date: 2007
Location: Kitchener, Ontario, Canada.
Posts: 3,087
Thanks: 531
Thanked 732 Times in 553 Posts
Blog Entries: 2
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

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.
cypherslock is offline  
Unread 5th Nov 2008, 04:53 PM   #8
HyperActive Warrior
War Room Member
 
rwil02's Avatar
 
Join Date: 2005
Location: Auckland, New Zealand.
Posts: 235
Thanks: 4
Thanked 18 Times in 16 Posts
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

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)

Roger Willcocks
L-Space Design
Please vote to help me win a 3kW solar array
rwil02 is offline  
Unread 5th Nov 2008, 04:53 PM   #9
<><
 
Techie Turtle's Avatar
 
Join Date: 2007
Location: Texas
Posts: 309
Thanks: 27
Thanked 42 Times in 32 Posts
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

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 is offline  
Unread 5th Nov 2008, 04:57 PM   #10
<><
 
Techie Turtle's Avatar
 
Join Date: 2007
Location: Texas
Posts: 309
Thanks: 27
Thanked 42 Times in 32 Posts
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

Looks like it's on apache
Techie Turtle is offline  
Unread 5th Nov 2008, 07:26 PM   #11
HyperActive Warrior
War Room Member
 
rwil02's Avatar
 
Join Date: 2005
Location: Auckland, New Zealand.
Posts: 235
Thanks: 4
Thanked 18 Times in 16 Posts
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

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

Roger Willcocks
L-Space Design
Please vote to help me win a 3kW solar array
rwil02 is offline  
Unread 5th Nov 2008, 07:29 PM   #12
<><
 
Techie Turtle's Avatar
 
Join Date: 2007
Location: Texas
Posts: 309
Thanks: 27
Thanked 42 Times in 32 Posts
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

Originally Posted by rwil02 View Post

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?
Techie Turtle is offline  
Unread 5th Nov 2008, 08:31 PM   #13
HyperActive Warrior
War Room Member
 
jonhel's Avatar
 
Join Date: 2008
Location: Perth, Western Australia
Posts: 238
Thanks: 3
Thanked 17 Times in 17 Posts
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

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

Warrior For Hire - Freelance web developer/troubleshooter/fixer etc. - Affordable website help
jonhel is offline  
Unread 5th Nov 2008, 08:35 PM   #14
<><
 
Techie Turtle's Avatar
 
Join Date: 2007
Location: Texas
Posts: 309
Thanks: 27
Thanked 42 Times in 32 Posts
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

Originally Posted by jonhel View Post

Also does the script have a shebang line at the top with the path - e.g.
#!/usr/bin/perl
It does, I checked.
Techie Turtle is offline  
Unread 5th Nov 2008, 10:01 PM   #15
Always be learning
War Room Member
 
cypherslock's Avatar
 
Join Date: 2007
Location: Kitchener, Ontario, Canada.
Posts: 3,087
Thanks: 531
Thanked 732 Times in 553 Posts
Blog Entries: 2
Default
Re: cgi issue
Share on: 
fb share twitter share gplus share more share

I've set it (file and folder) to 755
cypherslock is offline  
Closed Thread


Bookmarks

Tags
cgi, issue


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 08:57 AM.