my support experiance with 365ezone.com
Q:
I have simple "Hello World" perl script placed in ~/public_html/cgi-bin/ and ~/public_html/scgi-bin/
file is set to executable, but....
request for file in cgi-bin returns 404 error and request for script in scgi-bin returns script itself as plain text
why is that happening?

A:
And in general I believe the scripts do not get server directly from that file path public_html/cgi-bin/ (the files should be placed there but they get server from another path).
I see the permissions are incorrect for a suPHP system. Checking if that is the issue.

It works when running it via perl on the server:


root@prime [/home/coolscri/public_html/cgi-bin]# perl /home/coolscri/public_html/cgi-bin/test.pl
Content-type: text/html

<H1>Hello World</H1>
How are you trying to run it? As a browser will not run it directly

As far as running perl it would be done with the script itself and it does work in that location. To run any test that would need to server it up in some other page that then calls that script from that location if that makes sense.

But you will get a 404 errors doing this - http://domain.com/cgi-bin/test.pl
As a browser can not serve it from that location
file is set to 755 btw
i'm placing it in "Geek News and Humour" since it can't be classified as anything but a joke

if you guys have more, please share