<div dir="ltr">Hi Richard!<div>I agree, those steps should do it.</div><div>I tried to carefully follow the instructions (as I have been told to do) on this page.</div><div><a href="https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems">https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems</a><br></div><div>which differs considerably from your instructions. Are these steps unneccesary?</div><div><br></div><div>1 You do not create a virtual host</div><div>2 You do not edit the .hosts file</div><div><br></div><div>Those two steps have caused me the most worry, because I did not see the point of doing that, and the instructions are not very clear.<br></div><div>Have you read my quite detailed report on every step of the described installation process, where everything went smoothly until the virtual host was added?</div><div><br></div><div>I agree that this may seem as an HTTP server configuration problem more than a QGIS Server problem. </div><div>But they are connected, QGIS Server is of no use without a HTPP server. </div><div>And I consider the documentation of any software an integral part of the software. So that incomplete or false documentation can be considered a bug if it prevents the software from running.</div><div><br></div><div>This machine is up on the net, has a PostgreSQL/PostGIS geodatabase with lots of data and Geoserver 2.19 up and running. No problems there. </div><div>I am not too happy if I have to start over on a new machine.</div><div><br></div><div>Regards, Mats.E</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood <<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Posting again without screenshot, which apparently caused my previous email to await moderator approval.</div><span 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"><div dir="ltr">Richard W. Greenwood<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><p><b><img src="https://drive.google.com/uc?id=1sRHl_CnQrtHqnEvCnblOPhzklqxxeH5J&export=download"><br></b></p><p><b>GisKraft</b>, Geodatakonsult</p><p>Mats Elfström,
Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden<br>tel: +46 70 595 39 35
/ <a href="http://www.giskraft.se" target="_blank">www.giskraft.se</a></p></div></div></div></div></div></div></div></span></div></div></div></div>