Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: CGI display a gif

by indie_campbell (Novice)
on Jun 06, 2005 at 16:15 UTC ( [id://463970]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI display a gif
in thread CGI display a gif

this directs me the right location http://localhost/cgi-bin/1.gif but reports an 500 internal server error??

Replies are listed 'Best First'.
Re^3: CGI display a gif
by jhourcle (Prior) on Jun 06, 2005 at 17:00 UTC

    Which is what I suspected. (well, I actually expected a different URL, but I suspected the 500 error, or possibly a 403 (access forbidden, if it was trying to execute a file that didn't have execute permissions) )

    To confirm that bassplayer's and my suspicions are correct, you'll want to continue with the rest of my suggestion:

    If that wasn't useful, check your web server's error logs.

    You really should check your webserver's error log, as there's most likely something more informative in there. (well, maybe not, as it might throw some misleading errors if it's trying to execute something that's not an executable file.)

Re^3: CGI display a gif
by bassplayer (Monsignor) on Jun 06, 2005 at 16:32 UTC
    Perhaps it's trying to execute the image instead of rendering it. The cgi-bin/ directory is special. :-)

    bassplayer

Re^3: CGI display a gif
by ikegami (Patriarch) on Jun 06, 2005 at 16:33 UTC
    Follow bassplayer's advice. Some servers treat everything in /cgi-bin (and subdirectories?) as scripts. Executing a .gif won't definitely result in a 500 error. You need to move your images outside of /cgi-bin.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://463970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found