LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2004, 01:58 PM   #1
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Rep: Reputation: 15
Question Apache 2.0.48 issues


I recently upgraded one of my servers from fully-patched RedHat 7.3 to Fedora Core 1 (also with all of the necessary updates). The web server, which had been running Apache 1.3.27 without any problems, was updated to 2.0.48. I'm now having problems with displaying text files (example: http://www.malibyte.net/iptables/scr...ables-generic, which had previously displayed correctly, with newlines where they should be) and image files, such as JPEGs, alone (they display OK if they're referenced in an HTML document...example: http://www.malibyte.net/Supra/85supra.html (which displays the images OK) and http://www.malibyte.net/Supra/85-lr-med.jpg, which is an image file alone - displays as ASCII characters only). The configuration file has been gone over thoroughly and compared to others; no answers found. Anyone have a fix for this? Thanks.
 
Old 03-05-2004, 02:07 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It sounds like you haven't configured your mime types correctly.

Did you use the default config file that came with apache 2 or did you just keep your old version?
 
Old 03-05-2004, 02:15 PM   #3
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
It sounds like you haven't configured your mime types correctly.

Did you use the default config file that came with apache 2 or did you just keep your old version?

I modified the one which came with 2.0.x. Are there any particular parts of the file I should post which would help clarify this?

Thanks!
 
Old 03-05-2004, 02:22 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Just check that mod_mime and mod_mime_magic are compiled and loaded. Also make sure you are referecing valid mime configuration files and that they are readable.
 
Old 03-05-2004, 05:02 PM   #5
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
The modules are present:

/usr/lib/httpd/modules/mod_mime.so
/usr/lib/httpd/modules/mod_mime_magic.so
/usr/libexec/webmin/apache/mod_mime.pl
/usr/libexec/webmin/apache/mod_mime_magic.pl


and called by the conf file:

LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule mime_module modules/mod_mime.so


<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>


(though httpd -l does not show this one as compiled in....(?))

[root@firefox: /home/rcs]$ httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c


The mime-magic configuration file is present and appears OK:

[root@firefox: /]$ lsl /etc/httpd/conf
total 295
.
.
-rw-r--r-- 1 root root 12959 Nov 19 05:40 magic


Any other possibilities????

Thanks again - Bob

Last edited by Malibyte; 03-05-2004 at 06:28 PM.
 
Old 03-06-2004, 08:00 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Do you have a directive loading your mime types - ie:
Code:
<IfModule mod_mime.c>
    TypesConfig /etc/apache/mime.types
</IfModule>
 
Old 03-06-2004, 07:39 PM   #7
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
Yep.


# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

The file exists, and contents are correct.....!
 
Old 03-08-2004, 11:02 PM   #8
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
Interestingly, I had to use a Windoze machine this afternoon...I hit my site with Internet Exploiter, and the images rendered just fine. Tried it again with Mozilla 1.5, Firefox 0.8, and Konqueror 3.1.0 under Linux - no joy. There were no problems with *any* browsers before the upgrade from 1.3.27.

Wonder why M$'s browser renders the images correctly and the Linux browsers don't??

Last edited by Malibyte; 03-09-2004 at 12:38 AM.
 
Old 03-10-2004, 04:54 PM   #9
Yahooligan
LQ Newbie
 
Registered: Mar 2004
Location: Germany
Distribution: RedHat (7.2, 7.3, 8.0, 9.0 (Fedora)), Debian 3.0, Win2k, Win2k Adv. Server, XP
Posts: 1

Rep: Reputation: 0
Hi Forum,

(first of all: sorry about my english).

we've the same problem too.

Images below 500 Byte works and displayed fine, any other doesn't.
*.HTML - Files sends an 403 - Error, *.HTML, *.PHP and so on works fine.

JS - Files works - or not. :-)

Apache writes an 206-Error into the logfiles (Images)...

We've Fedora RedHat 9.0, Apache 2.0.48 and so on.

... and tomorrow our working servers shutting down and the new one must work correctly ... don't know how

If there is any people who have an idea, please tell us.


Thanks for your patience
Alex
 
  


Reply



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
apache issues gravesb Linux - Software 6 08-08-2005 03:07 AM
Apache language issues... mikeghet Linux - Software 1 05-29-2005 03:29 AM
Apache issues neeths *BSD 1 02-17-2005 12:55 AM
Apache Installation Issues gluc0se Linux - Newbie 4 11-28-2003 06:58 PM
Apache 2 configuration issues sitemaster Linux - Newbie 1 06-23-2003 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:15 PM.

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