<div dir="ltr"><div dir="ltr"><div>Posting again without screenshot, which apparently caused my previous email to await moderator approval.</div><span class="gmail-im" style="color:rgb(80,0,80)"><div><br></div><div>Mats,</div><div><br></div>I fired up a new Ubuntu 20.04 instance on AWS and did the following 5 steps which got me an XML capabilities document.<div><br></div><div><font face="monospace"><font color="#6aa84f"># standard practice when starting a new instance</font><br>sudo apt update && sudo apt upgrade -y<br><font color="#6aa84f"># reboot if a new kernel was installed by apt upgrade</font><br>sudo reboot<br><font color="#6aa84f"># install qgis-server and apache web server</font><br>sudo apt install qgis-server apache2 libapache2-mod-fcgid<br><font color="#6aa84f"># enable apache fcgi and cgi</font><br>sudo a2enmod fcgi cgi<br>sudo systemctl restart apache2<br><font color="#6aa84f"># in a web browser you should now get an XML document from the following request</font><br><font color="#0000ff">http://</font><font color="#000000">IP-ADDRESS-OR-HOST-NAME</font><font color="#0000ff">/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</font></font><br><br>And 3 more steps got me a map</div><div><br><font face="monospace"><font color="#6aa84f"># load some test data</font><br>wget <a href="https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip" target="_blank">https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip</a></font></div><div><span style="font-family:monospace">sudo apt install unzip</span><font face="monospace"><br>unzip v2.0.zip<br><font color="#6aa84f"># in a web browser you should get a map from the following request</font><br></font><font color="#0000ff">http://</font><font color="#000000">IP-ADDRESS-OR-HOST-NAME</font><font color="#0000ff">/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&MAP=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs&LAYERS=countries&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&WIDTH=400&HEIGHT=200&BBOX=-90,-180,90,180</font><br></div><div><br></div><div>The tutorial tries to cover a lot of ground, maybe too much. And the 8 steps above certainly don't cover enough for a production server. But it's quite unfair to say that "QGIS Server is not ready for production". As Donovan pointed out, there are a lot of moving parts and you have to have some proficiency with all of them if you are doing it on your own.</div><div><br></div><div>The basic principle is that QGIS Server is serving WMS, WFS, WCS requests via CGI (or Fast-CGI). Apache, Ngix, IIS, Tomcat all can serve CGI and Fast-CGI. Pick whatever operating system and web server you're the most proficient with. Install QGIS Server, start with the simplest configuration that you can, as I did above. Then start tuning it to your needs. If you run into problems ask for help on the list or <a href="https://gis.stackexchange.com/" target="_blank">https://gis.stackexchange.com/</a> with specific details as to what the problem is.</div><div><br></div></span></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Richard W. Greenwood<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div></div>