|
|
#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"; |
|
|
|
|
|
#2 (permalink) |
|
URB4N 5K1LLZ
Super #1
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. =)
|
|
|
|
|
|
#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 :-) |
|
|
|
|
|
#4 (permalink) |
|
Searcher
Surpass Staff
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. |
|
|
|
| This user thanks Kayla for this great post! | Bestfoot (February 8th, 2008) |
|
|
#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.
|
|
|
|