icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old January 18th, 2008, 11:07 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2006
26 posts
Gave thanks: 3
Thanked 0 times
cgi-bin not working

I am on pass51 reseller. I am trying to get a cgi-bin working. When I create my account type it permits cgi and the system automatically creates a cgi-bin.

I put a hello world script in that directory (ASCII upload) and chmod to 755 and it won't run. It tries to give me a 404 page (which is missing as well).

Here is the script:
Code:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<H1>Hello World</H1>\n";
Bestfoot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 18th, 2008, 11:33 AM   #2 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,653 posts
Gave thanks: 81
Thanked 128 times
Hmm, I'm not sure what the problem can be since there is already a cgi-bin installed? I would suggest submitting a ticket to support. =)
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 18th, 2008, 11:40 AM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2006
26 posts
Gave thanks: 3
Thanked 0 times
ok did a support ticket

I mean it should work, right?

I by the way found the cgi center at the bottom and if I enable scgi-bin and load it in there, it works. But doing so would upset all of my links to domain.com/cgi-bin/whatever.cgi
so that is hardly my favorite idea to solve the problem.

Interestingly clicking on that link enables the scgi-bin, but there is no disable it button I can find?

Maybe the server just needs a kick or something to say parse files with extension .cgi or .pl or something. I believe it should, but maybe something got jostled :-)
Bestfoot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 18th, 2008, 1:21 PM   #4 (permalink)
Searcher
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,514 posts
Gave thanks: 936
Thanked 788 times
But why are you using CGI, PHP is more fun? Just a curious question. :x
__________________
Follow Surpass on Twitter and Facebook
Check out interesting finds on the Surpass Blog
.... it's coming.


Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks Kayla for this great post!
Bestfoot (February 8th, 2008)
Old February 8th, 2008, 11:31 AM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2006
26 posts
Gave thanks: 3
Thanked 0 times
I use php a lot of the time -- it is fun (and confusing sometimes too). This was for a resold account and the user has a cgi script that they like in perl. So not my call on this one.
Bestfoot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 8th, 2008, 1:21 PM   #6 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,218 posts
Gave thanks: 18
Thanked 86 times
Make sure you are chmodding the files 0755 so they are executable.
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

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