Wednesday, April 30, 2014

What to do if restarting apache httpd fails when trying build an OSM tile server

If you are using Fedora to create an Open Street Map tile server, when you restart apache, you might be getting this error:

Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

When running systemctl status httpd.service, if the error looks like this:

Apr 29 23:23:22 hostname.com systemd[1]: Starting The Apache HTTP Server...
Apr 29 23:23:22 hostname.com httpd[6326]: AH00526: Syntax error on line 88 of /etc/httpd/conf/httpd.conf:
Apr 29 23:23:22 hostname.com httpd[6326]: Invalid command 'LoadTileConfigFile', perhaps misspelled or defined by a module not included i...guration

Make the following changes:
  1. Rename the /etc/httpd/conf.d/mod_tile file to /etc/httpd/conf.d/mod_tile.conf
  2. Change the contents of that file to the following:
    LoadModule tile_module /usr/lib/httpd/modules/mod_tile.so

No comments: