CGI-BIN Problems

Status
Not open for further replies.

ultimate

New Member
Messages
27
Reaction score
0
Points
0
I am having trouble running things from my cgi-bin. ex: http://ultimatevelocity.net/cgi-bin/test.cgi it gets a 404 error not found. ps i did set permissions to 755 and the path to perl is corrrect. What is wrong?

P.S. I can access cgi script under public_html directory and it will work, i just cant access files under cgi-bin

Username: ultimate

Thanks
 
Last edited:

shifeng

New Member
Messages
13
Reaction score
0
Points
0
i have the same problem too. I am trying to make the guestbook script work and everything is set correctly. I get the same error page.

Could someone please help us?
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
try saving the script as a perl file (*.pl).

Works for me. Also make sure you use strict for peace of mind.
 

ultimate

New Member
Messages
27
Reaction score
0
Points
0
No I cant even access a .html file out of that directory. It is not set up correctly I do believe.
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
When you say you cant access a html file outside of cg-bin, you mean the script cant access it or nothing can. So you cant get to an index page?

I have a few perl scripts runnning fine. A CMS lite that I made myself with perl and come tools.

The only problems I had with them where bad scripting(forgetting to define globals and syntax errors). They all run as a *.pl and none run as a *.cgi.

The CMS called PhaseONE is over 300 lines and has a few requiers and includes. It logs errors, clicks and so on to text files.
 

ultimate

New Member
Messages
27
Reaction score
0
Points
0
No, you misunderstood me. I can run everything fine outside of the cgi-bin. Even perl scripts. I just cannot access anything at all in the cgi-bin directory.
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
"P.S. I can access cgi script under public_html directory and it will work, i just cant access files under cgi-bin"

Thats not right ? ? ?

Corey is the only one I can think that could help in that regard.
What server are you on?
Edit:
hmm... did you change anything?
 
Last edited:

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
The only thing I can think of is post at the end of this thread with a link to an example of a cgi script running outside of the cgi-bin along with your hosting username.

When Corey does his run he will help you no doubt.
 
Status
Not open for further replies.
Top