On Fri, Aug 13, 2004 at 05:25:01PM -0700, Havens, Peter wrote:
: I did these same steps on both my Windows and my LINUX box but I keep
: getting an error 500 on my LINUX box.
: [snip]
: There error seems to imply that the cgi file that I am trying to run
: does not exist.  I have validated its location and the permissions to
: the file are wide open.
: 
: java.io.IOException: java.io.IOException:
: "/opt/hpwebadmin/webapps/mxhelp/WEB-INF/cgi/namazucgi": not found

You say the perms are "wide open" on the file -- specifically, what are
they?  Is the file executable?

What's the first line of the script?  Is it

        #!/path/to/your/perl

(where the path is "/usr/bin/perl" under most default Linux installs)

Windows and Linux execute scripts in different ways; the former
associates a file extension with an executable, whereas the latter sets
the interpreter in the script itself.

Try to run the script from the commandline.  If the executable
referenced by the magic number (aka shebang, aka "#!") isn't there,
you'll get the "file not found" error.

I haven't run CGI under Tomcat 4 but I recall in Tomcat 5 you can
expressly state which interpreter to use in the <Context> element.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to