From: Miguel H. <mt...@mt...> - 2004-01-03 02:36:35
|
> The script is Perl and the Apache server is running on an SGI IRIX > system. Here is a fuller extract from the access.log and error.log > files when I access the site using Safari (the same thing occurs with > Camino, I haven't tried Mozilla or IE yet): It would be good to try it on a platform other than Mac. > When using the perl CGI script (which gives the error): > >>From access.log: > > [02/Jan/2004:18:20:29 -0500] "GET /web-cgi-bin/JmolApplet.jar HTTP/1.1" > 500 614 [02/Jan/2004:18:20:29 -0500] "GET /web-cgi-bin/JmolApplet.jar > > >>From error.log > > [Fri Jan 2 18:20:29 2004] [error] (8)Exec format error: exec of > /usr/people/web/web-cgi-bin/JmolApplet.jar failed > [Fri Jan 2 18:20:29 2004] [error] [client 54.3.186.14] Premature end of > script headers: /usr2/people/web/web-cgi-bin/JmolApplet.jar OK ... I don't think that you should have the JmolApplet.jar in your cgi-bin directory. It looks to me like the web server is trying to exec the JmolApplet.jar file as though it is a cgi. Reread the status code in access.log (500 = Internal Server Error) and error.log I recommend that you use the additional applet attribute codebase="../myJmolSubdirectory" or codebase="somePathToTheJmolApplet" Note that this path is the path that will be seen from perspective of the browser, not from the filename. The other alternative is to just change the archive parameter to say archive="../somePath/JmolApplet.jar" But I recommend using codebase. > note that JmolApplet.jar exists in both /web/public_html/ and in > /web/web-cgi-bin/ and I've even given it 755 persmissions I suspect that the root of your web server is inside public_html. That is, end-users don't use URLs with public_html in the name. If this is the case, then I suggest that you create a subdirectory mkdir /usr/people/web/public_html/jmol and codebase="/jmol" put the JmolApplet.jar file into /jmol I am somewhat concerned that one of the log messages says /usr/people/web and the other says /usr2/people/web Not sure why that is ... web server config seems out of whack ... but that may be a minor issue. The primary problem is that you cannot put the JmolApplet.jar in your cgi-bin directory. This was helpful for me because I never thought about that restriction. Thanks for helping track it down. Miguel |