LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-21-2009, 01:04 AM   #1
maas187
Member
 
Registered: Aug 2008
Location: Yemen
Distribution: Fedora, CentOS, RedHat , OpenFiler, ESXI
Posts: 225

Rep: Reputation: 32
Post Apache MIME error


hi to all ,
my apache stoped to start for some reason .

here is the Error :
----------------------------------------------------------------------
[Sat Feb 21 01:59:45 2009] [error] (2)No such file or directory: could not open mime types config file /etc/httpd/conf/mime.types.
Configuration Failed

----------------------------------------------------------------------

and here is some of the outputs that indicate that my Config file is running fine.

----------------------------------------------------------------------
conf.d:>apachectl configtest
Syntax OK

conf.d:>apachectl -V
Server version: Apache/2.2.9 (Unix)
Server built: Jul 14 2008 15:27:43
Server's Module Magic Number: 20051115:15
Server loaded: APR 1.2.11, APR-Util 1.2.10
Compiled using: APR 1.2.11, APR-Util 1.2.10
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"


----------------------------------------------------------------------
thanks to all .

 
Old 02-21-2009, 01:10 AM   #2
maas187
Member
 
Registered: Aug 2008
Location: Yemen
Distribution: Fedora, CentOS, RedHat , OpenFiler, ESXI
Posts: 225

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by maas187 View Post
hi to all ,
my apache stoped to start for some reason .

here is the Error :
----------------------------------------------------------------------
[Sat Feb 21 01:59:45 2009] [error] (2)No such file or directory: could not open mime types config file /etc/httpd/conf/mime.types.
Configuration Failed

----------------------------------------------------------------------

and here is some of the outputs that indicate that my Config file is running fine.

----------------------------------------------------------------------
conf.d:>apachectl configtest
Syntax OK

conf.d:>apachectl -V
Server version: Apache/2.2.9 (Unix)
Server built: Jul 14 2008 15:27:43
Server's Module Magic Number: 20051115:15
Server loaded: APR 1.2.11, APR-Util 1.2.10
Compiled using: APR 1.2.11, APR-Util 1.2.10
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"


----------------------------------------------------------------------
thanks to all .

Nevermind i already fixed it .
----
Well, in case anyone gets this stupid error, just copy the mime.types files from /etc directory , to /etc/httpd/conf/ and you should be set.

take care guys
 
  


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 MIME Types: No display of .gz, .c, etc.? jhwilliams Linux - Software 0 01-31-2009 08:22 AM
Apache Mime Types jroggow Linux - Networking 1 07-26-2006 01:40 PM
apache/php video mime types dtra Linux - Software 0 08-08-2005 06:55 PM
MIME issue on Apache / mandrake 10 good_boy Linux - Networking 0 06-30-2004 07:19 AM
Apache is not recogonising the mime type saravanan1979 Programming 0 04-19-2002 01:10 AM

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

All times are GMT -5. The time now is 08:20 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