Viewing Images on a Linux Server...?

Discussion in 'HTML & Website Design' started by ShaunG, Apr 24, 2008.

  1. #1
    There is nothing that you must change to view an image on a linux server is there? I had an xhtml template (no asp or programming of any kind) working fine on a windows based server and moved hosting to linux which I have never used before and all my images are not showing up. The URL is correct to the images...wtf? Support told me to make sure my page is compatible with linux servers?? A website with no programming involved (all html and css) should be able to be seen the same no matter what operating system right?
     
    ShaunG, Apr 24, 2008 IP
  2. Kirkbride

    Kirkbride Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The names of the image files might be the issue. Linux is case-sensitive while Windows is not.

    On a Linux server Monster.jpg and monster.jpg are not the same thing. So make sure your img tags use the correct file name. If the file name uses an uppercase letter, your img tag should use an uppercase letter too, and the same goes for lower case letters.

    You don't have to worry about that on a Windows server.
     
    Kirkbride, Apr 24, 2008 IP
  3. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #3
    Another thing to look out for is spaces - Linux don't like 'em. If you're pointing to an image like this: <img src="My Image.jpg"> change it to <img src="My%20Image.jpg">. You have to encode the space. And kirkbride is right, case is sensitive also.
     
    itcn, Apr 25, 2008 IP
  4. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #4
    When you say the urls are correct... have you typed them in exactly as they show in your XHTML, and do you then see a picture in your browser? If it's a case or space problem as mentioned above, then you won't. That's how I catch even typos in my urls. All my stuff is hosted on a Debian (linux) server.
     
    Stomme poes, Apr 25, 2008 IP