LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-08-2007, 03:45 PM   #1
finaidques
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Rep: Reputation: 0
Cannot view files over 250 bytes


I am running Fedora Core 7, Apache 2.2, MySQL 5.0, & PHP 5.2.2.

For some reason - when trying to view files through a browser (IE 7 on Windows or FireFox 2 on Fedora) it appears that any file over 250 Bytes will not display. The files are located in the /var/www/html directory and have the correct permissions. I have created several .GIF images it all different size ranges and have come to conclude that the image will not display if it is over 250 Bytes. If the image is over 250 Bytes, you will only see the red "x".

I do not have an example fo this that can be viewed publically so if you want to see what I am talking about you will have to recreate it yourself but I was hoping that someone would be able to shed a little light on this for me.

I have looked into the httpd.conf file to see if it would have anything to do with this. I have found that the "LimitRequestBody" Directive in the httpd.conf file is set by default to 0 which means unlimited. I have tried setting this to a certain limit and that did not work.

Please help.

Last edited by finaidques; 10-08-2007 at 04:28 PM.
 
Old 10-08-2007, 05:59 PM   #2
finaidques
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Is it possible this has something to do with the mime.types file or the default mime type set in the httpd.conf file?
 
Old 10-10-2007, 08:41 PM   #3
finaidques
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I have figured out why this was happening and figured I would post to the forum for future use.

What was happening was I was mounting a Windows share using the CIFS protocol. I was using that mount point as the root directory of the Apache webserver (/var/www/html). I am not exactly sure why or what the limitation was which was keeping files over 250 bytes from displaying but how I determined it was the CIFS mount was...

I first moved a file into the Windows share (CIFS mount point) that was over 250 bytes and tried displaying it using Apache. It would not display. I then took the same file and FTP'd onto the Linux machine and moved it into the /var/www/html directory. At this point it displayed properly.

Like I said I don't know why this happened but I think it is important to state that the CIFS protocol works well for certain purposes. In this case, the way I was using it was not appropiate. WHY - I don't know. However, if you are looking for a way to share files between Windows and a Linux machine - without publishing them on a webserver - then CIFS is a good option.
 
  


Reply

Tags
apache2, file, limit, size



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
files reduced to 0 bytes ghep Linux - Hardware 2 07-05-2007 12:34 PM
values of bytes in regular files? newbie_mel Linux - Newbie 4 04-22-2006 07:05 PM
Can't create files bigger than 0 bytes GameboyHippo Linux - General 1 03-01-2005 08:04 PM
Samba truncating files to 0 bytes KimVette Linux - Networking 6 01-30-2005 06:42 PM
bits and bytes and files basics question Bert Linux - Software 2 01-16-2003 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration