Images not being rendered on Production Server

Discussion in 'Apache' started by nexar, Mar 29, 2011.

  1. #1
    Hi I have the following html which I use as a banner.
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    
    body {
    	margin-top: 0px;
    	margin-left: 0px;
    	margin-right: 0px;
    	overflow:hidden;
    }
    </style>
    </head>
    
    <body>
    Test
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="left"><img src="/images/gttlogo.gif" border="0"></td>
        <td align="right" valign="bottom"><img src="/images/headerAnimation.gif"></td>
    
      </tr>
    </table>
    </body>
    </html>
    
    Code (markup):
    On my development server the images render correctly. However on the Production server no images appear. I'm using Apache2 with Phusion Passenger serving a Rails web site. The directory structures and permissions on the 2 servers are identical. I've done the 'basic' things like re-starting and re-loading Apache as well as re-booting the Production Server. That is where my knowledge of Apache ends.

    Please can anybody help me understand what might be going wrong and better still how to solve it.

    Thanks in advance for all help.

    Purvez
     
    nexar, Mar 29, 2011 IP
  2. WoRLDLiFE

    WoRLDLiFE Peon

    Messages:
    116
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    check that "images" folder have right permission set for accessing.
     
    WoRLDLiFE, Mar 29, 2011 IP
  3. nexar

    nexar Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The permissions are:
    drwxr-xr-x for images and the same for it's parent public.

    That's what is puzzling me.

    Any other ideas?
     
    nexar, Mar 29, 2011 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    Hello there,

    Try taking the first forward slash out:

    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    
    body {
    	margin-top: 0px;
    	margin-left: 0px;
    	margin-right: 0px;
    	overflow:hidden;
    }
    </style>
    </head>
    
    <body>
    Test
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="left"><img src="images/gttlogo.gif" border="0"></td>
        <td align="right" valign="bottom"><img src="images/headerAnimation.gif"></td>
    
      </tr>
    </table>
    </body>
    </html>
    Code (markup):
    Are both servers the same operating system as well?

    Chris
     
    RHS-Chris, Mar 29, 2011 IP
  5. nexar

    nexar Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi Chris

    Thanks for your reply but I thought I had posted to say that I had solved this. I had checked all permissions up the directory chain BUT had not checked the individual images permissions. They were the culprits .... Aaargh!!

    Any way thanks for your input and yes the 2 servers Op Sys are the same.

    Purvez
     
    nexar, Mar 30, 2011 IP