Hi,
I just ran into this problem upgrading from 12.04LTS to 16.04LTS.
systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: inactive (dead) since Fri 2017-01-06 18:09:25 GMT; 13s ago
Docs: man:systemd-sysv-generator(8)
Process: 5360 ExecStop=/etc/init.d/apache2 stop (code=exited,
status=0/SUCCESS)
Process: 5343 ExecStart=/etc/init.d/apache2 start (code=exited,
status=0/SUCCESS)
systemd[1]: Starting LSB: Apache2 web server...
apache2[5343]: * Starting Apache httpd web server apache2
apache2[5343]: Action 'start' failed.
apache2[5343]: The Apache error log may have more information.
apache2[5343]: *
apache2[5360]: * Stopping Apache httpd web server apache2
apache2[5360]: *
systemd[1]: Started LSB: Apache2 web server.
Tail /var/log/apache2/error.log
[Fri Jan 06 14:27:00.751832 2017] [mime:error] [pid 6768] (2)No such file or
directory: AH01597: could not open mime types config file
/etc/apache2/mime.types.
AH00016: Configuration Failed
[Fri Jan 06 14:28:37.856744 2017] [mime:error] [pid 6888] (2)No such file or
directory: AH01597: could not open mime types config file
/etc/apache2/mime.types.
AH00016: Configuration Failed
[Fri Jan 06 14:33:07.816900 2017] [mime:error] [pid 2642] (2)No such file or
directory: AH01597: could not open mime types config file
/etc/apache2/mime.types.
AH00016: Configuration Failed
[Fri Jan 06 18:09:25.460912 2017] [mime:error] [pid 5358] (2)No such file or
directory: AH01597: could not open mime types config file
/etc/apache2/mime.types.
AH00016: Configuration Failed
A search for the file returns
/etc/apache2$ grep -r "mime.types"
mods-available/mime.conf: TypesConfig /etc/mime.types
mods-available/mime.conf: # file mime.types for specific file types.
mods-available/mime.conf: # es is ecmascript in /etc/mime.types
mods-available/mime.conf: # tr is troff in /etc/mime.types
magic:# mime types according to http://www.geocities.com/nevilo/mod.htm:
When I added the TypesConfig as suggested by OP it worked.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/133741
Title:
[gutsy] apache2, restart failed on missing mime.types after upgrade
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/133741/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs