cgi-bin - 404

Status
Not open for further replies.

deepwater

New Member
Messages
12
Reaction score
0
Points
0
cPanel: dwadmin
domain: deepwater.x10hosting.com
package: free/adfree

issue: 404 when trying to access .cgi scripts, or anything else, in /cgi-bin/

example url: http://deepwater.x10hosting.com/cgi-bin/ksearch/indexer.cgi

attempted resolutions: i read quite a few forum threads on this issue and nothing has helped. i'm not overly familier with cgi, so there ya have it.

i did make sure the path to pearl was correct in the scripts (#!/usr/bin/perl). .htaccess are default (0 bytes). i'm pretty sure my forum and hosting accounts are linked.
 

alcramer

New Member
Messages
53
Reaction score
0
Points
0
I had problems with 404's on cgi-bin access too. After I got the accounts linked, I 1. moved the scripts up 1 level, to my public_html directory; 2. made sure their file permissions were set to 755; 3. tweaked my html form code to access the new locations. Eveything worked like a charm.

You might want to try working with a super-simple script (I used a little one that just print enviroment vars). That eliminates a whole set of possible errors. BTW-- an obscure source of errors in Perl scripts is line-feed conventions: some sites will give you a 404 if the system wants unix linefeed conventions (\n), and your scripts use dos conventions (\r\n).

Good luck!
Al
 

deepwater

New Member
Messages
12
Reaction score
0
Points
0
thanks for the help, but i still can't get it to work. if i move the files to public_html, i can get the scripts to partially work (i did that before as well), but not completely. i can't get anything to run in the cgi-bin. i had problems with Unix LF before (i edit on windows), and i checked that again, making sure to format the files LF, but that's not the problem this time.
 

alcramer

New Member
Messages
53
Reaction score
0
Points
0
Sounds like a frustrating day. Boy, am I familiar with those!

If I can ask an obvious question: is this a deployment problem, or is it a bug in your scripts? Either will give you a 404.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I changed some settings for your account, can you let me know if it works now?

-Corey
 

kaixi

New Member
Messages
27
Reaction score
0
Points
0
cPanel's CGI Mail returns a 404 error although the path is correct??
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Can you give me a link(path) to the file so I can see the 404 error?
 
Status
Not open for further replies.
Top