Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi Guys...
I have a problem with displaying images.
My server is CentOS release 6.1 (Final)
If I a web page displays an image, it doesn't show.
If I click on 'show image' I get a message, something like 'image cannot be displayed because it contains errors'.
I have setup a page to demonstrate the problem: http://art-burn.co.uk/index.htm
This has 2 pictures:
1. src from within the server.
2. src from an external server.
Using firefox, the 2 images are displayed, first as a small box (from local server), second normal (from external server)
Using IE, the 2 images are displayed, first as a corrupt picture (from local server), second normal (from external server)
I'm utterly confused with this, and cannot find any answers by Googling.
Can anybody suggest what may be wrong.
btw: the server did work fine originally, so it's something that I have done, but I don't know what.
Running Firefox 16.0.2 on both Windows and Ubuntu 10.04 the first one (from your local server) does not show. Loading http://art-burn.co.uk/images/HonkyTonk-18nov12-sm.jpg directly gives the error message that the file is corrupted.
Inspecting the image properties (with FF) on the page you provided shows that the files have different sizes and your local one shows as 0x0 pixels.
Opening in IE shows a text page with garbage and checking properties in IE shows that it's not a jpg.
Sounds like you've managed to corrupt the image in some way.
Last edited by Wim Sturkenboom; 11-06-2012 at 03:12 AM.
Yes, the server really seems to send gargabe as HTTP response for url http://art-burn.co.uk/images/HonkyTonk-18nov12-sm.jpg Can you inspect (and post) your apache configuration? Have you enabled some modules or changed something w.r.t. apache recently?
Hi Guys...
Many thanks for your input.
However, I still believe that the problem is with the server.
Quote:
Can you inspect (and post) your apache configuration?
I'm not sure what you mean by this. Do you mean my httpd.conf file ?
If you do, it's very large - size 38431
If you want to see it, it's here: http://art-burn.co.uk/httpd.conf
Quote:
Have you enabled some modules or changed something w.r.t. apache recently?
No. Recently, I have been trying to find a suitable webmail program
I've tried: Mailview, Webmail Lite, RoundCube and squirrekmail.
I removed ALL the webmail programs and started again with squirrelmail.
This is when I noticed the image problem.
I could load the Squirrelmail image from an external server, but not locally.
This is when I started testing.
Here is another test that I have done this morning: http://hughes-family-bakers.co.uk/test.htm
This site is located on the 'good' server.
I also installed postfix admin.
This didn't appeal to me when I had it installed, so I removed it.
P—38¼®Å-
E ~Oj@ @ XaÇ’)Vm" P²=CHy5j§€ m¶r
%6\c€¶¿HTTP/1.1 200 OK
Date: Tue, 06 Nov 2012 11:14:08 GMT
Server: Apache/2.2.15 (CentOS)
Last-Modified: Mon, 05 Nov 2012 17:17:27 GMT
ETag: "8061d-961f-4cdc2a8dab73a"
Accept-Ranges: bytes
Content-Length: 38431
Connection: close
Content-Type: text/plain
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
...
...
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 8
MinSpa P—38¼®Å-
E Om@ @ XaÇ’)Vm" P²=CH‰j§€ m¶r
%70c€·”s 256
MaxRequestsPerChild 4000
</IfModule>
I understand it's only the copy. It was showing that it's more than just images that are affected.
If possible, I would run a memtest for a night to check memory and badblocks to check your HD; manufacturer's testutilities for your HD are also an option.
Very weird indeed. I've worked with apache for 10+ years and I've never seen it corrupting files.
I would try a clean install of apache with clean config files and work my way to desired configuration.
If possible, I would run a memtest for a night to check memory and badblocks to check your HD
I've run a memory test with memscope, running for 4 hours - no errors.
My experience is that running memscope will show up any memory problems within the first couple of passes.
I used Hirens to run a surface test on the hard drive, which showed no problems.
Quote:
I would try a clean install of apache with clean config files and work my way to desired configuration.
This certainly is an option, particulary as this is a test server.
However, I'm intrigued to know what I have done wrong - if anything.
I'll leave the thread running for a while to see if anybody has any suggestions.
Could be a file system problem. Can you fsck? The easiest way would be to create a /etc/forcefsck file and reboot. Alternatively boot Linux from media such as a Knoppix DVD. Or, for file systems other than root, go to single user mode.
Could be a disk bus controller or related hardware (inc. HDD-related cables) problem. Easiest way to test would be to replace the motherboard and cables with known good items if available.
Hi lrtward...
Thanks for your input.
I have plenty of disc space so that's not the problem.
catkin said:
Quote:
Could be a disk bus controller or related hardware (inc. HDD-related cables) problem. Easiest way to test would be to replace the motherboard and cables with known good items if available.
I've removed the hard drive and put it it to a known good computer
I struggled a bit to get the network working, but managed it eventually.
The problem still persists, so back to the drawing board.
Quote:
Could be a file system problem. Can you fsck? The easiest way would be to create a /etc/forcefsck file and reboot.
I followed your suggestion and set the system to check the file system at reboot. In fact it will check the file system at every boot.
Quote:
Alternatively boot Linux from media such as a Knoppix DVD. Or, for file systems other than root, go to single user mode.
I have downloaded knoppix 7 and created a bootable CD.
However, I don't know how to boot it to see my hard drive.
It gets to
boot:
and then continues to a menu.
Now I'm stuck.
Any advice ???
I followed your suggestion and set the system to check the file system at reboot. In fact it will check the file system at every boot.
I have downloaded knoppix 7 and created a bootable CD.
However, I don't know how to boot it to see my hard drive.
It gets to
boot:
and then continues to a menu.
Now I'm stuck.
Any advice ???
.
Interesting -- IIRC the distros I've used /etc/forcefsck with delete the file during boot.
Sorry -- cannot advise; I currently only have access to a netbook without CD/DVD drive so cannot test. IIRC Knoppix boots to a desktop with icons for partitions containing file systems on the desktop. What are the menu items?
EDIT: but how to use Knoppix is academic regards this thread if you have fscked the file system(s) already ... ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.