/srv/irclogs.ubuntu.com/2013/05/19/#ubuntu-au.txt

qwebirc98809hi02:30
qwebirc98809someone online?02:30
jeaHello qwebirc98809 02:30
qwebirc98809great!02:30
qwebirc98809i need help with unbunto apache02:30
jeaOk. What version of ubuntu?02:31
qwebirc98809ubunto studio -> Apche runs but it shows no images02:31
jeaok. So when you visit the web address, you get the default apache page?02:33
qwebirc98809yes, thats all OK, but images like <img scr ....> will not be shown. the same image as background works 02:34
jeaok. is there a blank box on the page for it?02:34
qwebirc98809no, in firefox the is a wlid card in chrome is nothing02:35
jeaok. i guess the first thing is to ensure the url for the image is correct02:36
qwebirc98809it is02:36
jeaso if you browse directly to the image, what happens?02:36
qwebirc98809it's shown02:36
jeaok. what is the HTML for the <img> that you are using?02:37
qwebirc98809<img scr="localhost/htdocs/kelvin/termine.jpg" />02:37
qwebirc98809the *,php is in /kelvin02:38
jeais it 'scr' or 'src'? because an image tag needs to be '<img src="blah.jpg" >'02:38
qwebirc98809ups, sorry ... it's src 02:40
jeaif you go to "http://localhost/htdocs/kelvin/termine.jpg" in a browser, what do you see?02:41
jeabecause I suspect it should just be "http://localhost/kelvin/termine.jpg"02:41
qwebirc98809The requested URL /kelvin/termine.jpg" was not found on this server.02:41
jeawas that for "http://localhost/htdocs/kelvin/termine.jpg" ?02:42
qwebirc98809same02:42
qwebirc98809localhost/htdocs/kelvin/termine.jpg02:42
qwebirc98809works02:42
jeaok02:42
jeaso 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
qwebirc98809check02:44
jeaok02:44
jeain chrome, can you open the developer tools02:45
jeayou can right click anywhere on the page, and go "inspect element"02:45
qwebirc98809<img src="localhost/htdocs/kelvin/termine.jpg">02:46
jeaok02:47
jeaAt the top of the Developer Tools, there is a Console tab02:47
jeais there anything written in it02:47
jea(it might be good to refresh the page, and see if anything comes up)02:47
qwebirc98809order-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:visited02:48
qwebirc98809i quess this is the wild-card02:48
qwebirc98809the image should be much bigger02:49
jeaum, that is from the styles section, not the Console tab02:49
jeais this website public online, or just local to you?02:50
qwebirc98809only local02:50
qwebirc98809Failed to load resource: the server responded with a status of 404 (Not Found) 02:50
jeaok02:51
jearight, that is what i was expecting02:51
qwebirc98809?02:51
jeawhat is the url shown for the resource that failed to load02:51
qwebirc98809ok02:51
qwebirc98809http://127.0.0.1/htdocs/kelvin/localhost/htdocs/kelvin/termine.jpg02:52
jeaok, there is your problem02:52
qwebirc98809i see02:52
jeain your <img> tag, you are putting a relative path02:52
jeaso it build that url02:52
jeabecause you are viewing "http://localhost/htdocs/kelvin", the image tag should be02:53
jea<img src="termine.jpg">02:53
jeayou don't need all the rest of it02:53
qwebirc98809oh god!02:54
qwebirc98809what the f...02:54
jeais it working after the change?02:54
qwebirc98809yes02:54
jeagood02:55
qwebirc988095 hours02:55
qwebirc98809thanks a lot02:55
jeaso the main thing is to know how web links work, for src and href02:55
jeaif you have a link that is "something/else/file.jpg", it is relative to the current location02:56
jeaif it is "/path/to/file.jpg", the link is relative to the root (ie. http://localhost/ in this case)02:57
qwebirc98809yes02:57
jeathe third type is a full path like "http://localhost/path/to/file.jpg"02:57
jeaso basically you just had it mixed up a bit02:57
jeaif you added a "http://" to the front of what you had, it would also work02:58
qwebirc98809U are a god! now i can go to bed ;)02:58
jeaout of curiosity, what country are you from?02:59
qwebirc98809germany / bonn02:59
qwebirc98809its 5 a clock02:59
jeacool02:59
jeahow did you find #ubuntu-au?02:59
qwebirc98809freenet-server03:00
qwebirc98809freenet is a 'german' provider03:00
jeaok. Well, from the Australian Ubuntu team, we say glad we could help03:00
qwebirc98809i'm glad 203:01
qwebirc98809good night03:01
jeanight03:01
jeaI would love to know how Ubuntu Australia comes up as a suggested help site03:02
jeaanyway, at least the problem was sorted03:02
Noskcajjust rad the backlog, we are a german channel now?04:09
Noskcaj*read04:10
jeait would appear some people think we are04:22
jeaI wonder if they think the au is for Austria, instead of Australia04:22
Noskcajjea, maybe.04:45
dionysioshello all10:46
jeaHello dionysios 10:48
dionysioshey jea10:48
dionysioscan anyone here tell me if i can source laptops without os in australia10:49
jeaI suspect you would have a hard time getting one10:50
jeabut I haven't tried myself10:50
dionysiossurely i asume if not here in australia can source os10:51
dionysiosi find it frustrating10:52
jeathe cost of windows is next to nothing anyway10:52
jeabecause MS sells is very cheaply to OEMs10:52
dionysiosyeah ms has pushed everyone out of the market10:57
dionysiosi just know some manufacturers install ubuntu on laptops but pretty certain os only10:59
jeai think all laptops will come with an os of some sort11:00
jeajared: i think michael is getting a bit too held up in trying to organise the translations, when he could just be translating12:26
jaredjea: organising is one thing, reinventing the wheel is a bit over the top12:32
jeayes, very much12:33

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!