Perl script not enterpreting images after moving site to different host

C

C Drake

Hi, I have this shopping cart script which was woking fine on one
server (hosted at Spenix.com). When I moved the website to another
host's server (at Forgednetworks.com) the script works ok, except that
none of my images show up in the html pages it creates. I have checked
that all the file and folder permissions are set the same as before
and I have not altered the script. And yes, I transferred the image
files in binary. The images are located in the same directory as the
script (a subdirectory of the cgi-bin).

Can anyone suggest why this might be? Could it be something to do with
different Perl versions of different OS used on the hosting server?

I think I encountered this problem once before, but I can't remember
how it was resolved.

Thank you,
C Drake
 
S

Scott Bryce

C said:
Hi, I have this shopping cart script which was woking fine on one
server (hosted at Spenix.com). When I moved the website to another
host's server (at Forgednetworks.com) the script works ok, except that
none of my images show up in the html pages it creates.

Then this is probably not a Perl problem.
I have checked
that all the file and folder permissions are set the same as before
and I have not altered the script. And yes, I transferred the image
files in binary. The images are located in the same directory as the
script (a subdirectory of the cgi-bin).

Move the images out of the cgi-bin directory. I suspect that the server
is attempting to run them as scripts rather than serve them as images.

But that is only a guess. Your problem is not a Perl problem. It is
either a server configuration problem, or an HTML problem. The error
logs will give you an idea what is happening. If moving the images does
not solve the problem, post your question, along with any relevant error
messages from the error logs, into a group that deals with CGI.
 
C

C Drake

Then this is probably not a Perl problem.


Move the images out of the cgi-bin directory. I suspect that the server
is attempting to run them as scripts rather than serve them as images.
But that is only a guess. Your problem is not a Perl problem. It is
either a server configuration problem, or an HTML problem. The error
logs will give you an idea what is happening. If moving the images does
not solve the problem, post your question, along with any relevant error
messages from the error logs, into a group that deals with CGI.

Hi Scott,
Many thanks for the input. I emailed the host's tekkie and he got the
images to show up by moving them to my root directory and changing the
script's image refs to (e.g.): <IMG SRC="/image.jpg">

I guess that makes it something to do with the server or its OS,
right?

Thanks again,
C Drake
 
S

Scott Bryce

C said:
Many thanks for the input. I emailed the host's tekkie and he got the
images to show up by moving them to my root directory and changing the
script's image refs to (e.g.): <IMG SRC="/image.jpg">

I guess that makes it something to do with the server or its OS,
right?

At this point, we are off topic for this newsgroup, but, yes, it had to
do with the server configuration. The server is configured to treat
anything in the cgi-bin directory as an executable.

BTW, the Perl script is not interpreting your images as anything. It is
simply sending HTML to the browser. The browser is requesting the images
from the server, and the server is trying to execute the images.

If you want to discuss this farther, you should post to
comp.infosystems.www.authoring.cgi where this discussion would be on-topic.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top