Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Image not showing in apache
Old 02-05-2009, 06:56 PM Image not showing in apache
Super Talker

Posts: 132
Trades: 0
Let me start a new thread with this issue please, I am having problems viewing any images on the browser and don't know why so I am starting from scratch. I have placed an image titled "jesus.jpg" into a folder named "church" on my C drive, the relative path is

C:/mike'sdocs/websites/church

just to be sure I checked the image's properties and it confirms the image is a jpg file, I copied this image into Apache's htdocs folder where I placed the index file and this is all I am getting, the pic itself does not show, all I am seeing where the image should be is a rectangular bordered box on a transparent background with a small icon of a dog-eared page with 3 colored tiny symbols in it, what could be wrong here please? This is not an Apache issue, I was getting this same problem before just using Firefox's browser and I was told to install a webserver which is why I installed apache which is working fine as I can see any changes made to the text on my index page in Notepad. The code I am using is:

<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>


<img src="jesus.jpg" width="144" height="50" />

</body>
</html>
mikehende is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-05-2009, 09:08 PM Re: Image not showing in apache
Super Talker

Posts: 132
Trades: 0
BTW, it now shows the image fine with the method

File -> open -> browse to and select jesus.jpg

So what could possibly be the problem?
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-06-2009, 07:59 AM Re: Image not showing in apache
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
try src="/jesus.jpg"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-06-2009, 08:04 AM Re: Image not showing in apache
Super Talker

Posts: 132
Trades: 0
doesn't work, using that code all that appears on the browser is the code itself.
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-06-2009, 08:13 AM Re: Image not showing in apache
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You do need the rest of the "<img" element surrounding it
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-06-2009, 08:21 AM Re: Image not showing in apache
Super Talker

Posts: 132
Trades: 0
oop sorry but still using the code

<img src="/jesus.jpg">

still only shows the dog-eared page icon, maybe the only way for this to work is via a website?
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-06-2009, 10:25 AM Re: Image not showing in apache
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Some where along the way the image isn't where the server expects to find it.

does it show up for http://localhost/jesus.jpg ?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-06-2009, 10:37 AM Re: Image not showing in apache
Super Talker

Posts: 132
Trades: 0
no, it doesn't, I have been seeking help on the apache forums for this, so far nothing is working.
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-06-2009, 11:12 AM Re: Image not showing in apache
Skilled Talker

Posts: 77
Trades: 0
Try right-clicking on the broken image to view its properties -- if the image is being called from some place other than where you think it is being called, then maybe you can pinpoint the issue that way. It's a long shot, but based on what you've already tried -- I can't really see what the issue is.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
whooligan is offline
Reply With Quote
View Public Profile
 
Old 02-06-2009, 11:27 AM Re: Image not showing in apache
Super Talker

Posts: 132
Trades: 0
Tried it, the location is correct.
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-06-2009, 03:14 PM Re: Image not showing in apache
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
What about that apostrophe in "mike'sdocs" ?? Try losing that and see what happens. Also, check to make sure the CASE for your folders and file names is EXACT, Apache is very picky about that.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-06-2009, 04:03 PM Re: Image not showing in apache
Super Talker

Posts: 132
Trades: 0
I changed the folders to

C:/websites/church

to keep it simple and same problem
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-06-2009, 04:07 PM Re: Image not showing in apache
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And is that where Apache serves it pages from?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-06-2009, 04:58 PM Re: Image not showing in apache
Super Talker

Posts: 132
Trades: 0
no, the images and index files are located in the same htdocs folder, when I click on the image properties using Apache's browser, it shows the correct file path but strange thing is the Apache error logs the file as "missing" so this is what is baffling the Apache support people.
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-06-2009, 05:25 PM Re: Image not showing in apache
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Post the code from the "VirtualHosts" entry in httpd.conf
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-06-2009, 05:27 PM Re: Image not showing in apache
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Also, check to make sure the CASE for your folders and file names is EXACT, Apache is very picky about that.
It's *nix that is case sensitive not Apache.
Apache when running on Windows isn't case sensitive.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-06-2009, 05:48 PM Re: Image not showing in apache
Super Talker

Posts: 132
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Post the code from the "VirtualHosts" entry in httpd.conf
Sorry, have no idea what you are referring to here?
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-07-2009, 07:55 AM Re: Image not showing in apache
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I'm trying to establish where the Apache websites root folder is pointing to, because what is happening is the image ISN'T in the same location that the image src is pointing to.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-07-2009, 08:27 AM Re: Image not showing in apache
Super Talker

Posts: 132
Trades: 0
Makes sense but then if that was the case why does changing the text in the index file work since the index file is in the very same htdocs folder? Also, can you point me to the "virtualhosts entry" please, I don't know where to find the httpd.conf?

Post the code from the "VirtualHosts" entry in httpd.conf
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-07-2009, 09:36 AM Re: Image not showing in apache
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
It's *nix that is case sensitive not Apache.
Ok. I wasn't thinking of Apache running on Windows, but in an actual server/hosting environment. When I first put a site on an Apache server, that case sensitivity thing had me going for a bit until I realized what was actually happening.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Image not showing in apache

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.93686 seconds with 12 queries