[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache



Hi!

> 1. In der httpd.conf steht folgender Eintrag:
> LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so

Genau das soll da auch stehen.

> Das führt im error.log zu
> [error] (2)No such file or directory: mod_mime_magic: can't read magic
> file /etc/apache/share/magic

Normalerweise sollte er sie da auch finden, also ich benutze ebenfalls 
apache 1.3 und ich habe sowohl die Dateien 
/usr/lib/apache/1.3/040mod_mime_magic.info
/usr/lib/apache/1.3/mod_mime_magic.so

> In usr/lib/apache/1.3 findet sich keine Datei mod_mime_magic.so, nur
> 040mod_mime_magic_info

Dann ist da was schief gelaufen.

> Mir ist jetzt nicht ganz genau klar, wozu das Modul genau da ist.
> Kann ich das erstmal auskommentieren, oder führt das zu bösen
> Überraschungen?

Ich würde jetzt nix auskommentieren, sondern apache 1.3 erstmal von der Platte
hauen und nochmals installieren. Wenn du was auskommentierst, dann wird' ja 
nicht mehr berücksichtigt und das macht's ja auch nicht besser!

Dann in der httpd.conf nachschauen, welche Module geladen sind und welche 
nicht, wenn auskommentiert, dann entfernen.

> Den Kommentar für das Modul hab ich aus der httpd.conf entfernt und den
> Apachen neu gestartet. Dummerweise gibt es bei index.PHP einen 404.
> Woran kann das liegen?

Eventuell liegt es daran, daß noch andere Module mitgeladen werden müssen:

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
# mod_mime_magic is not part of the default server (you have to add
# it yourself with a LoadModule [see the DSO paragraph in the 'Global
# Environment' section], or recompile the server and include mod_mime_magic
# as part of the configuration), so it's enclosed in an <IfModule> container.
# This means that the MIMEMagicFile directive will only be processed if the
# module is part of the server.
#
<IfModule mod_mime_magic.c>
    MIMEMagicFile share/magic
</IfModule>

Ich hoffe, ich konnte dir helfen.
HDH
greets angi



Reply to: