Perl script not enterpreting images after moving site to different host

Discussion in 'Perl Misc' started by C Drake, Sep 4, 2006.

  1. C Drake

    C Drake Guest

    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
     
    C Drake, Sep 4, 2006
    #1
    1. Advertising

  2. C Drake

    Scott Bryce Guest

    Re: Perl script not enterpreting images after moving site to differenthost

    C Drake wrote:
    > 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.
     
    Scott Bryce, Sep 4, 2006
    #2
    1. Advertising

  3. C Drake

    C Drake Guest

    On Mon, 04 Sep 2006 12:30:33 -0600, Scott Bryce
    <> wrote:

    >C Drake wrote:
    >> 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.


    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
     
    C Drake, Sep 4, 2006
    #3
  4. C Drake

    Scott Bryce Guest

    Re: Perl script not enterpreting images after moving site to differenthost

    C Drake wrote:

    > 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.
     
    Scott Bryce, Sep 4, 2006
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dpackwood
    Replies:
    3
    Views:
    1,816
  2. tamer kavlak
    Replies:
    0
    Views:
    413
    tamer kavlak
    Jan 13, 2005
  3. Replies:
    1
    Views:
    351
    George Ter-Saakov
    Nov 7, 2007
  4. Tim
    Replies:
    5
    Views:
    122
    Roland Hall
    Feb 15, 2005
  5. inetquestion
    Replies:
    0
    Views:
    155
    inetquestion
    May 6, 2009
Loading...

Share This Page