Red Hat Bugzilla – Bug 275
/etc/httpd/conf/mime.types is missing and server doesn't start
Last modified: 2008-05-01 11:37:48 EDT
Installing apache-1.3.3-1 doesn't startup.
I have no file /etc/httpd/conf/mime.types
[date] [error] (2)No such file or directory: httpd: could
not open mime types log file /etc/httpd/conf/mime.types
I copied the file after installing the source rpm, and
copying the mime.types file into the conf directory.
My config files are the same as rh5.1's apache config files,
with a few minor changes. Maybe there is some command in
the previous apache config options which is causing this
problem? (I'm not very familiar with apache)
the file mime.types is located now in /etc and is provided by the
mailcap rpm package. You are right it that it will not run if this
file is missing in /etc. If you do a rpm -qR of the apache rpm, it
will show that /etc/mime.types is required for installation and should
state so when installing apache.
dkl, I understand your comments.
My problem has come from piecemeal
upgrading to 5.2. It is not easy to upgrade the server in one go
and I'd prefer to catch small problems like this early, upgrading the
packages one be one, finally performing an upgrade which has little
few kinks to iron out. I've been caught once by upgrading in one go
especially when using non-redhat rpms (not this case) which stopped
working on the upgrade.
Thus I'm installing the 5.2 apache on 5.1 redhat.
I have mailcap-1.0-7 and this does has /etc/mime.types.
Nevertheless I can only start apache if I have mime.types in
/etc/httpd/conf/ (as stated in my previous messages).
There is obviously some other dependency missing somewhere which
doesn't catch my situation, and must be related to mixing 5.1 and
5.2 rpms. (something which I guess isn't that uncommon).
For the time being I'm not sure which dependency I'm missing and I'll
put a symbolic link in place to fix my situation. Upgrading
"properly" should resolve the problem.