qwebirc98809 | hi | 02:30 |
---|---|---|
qwebirc98809 | someone online? | 02:30 |
jea | Hello qwebirc98809 | 02:30 |
qwebirc98809 | great! | 02:30 |
qwebirc98809 | i need help with unbunto apache | 02:30 |
jea | Ok. What version of ubuntu? | 02:31 |
qwebirc98809 | ubunto studio -> Apche runs but it shows no images | 02:31 |
jea | ok. So when you visit the web address, you get the default apache page? | 02:33 |
qwebirc98809 | yes, thats all OK, but images like <img scr ....> will not be shown. the same image as background works | 02:34 |
jea | ok. is there a blank box on the page for it? | 02:34 |
qwebirc98809 | no, in firefox the is a wlid card in chrome is nothing | 02:35 |
jea | ok. i guess the first thing is to ensure the url for the image is correct | 02:36 |
qwebirc98809 | it is | 02:36 |
jea | so if you browse directly to the image, what happens? | 02:36 |
qwebirc98809 | it's shown | 02:36 |
jea | ok. what is the HTML for the <img> that you are using? | 02:37 |
qwebirc98809 | <img scr="localhost/htdocs/kelvin/termine.jpg" /> | 02:37 |
qwebirc98809 | the *,php is in /kelvin | 02:38 |
jea | is it 'scr' or 'src'? because an image tag needs to be '<img src="blah.jpg" >' | 02:38 |
qwebirc98809 | ups, sorry ... it's src | 02:40 |
jea | if you go to "http://localhost/htdocs/kelvin/termine.jpg" in a browser, what do you see? | 02:41 |
jea | because I suspect it should just be "http://localhost/kelvin/termine.jpg" | 02:41 |
qwebirc98809 | The requested URL /kelvin/termine.jpg" was not found on this server. | 02:41 |
jea | was that for "http://localhost/htdocs/kelvin/termine.jpg" ? | 02:42 |
qwebirc98809 | same | 02:42 |
qwebirc98809 | localhost/htdocs/kelvin/termine.jpg | 02:42 |
qwebirc98809 | works | 02:42 |
jea | ok | 02:42 |
jea | so just to check, going to "localhost/htdocs/kelvin/termine.jpg" shows you the image, and going to "localhost/kelvin/termine.jpg" gives a error "requested URL is not found..." | 02:43 |
qwebirc98809 | check | 02:44 |
jea | ok | 02:44 |
jea | in chrome, can you open the developer tools | 02:45 |
jea | you can right click anywhere on the page, and go "inspect element" | 02:45 |
qwebirc98809 | <img src="localhost/htdocs/kelvin/termine.jpg"> | 02:46 |
jea | ok | 02:47 |
jea | At the top of the Developer Tools, there is a Console tab | 02:47 |
jea | is there anything written in it | 02:47 |
jea | (it might be good to refresh the page, and see if anything comes up) | 02:47 |
qwebirc98809 | order-collapse: separate; color: rgb(0, 0, 0); display: inline-block; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; height: 20px; line-height: normal; text-align: center; white-space: normal; width: 18px; Styles :active:hover :focus:visited | 02:48 |
qwebirc98809 | i quess this is the wild-card | 02:48 |
qwebirc98809 | the image should be much bigger | 02:49 |
jea | um, that is from the styles section, not the Console tab | 02:49 |
jea | is this website public online, or just local to you? | 02:50 |
qwebirc98809 | only local | 02:50 |
qwebirc98809 | Failed to load resource: the server responded with a status of 404 (Not Found) | 02:50 |
jea | ok | 02:51 |
jea | right, that is what i was expecting | 02:51 |
qwebirc98809 | ? | 02:51 |
jea | what is the url shown for the resource that failed to load | 02:51 |
qwebirc98809 | ok | 02:51 |
qwebirc98809 | http://127.0.0.1/htdocs/kelvin/localhost/htdocs/kelvin/termine.jpg | 02:52 |
jea | ok, there is your problem | 02:52 |
qwebirc98809 | i see | 02:52 |
jea | in your <img> tag, you are putting a relative path | 02:52 |
jea | so it build that url | 02:52 |
jea | because you are viewing "http://localhost/htdocs/kelvin", the image tag should be | 02:53 |
jea | <img src="termine.jpg"> | 02:53 |
jea | you don't need all the rest of it | 02:53 |
qwebirc98809 | oh god! | 02:54 |
qwebirc98809 | what the f... | 02:54 |
jea | is it working after the change? | 02:54 |
qwebirc98809 | yes | 02:54 |
jea | good | 02:55 |
qwebirc98809 | 5 hours | 02:55 |
qwebirc98809 | thanks a lot | 02:55 |
jea | so the main thing is to know how web links work, for src and href | 02:55 |
jea | if you have a link that is "something/else/file.jpg", it is relative to the current location | 02:56 |
jea | if it is "/path/to/file.jpg", the link is relative to the root (ie. http://localhost/ in this case) | 02:57 |
qwebirc98809 | yes | 02:57 |
jea | the third type is a full path like "http://localhost/path/to/file.jpg" | 02:57 |
jea | so basically you just had it mixed up a bit | 02:57 |
jea | if you added a "http://" to the front of what you had, it would also work | 02:58 |
qwebirc98809 | U are a god! now i can go to bed ;) | 02:58 |
jea | out of curiosity, what country are you from? | 02:59 |
qwebirc98809 | germany / bonn | 02:59 |
qwebirc98809 | its 5 a clock | 02:59 |
jea | cool | 02:59 |
jea | how did you find #ubuntu-au? | 02:59 |
qwebirc98809 | freenet-server | 03:00 |
qwebirc98809 | freenet is a 'german' provider | 03:00 |
jea | ok. Well, from the Australian Ubuntu team, we say glad we could help | 03:00 |
qwebirc98809 | i'm glad 2 | 03:01 |
qwebirc98809 | good night | 03:01 |
jea | night | 03:01 |
jea | I would love to know how Ubuntu Australia comes up as a suggested help site | 03:02 |
jea | anyway, at least the problem was sorted | 03:02 |
Noskcaj | just rad the backlog, we are a german channel now? | 04:09 |
Noskcaj | *read | 04:10 |
jea | it would appear some people think we are | 04:22 |
jea | I wonder if they think the au is for Austria, instead of Australia | 04:22 |
Noskcaj | jea, maybe. | 04:45 |
dionysios | hello all | 10:46 |
jea | Hello dionysios | 10:48 |
dionysios | hey jea | 10:48 |
dionysios | can anyone here tell me if i can source laptops without os in australia | 10:49 |
jea | I suspect you would have a hard time getting one | 10:50 |
jea | but I haven't tried myself | 10:50 |
dionysios | surely i asume if not here in australia can source os | 10:51 |
dionysios | i find it frustrating | 10:52 |
jea | the cost of windows is next to nothing anyway | 10:52 |
jea | because MS sells is very cheaply to OEMs | 10:52 |
dionysios | yeah ms has pushed everyone out of the market | 10:57 |
dionysios | i just know some manufacturers install ubuntu on laptops but pretty certain os only | 10:59 |
jea | i think all laptops will come with an os of some sort | 11:00 |
jea | jared: i think michael is getting a bit too held up in trying to organise the translations, when he could just be translating | 12:26 |
jared | jea: organising is one thing, reinventing the wheel is a bit over the top | 12:32 |
jea | yes, very much | 12:33 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!