Open cccs-ip opened 9 years ago
I tried this approach locally, and it seems to work:
http://anitagraser.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/
The key to anita's approach is to ln -s
the executables:
It’s time to add a QGIS project to our server. To do that, we move to the QGIS Server folder
cd /usr/lib/cgi-bin
where you should find qgis_mapserv.fcgi and wms_metadata.xml. I’ve decided to have one folder for each project file. My first project is “vienna”.
sudo mkdir vienna
cd vienna
qgis_mapserv.fcgi and wms_metadata.xml can now be linked into this new folder
sudo ln -s ../qgis_mapserv.fcgi .
sudo ln -s ../wms_metadata.xml .
The only thing that’s missing anymore is a QGIS project file. It can be copied or linked into the folder. After restarting Apache, we should be good to go.
I was able to connect via the localhost
fcgi extension to the map. My only issue is that I keep getting an error saying that my SERVICE parameter is not specified (and it is mandatory). I enable the OWL settings in properties but no luck.
I am not sure why we're having so many problems to get this working on our site....
I see that fix is essentially the same as the one Tim posted in his article, which Paul suggests won't work:
I need help understanding how I can get it to serve multiple qgs projects without needing a separate server running for each one (I looked at Tim's 2012 blog entry but it does not seem to help me because the server wont serve the other files even if I were prepared to clone the client for each project).
The exact reason for this is unclear.
There seems to be necessary parameters embedded in the XML to serve a map. Could this be why the demos are working and our maps are not? I have been messing with the OWL project settings in qgis, but to no avail.
as an alternative (still based on QGIS, but supposedly neatly packaged for web presentation):
I am closing Issue #5 because we have the server installed. Opening a new issue to address our concern about publishing multiple maps on the same server instance.