Error: could not open mime types config file
Sometime, httpd service is being stopped in the service due to mime types files. When you will check the logs, you will get the following error:
root@server [~]# tail -f /usr/local/apache/logs/error_log
[Wed May 08 17:08:25 2013] [error] (2)No such file or directory: could not open mime types config file /usr/local/apache/conf/mime.types.
Configuration Failed
Fix: In such scenario, you can fix the issue by copying the mime.types files from /etc directory to /etc/httpd/conf/ or /usr/local/apache/conf (In cPanel server).
root@server [/etc]# cp -iv mime.types /usr/local/apache/conf/
`mime.types' -> `/usr/local/apache/conf/mime.types'
root@server [/etc]#
root@server [~]# tail -f /usr/local/apache/logs/error_log
[Wed May 08 17:08:25 2013] [error] (2)No such file or directory: could not open mime types config file /usr/local/apache/conf/mime.types.
Configuration Failed
Fix: In such scenario, you can fix the issue by copying the mime.types files from /etc directory to /etc/httpd/conf/ or /usr/local/apache/conf (In cPanel server).
root@server [/etc]# cp -iv mime.types /usr/local/apache/conf/
`mime.types' -> `/usr/local/apache/conf/mime.types'
root@server [/etc]#
Then start httpd as follows:
root@server [/usr/local/apache/conf]# /etc/init.d/httpd start
root@server [/usr/local/apache/conf]#
The httpd service is started now. :)
Thank You For Your Valuable Information
ReplyDeleteLinux Online Training