Page 1 of 2

Problem load image

PostPosted: 08. July 2014 12:21
by alex_10
Hi to everyone,
I have this problem: i create a new site only with html and css, no php, and after i follow the advice to change the line
Code: Select all
#EnableMMAP On
#EnableSendfile On

the imge of all my website still can't charge. My OS is Windows 7 with XAMPP 1.8.3-4. Thanks a lot for help.

Re: Problem load image

PostPosted: 08. July 2014 12:55
by Nobbie
alex_10 wrote:the imge of all my website still can't charge.



This took me a while - you mean "cant load". "Charge" is a different context and is used for batteries and akkus, you "charge" a smartphone for example, you can also "charge" your debitcard, but you "load" a file. You cannot "charge" a file.

Anyway, your description is not sufficient. Please provide more information. What do you enter in the browser etc.?

Re: Problem load image

PostPosted: 09. July 2014 09:57
by alex_10
There's synonyms. However I write localhost in the link bar of Firefox and on the site that i have charged the image don't load.

Re: Problem load image

PostPosted: 09. July 2014 12:13
by Nobbie
alex_10 wrote:There's synonyms.


No! "Charge" ist NOT a synonym for "load"!


alex_10 wrote:However I write localhost in the link bar of Firefox and on the site that i have charged the image don't load.


If you keep on using "charge" in the wrong context, i wont help you any further. You cannot "charge a site", this is simply totally wrong.

Anyway, this is still not enough information. Please tell us precisely

a) how the URL looks like, you enter in Firefox?

b) how the link to image looks like (i.e. show us the <img src="...."> line of your HTML code

c) where the images are stored on your harddisk / server.

Also look into the access log and as well the error log of your server and watch out for more information. There should be some very usefull hints, what is going wrong.

And dont forget: if you keep on using "charge" instead of "load", i wont help you any further.

Re: Problem load image

PostPosted: 14. July 2014 05:50
by gsmith
Nobbie wrote:No! "Charge" ist NOT a synonym for "load"!

It isn't? http://thesaurus.com/browse/load

Re: Problem load image

PostPosted: 14. July 2014 06:19
by gsmith
alex_10 wrote:
Code: Select all
#EnableMMAP On
#EnableSendfile On

Who's advice are you following and what's the purpose for the change?

Leaving a # in front of these directives will have no effect because the # comments them out and Apache ignores them, therefore Apache will use it's internal defaults which are EnableSendfile Off (a change from 2.2.x) and EnableMMAP On.

One should read the documents before blindly following advice due to the fact there can be caveats, for example EnableMMAP.
The Manual wrote:This memory-mapping sometimes yields a performance improvement. But in some environments, it is better to disable the memory-mapping to prevent operational problems:

On some multiprocessor systems, memory-mapping can reduce the performance of the httpd.
Deleting or truncating a file while httpd has it memory-mapped can cause httpd to crash with a segmentation fault.

For server configurations that are vulnerable to these problems, you should disable memory-mapping of delivered files by specifying:

As far as EnableSendfile, I find that I get better performance with it off, however if I have files for download larger than 65MB on one server, 84MB on another, I have to turn EnableSendfile On for just those directories.

Re: Problem load image

PostPosted: 14. July 2014 11:36
by JJ_Tagy
gsmith wrote:
Nobbie wrote:No! "Charge" ist NOT a synonym for "load"!

It isn't? http://thesaurus.com/browse/load

Not in this context. That load is freight or cargo. Nice try, though.

Re: Problem load image

PostPosted: 14. July 2014 19:18
by gsmith
Lessons in proper English are off topic to this thread and this entire board. However, a case could be made with some of the more avant-garde definitions of "charge," namely "the quantity of anything (image/data) that a receptacle (the place the image should show on the page) is intended to hold."

Re: Problem load image

PostPosted: 14. July 2014 20:00
by Nobbie
gsmith wrote:Lessons in proper English are off topic to this thread and this entire board.


So simply give up. "Charge a file" is simply wrong and it is not getting right in any sense or context. What is your problem about that?

Anyway, the shown Apache configuration is neither the reason nor the solution for the problem, as all of these options of course do not handle css files differently to html or php files. The reason for not showing css and images is definately somewhere else, but without further information we cannot solve that problem.

Re: Problem load image

PostPosted: 10. August 2014 15:33
by alex_10
gsmith wrote:Leaving a # in front of these directives will have no effect because the # comments them out and Apache ignores them, therefore Apache will use it's internal defaults which are EnableSendfile Off (a change from 2.2.x) and EnableMMAP On.

So what is the problem now?

gsmith wrote:a) how the URL looks like, you enter in Firefox?
b) how the link to image looks like (i.e. show us the <img src="...."> line of your HTML code
c) where the images are stored on your harddisk / server.


a) URL is "localhost"
b) the images are total white and when i open they io other table of Firefox the result is a point of 1px for 1px. This is the code:
Code: Select all
<img class="home" src="../immagini/menuimage.png" alt="Home" title="Home">

c) the images are in the same folder of the website on the hard-disk

Re: Problem load image

PostPosted: 10. August 2014 18:28
by Altrea
a) URL is "localhost"

You should learn What an URL is
http://en.m.wikipedia.org/wiki/Uniform_resource_locator

Re: Problem load image

PostPosted: 12. August 2014 09:50
by alex_10
Altrea wrote:
a) URL is "localhost"

You should learn What an URL is
http://en.m.wikipedia.org/wiki/Uniform_resource_locator

What is wrong with all of you? Let all the wise men. This is URL so?

Re: Problem load image

PostPosted: 12. August 2014 10:49
by Altrea
alex_10 wrote:What is wrong with all of you?

What is wrong with you is the better question.

You want to get help from us.
Requirement for providing proper help is getting all needed information.
You don't gave us the needed information on your own, so we requested which specific information we need.
You still don't gave us the needed information because lack of knowledge what an URL is. "localhost" is not an URL, it is a hostname.
I gave you information where you can find how an URL looks like.
What is wrong with that?

It is a huge difference if you used the URL http://localhost/ or https://localhost/ or http://localhost:8080/ or http://localhost/xyz/ or whatever else is possible fitting your information of URL.

Re: Problem load image

PostPosted: 12. August 2014 10:58
by Nobbie
alex_10 wrote:What is wrong with all of you?


Nothing - we simply try to understand your problem, but this requires a precise description.

alex_10 wrote:This is URL so?


No, it is not. "localhost" is only a Servername and herewith only a single part of an URL. An URL is a fully qualified descrition of a ressource in a network, It starts with a protocoll (usuallay http, or ftp, or), followed by seperator colon, then followed by a network/server name (like "localhost" for example), separated by two slashes and optionally prefixed by a username and password (for ftp for example), then followed by an optional port (separeted by colon), then followed by a full qualified ressource (looks like a path usually), which qualifies the requested document.

Example:

Code: Select all
ftp://myuser:mypassword@ftp.anydomain.com/folder/subfolder/document.text


or

Code: Select all
http://localhost:8080/joomla/index.php


and so.


THAT is an URL - and "localhost" is only a part of that URL. You really should read the documentation provided to you, instead of writing picky comments. Dont forget: YOU asked for help, not we!

Re: Problem load image

PostPosted: 12. August 2014 11:01
by alex_10
Altrea wrote:It is a huge difference if you used the URL http://localhost/ or https://localhost/ or http://localhost:8080/ or http://localhost/xyz/ or whatever else is possible fitting your information of URL.

The url is http://localhost/. I don't answer anymore to other OT.
P.S.: there is a hole for the spyware on this software, after one day a son of, control my pc but now is resolved.