Re: [Qgis-developer] QgisMapserver - need to restart Apache on every project file change ?
Hi Giovanni QGIS server uses the QFileSystemWatcher class ( http://doc.qt.nokia.com/4.7/qfilesystemwatcher.html) to check if a configuration file has changed. So in newer versions, changes to the published project files should be picked up without restarting apache. Regards, Marco Am Dienstag, 18. Oktober 2011, 19.23:28 schrieb G. Allegri: I haven't found the time to setup a fresher qgismapserver, but looking at the source code in trunk I can't see what's causing this. It seems that, inside the fcgi loop, a configuration for a requested MAP confipath is searched inside the cache instance. In case it's found the result is directly returned, otherwise a new cache entry is created and returned. I would expect this should work, but before I will build the trunk version I would like to know if it's solved indeed. thanks, Giovanni -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QgisMapserver - need to restart Apache on every project file change ?
Thanks Marco, I supposed it watching the source code. But what about the need to reload apache if I send a different MAP request (i.e. a differnet configuration file)? It should work too, am I wrong? giovanni 2011/10/19 Marco Hugentobler marco.hugentob...@sourcepole.ch Hi Giovanni QGIS server uses the QFileSystemWatcher class ( http://doc.qt.nokia.com/4.7/qfilesystemwatcher.html) to check if a configuration file has changed. So in newer versions, changes to the published project files should be picked up without restarting apache. Regards, Marco Am Dienstag, 18. Oktober 2011, 19.23:28 schrieb G. Allegri: I haven't found the time to setup a fresher qgismapserver, but looking at the source code in trunk I can't see what's causing this. It seems that, inside the fcgi loop, a configuration for a requested MAP confipath is searched inside the cache instance. In case it's found the result is directly returned, otherwise a new cache entry is created and returned. I would expect this should work, but before I will build the trunk version I would like to know if it's solved indeed. thanks, Giovanni -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QgisMapserver - need to restart Apache on every project file change ?
Hi Giovanni It should work too, am I wrong? Yes, the MAP parameter should be considered too. Regards, Marco Am Mittwoch, 19. Oktober 2011, 09.30:02 schrieb G. Allegri: Thanks Marco, I supposed it watching the source code. But what about the need to reload apache if I send a different MAP request (i.e. a differnet configuration file)? It should work too, am I wrong? giovanni 2011/10/19 Marco Hugentobler marco.hugentob...@sourcepole.ch Hi Giovanni QGIS server uses the QFileSystemWatcher class ( http://doc.qt.nokia.com/4.7/qfilesystemwatcher.html) to check if a configuration file has changed. So in newer versions, changes to the published project files should be picked up without restarting apache. Regards, Marco Am Dienstag, 18. Oktober 2011, 19.23:28 schrieb G. Allegri: I haven't found the time to setup a fresher qgismapserver, but looking at the source code in trunk I can't see what's causing this. It seems that, inside the fcgi loop, a configuration for a requested MAP confipath is searched inside the cache instance. In case it's found the result is directly returned, otherwise a new cache entry is created and returned. I would expect this should work, but before I will build the trunk version I would like to know if it's solved indeed. thanks, Giovanni -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QgisMapserver - need to restart Apache on every project file change ?
I haven't found the time to setup a fresher qgismapserver, but looking at the source code in trunk I can't see what's causing this. It seems that, inside the fcgi loop, a configuration for a requested MAP confipath is searched inside the cache instance. In case it's found the result is directly returned, otherwise a new cache entry is created and returned. I would expect this should work, but before I will build the trunk version I would like to know if it's solved indeed. thanks, Giovanni ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QgisMapserver - need to restart Apache on every project file change ?
Yes - but it comes at a price: the CGI version does not profit from the caching mechanism and thus will be a lot slower. Also, it has to load QGIS server and libraries for each request. For medium complex to complex projects this will be way too slow. Andreas On Mon, 4 Apr 2011 13:09:23 +0200, Pirmin Kalberer wrote: Hi Kimaidou, Am Montag, 4. April 2011, um 11.20:57 schrieb kimaidou: Hi all, Marco, I am testing Qgis mapserver on a demo server. I realized I needed to restart Apache so that an server side project file has been modified to see the changes in the WMS. Is it normal, or is it a misconfiguration on my side ? NB : I am using ubuntu 10.10, and symbolic links to add any qgis project + data as a new server. You can run QGIS Mapserver as CGI instead of FastCGI. Then it reloads on every request. On Ubuntu, the only thing you have to do is cd /usr/lib/cgi-bin/ sudo ln -s mapserv.fcgi qgis_mapserv.cgi Pirmin -- -- Andreas Neumann Böschacherstrasse 10A 8624 Grüt (Gossau ZH) Switzerland ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QgisMapserver - need to restart Apache on every project file change ?
Thanks Pirmin and Andreas, Now I have 2 different ways I can use according to specific needs. Cheers 2011/4/4 Andreas Neumann a.neum...@carto.net Yes - but it comes at a price: the CGI version does not profit from the caching mechanism and thus will be a lot slower. Also, it has to load QGIS server and libraries for each request. For medium complex to complex projects this will be way too slow. Andreas On Mon, 4 Apr 2011 13:09:23 +0200, Pirmin Kalberer wrote: Hi Kimaidou, Am Montag, 4. April 2011, um 11.20:57 schrieb kimaidou: Hi all, Marco, I am testing Qgis mapserver on a demo server. I realized I needed to restart Apache so that an server side project file has been modified to see the changes in the WMS. Is it normal, or is it a misconfiguration on my side ? NB : I am using ubuntu 10.10, and symbolic links to add any qgis project + data as a new server. You can run QGIS Mapserver as CGI instead of FastCGI. Then it reloads on every request. On Ubuntu, the only thing you have to do is cd /usr/lib/cgi-bin/ sudo ln -s mapserv.fcgi qgis_mapserv.cgi Pirmin -- -- Andreas Neumann Böschacherstrasse 10A 8624 Grüt (Gossau ZH) Switzerland ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer