-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Order of lines in the configuration file determines whether apache starts or not? #3
Comments
Just to add some more examples... "OK" means that Apache restarts OK with the lines in the /etc/apache2/sites-available/000-default.conf file as described. "fail" means that it doesn't. It's not random, it appears to be entirely predictable based on the current state of 000-default.conf . MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true MbtilesEnabled true |
This is on Ubuntu 22.04, and the apache there identifies itself as "Apache/2.4.52 (Ubuntu)"
mod_mbtiles was installed as per https://github.com/systemed/mod_mbtiles#installation ("sudo apt install apache2-dev libsqlite3-dev", then "sudo apxs -lsqlite3 -i -a -c mod_mbtiles.c"). It was happily serving tiles from one .mbtiles file until I tried to add a second. In the "<VirtualHost *:80>" in "000-default.conf" after " DocumentRoot /var/www/html" I have:
This fails, and "systemctl status apache2.service" says it failed with a fairly unhelpful "Segmentation fault (core dumped)".
However, if I swap the entries around:
Apache is a happy bunny! I have not changed https://github.com/systemed/mod_mbtiles/blob/master/mod_mbtiles.c , and it still has "#define MAX_TILESETS 20" in it. In addition to the various modules installed by default I also have "LoadModule tile_module /usr/lib/apache2/modules/mod_tile.so" for raster tiles.
The also error occurs (with the entries the other way around) if I use two "known good" mbtiles files (two differently named copies of the same working one).
The text was updated successfully, but these errors were encountered: