<div dir="ltr">Nyall, and QGIS fellow users and friends!<div><br><div>No one is born with knowledge, but everyone can learn.</div><div>Which is what I am trying hard here.</div><div>I humbly asked for user collaboration, and took great care in explaining what I have done, and what I am aiming at.</div><div>(see also the thread "<i>Configuring QGIS server on Ubuntu 20.4</i>")</div><div>I have not given up yet, but I will drop this thread.</div><div>As you imply, it has taken off in the wrong direction.</div><div><br></div><div>Best regards, Mats.E</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den mån 18 okt. 2021 kl 09:44 skrev Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@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">On Mon, 18 Oct 2021 at 17:23, Mats Elfström <<a href="mailto:mats.elfstrom@giskraft.se" target="_blank">mats.elfstrom@giskraft.se</a>> wrote:<br>
><br>
> I am not too happy if I have to start over on a new machine.<br>
<br>
With all due respect, what do you expect as the outcome of this<br>
discussion?  You're complaining about software you obtained for free!<br>
If you're looking for commercial SUPPORT for QGIS then you need to<br>
contract a QGIS support provider (see<br>
<a href="https://qgis.org/en/site/forusers/commercial_support.html" rel="noreferrer" target="_blank">https://qgis.org/en/site/forusers/commercial_support.html</a>). If you're<br>
not experienced enough to setup the server yourself, I strongly<br>
caution you NOT to expose it to the internet and instead pay someone<br>
with the experience to do this for you, and ensure it's done<br>
correctly.<br>
<br>
If it's a volunteer task and you don't want to pay for support, then<br>
you NEED to moderate your language and avoid the inflammatory wording.<br>
That's never an effective way to get a good response from the<br>
volunteer side of the community.<br>
<br>
Nyall<br>
<br>
<br>
<br>
<br>
><br>
> Regards, Mats.E<br>
><br>
><br>
> Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood <<a href="mailto:richard.greenwood@gmail.com" target="_blank">richard.greenwood@gmail.com</a>>:<br>
>><br>
>> Posting again without screenshot, which apparently caused my previous email to await moderator approval.<br>
>><br>
>> Mats,<br>
>><br>
>> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5 steps which got me an XML capabilities document.<br>
>><br>
>> # standard practice when starting a new instance<br>
>> sudo apt update && sudo apt upgrade -y<br>
>> # reboot if a new kernel was installed by apt upgrade<br>
>> sudo reboot<br>
>> # install qgis-server and apache web server<br>
>> sudo apt install qgis-server apache2 libapache2-mod-fcgid<br>
>> # enable apache fcgi and cgi<br>
>> sudo a2enmod fcgi cgi<br>
>> sudo systemctl restart apache2<br>
>> # in a web browser you should now get an XML document from the following request<br>
>> <a href="http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities" rel="noreferrer" target="_blank">http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a><br>
>><br>
>> And 3 more steps got me a map<br>
>><br>
>> # load some test data<br>
>> wget <a href="https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip</a><br>
>> sudo apt install unzip<br>
>> unzip v2.0.zip<br>
>> # in a web browser you should get a map from the following request<br>
>> <a href="http://IP-ADDRESS-OR-HOST-NAME/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" rel="noreferrer" target="_blank">http://IP-ADDRESS-OR-HOST-NAME/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</a><br>
>><br>
>> 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.<br>
>><br>
>> 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/" rel="noreferrer" target="_blank">https://gis.stackexchange.com/</a> with specific details as to what the problem is.<br>
>><br>
>> --<br>
>> Richard W. Greenwood<br>
>> <a href="http://www.greenwoodmap.com" rel="noreferrer" target="_blank">www.greenwoodmap.com</a><br>
><br>
><br>
><br>
> --<br>
><br>
><br>
> GisKraft, Geodatakonsult<br>
><br>
> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden<br>
> tel: +46 70 595 39 35 / <a href="http://www.giskraft.se" rel="noreferrer" target="_blank">www.giskraft.se</a><br>
><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</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>