Re: [Qgis-user] QGIS server in professional use?

2021-10-18 Thread DelazJ
Hi Mats, all

Just to let you know that some of the unclear/confusing statements in the
docs you pointed out in an earlier message have been addressed. The updated
version is available at
https://github.com/qgis/QGIS-Documentation/blob/master/docs/server_manual/getting_started.rst
and will be pushed to the docs website later tonight (UTC).
Hope that helps you get through or at least makes things less confusing.
And please open issues in the repo if there still are.

Regards,
Harrissou


Le lun. 18 oct. 2021 à 11:00, Mats Elfström  a
écrit :

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

Re: [Qgis-user] QGIS server in professional use?

2021-10-18 Thread Mats Elfström
Nyall, and QGIS fellow users and friends!

No one is born with knowledge, but everyone can learn.
Which is what I am trying hard here.
I humbly asked for user collaboration, and took great care in explaining
what I have done, and what I am aiming at.
(see also the thread "*Configuring QGIS server on Ubuntu 20.4*")
I have not given up yet, but I will drop this thread.
As you imply, it has taken off in the wrong direction.

Best regards, Mats.E

Den mån 18 okt. 2021 kl 09:44 skrev Nyall Dawson :

> On Mon, 18 Oct 2021 at 17:23, Mats Elfström 
> wrote:
> >
> > I am not too happy if I have to start over on a new machine.
>
> With all due respect, what do you expect as the outcome of this
> discussion?  You're complaining about software you obtained for free!
> If you're looking for commercial SUPPORT for QGIS then you need to
> contract a QGIS support provider (see
> https://qgis.org/en/site/forusers/commercial_support.html). If you're
> not experienced enough to setup the server yourself, I strongly
> caution you NOT to expose it to the internet and instead pay someone
> with the experience to do this for you, and ensure it's done
> correctly.
>
> If it's a volunteer task and you don't want to pay for support, then
> you NEED to moderate your language and avoid the inflammatory wording.
> That's never an effective way to get a good response from the
> volunteer side of the community.
>
> Nyall
>
>
>
>
> >
> > Regards, Mats.E
> >
> >
> > Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood <
> richard.greenw...@gmail.com>:
> >>
> >> Posting again without screenshot, which apparently caused my previous
> email to await moderator approval.
> >>
> >> Mats,
> >>
> >> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5
> steps which got me an XML capabilities document.
> >>
> >> # standard practice when starting a new instance
> >> sudo apt update && sudo apt upgrade -y
> >> # reboot if a new kernel was installed by apt upgrade
> >> sudo reboot
> >> # install qgis-server and apache web server
> >> sudo apt install qgis-server apache2 libapache2-mod-fcgid
> >> # enable apache fcgi and cgi
> >> sudo a2enmod fcgi cgi
> >> sudo systemctl restart apache2
> >> # in a web browser you should now get an XML document from the
> following request
> >>
> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
> >>
> >> And 3 more steps got me a map
> >>
> >> # load some test data
> >> wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
> >> sudo apt install unzip
> >> unzip v2.0.zip
> >> # in a web browser you should get a map from the following request
> >>
> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
> >>
> >> 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.
> >>
> >> 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
> https://gis.stackexchange.com/ with specific details as to what the
> problem is.
> >>
> >> --
> >> Richard W. Greenwood
> >> www.greenwoodmap.com
> >
> >
> >
> > --
> >
> >
> > GisKraft, Geodatakonsult
> >
> > Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
> > tel: +46 70 595 39 35 / www.giskraft.se
> >
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-18 Thread Nyall Dawson
On Mon, 18 Oct 2021 at 17:23, Mats Elfström  wrote:
>
> I am not too happy if I have to start over on a new machine.

With all due respect, what do you expect as the outcome of this
discussion?  You're complaining about software you obtained for free!
If you're looking for commercial SUPPORT for QGIS then you need to
contract a QGIS support provider (see
https://qgis.org/en/site/forusers/commercial_support.html). If you're
not experienced enough to setup the server yourself, I strongly
caution you NOT to expose it to the internet and instead pay someone
with the experience to do this for you, and ensure it's done
correctly.

If it's a volunteer task and you don't want to pay for support, then
you NEED to moderate your language and avoid the inflammatory wording.
That's never an effective way to get a good response from the
volunteer side of the community.

Nyall




>
> Regards, Mats.E
>
>
> Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood 
> :
>>
>> Posting again without screenshot, which apparently caused my previous email 
>> to await moderator approval.
>>
>> Mats,
>>
>> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5 steps 
>> which got me an XML capabilities document.
>>
>> # standard practice when starting a new instance
>> sudo apt update && sudo apt upgrade -y
>> # reboot if a new kernel was installed by apt upgrade
>> sudo reboot
>> # install qgis-server and apache web server
>> sudo apt install qgis-server apache2 libapache2-mod-fcgid
>> # enable apache fcgi and cgi
>> sudo a2enmod fcgi cgi
>> sudo systemctl restart apache2
>> # in a web browser you should now get an XML document from the following 
>> request
>> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
>>
>> And 3 more steps got me a map
>>
>> # load some test data
>> wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
>> sudo apt install unzip
>> unzip v2.0.zip
>> # in a web browser you should get a map from the following request
>> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
>>
>> 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.
>>
>> 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 https://gis.stackexchange.com/ 
>> with specific details as to what the problem is.
>>
>> --
>> Richard W. Greenwood
>> www.greenwoodmap.com
>
>
>
> --
>
>
> GisKraft, Geodatakonsult
>
> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
> tel: +46 70 595 39 35 / www.giskraft.se
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-18 Thread Mats Elfström
Hi Richard!
I agree, those steps should do it.
I tried to carefully follow the instructions (as I have been told to do) on
this page.
https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems
which differs considerably from your instructions. Are these steps
unneccesary?

1 You do not create a virtual host
2 You do not edit the .hosts file

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.
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?

I agree that this may seem as an HTTP server configuration problem more
than a QGIS Server problem.
But they are connected, QGIS Server is of no use without a HTPP server.
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.

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.
I am not too happy if I have to start over on a new machine.

Regards, Mats.E


Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood <
richard.greenw...@gmail.com>:

> Posting again without screenshot, which apparently caused my previous
> email to await moderator approval.
>
> Mats,
>
> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5
> steps which got me an XML capabilities document.
>
> # standard practice when starting a new instance
> sudo apt update && sudo apt upgrade -y
> # reboot if a new kernel was installed by apt upgrade
> sudo reboot
> # install qgis-server and apache web server
> sudo apt install qgis-server apache2 libapache2-mod-fcgid
> # enable apache fcgi and cgi
> sudo a2enmod fcgi cgi
> sudo systemctl restart apache2
> # in a web browser you should now get an XML document from the following
> request
> http://IP-ADDRESS-OR-HOST-NAME
> /cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
>
> And 3 more steps got me a map
>
> # load some test data
> wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
> sudo apt install unzip
> unzip v2.0.zip
> # in a web browser you should get a map from the following request
> http://IP-ADDRESS-OR-HOST-NAME
> /cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
>
> 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.
>
> 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
> https://gis.stackexchange.com/ with specific details as to what the
> problem is.
>
> --
> Richard W. Greenwood
> www.greenwoodmap.com
>


-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-17 Thread Richard Greenwood
Posting again without screenshot, which apparently caused my previous email
to await moderator approval.

Mats,

I fired up a new Ubuntu 20.04 instance on AWS and did the following 5 steps
which got me an XML capabilities document.

# standard practice when starting a new instance
sudo apt update && sudo apt upgrade -y
# reboot if a new kernel was installed by apt upgrade
sudo reboot
# install qgis-server and apache web server
sudo apt install qgis-server apache2 libapache2-mod-fcgid
# enable apache fcgi and cgi
sudo a2enmod fcgi cgi
sudo systemctl restart apache2
# in a web browser you should now get an XML document from the following
request
http://IP-ADDRESS-OR-HOST-NAME
/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities

And 3 more steps got me a map

# load some test data
wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
sudo apt install unzip
unzip v2.0.zip
# in a web browser you should get a map from the following request
http://IP-ADDRESS-OR-HOST-NAME
/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180

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.

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
https://gis.stackexchange.com/ with
specific details as to what the problem is.

-- 
Richard W. Greenwood
www.greenwoodmap.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-17 Thread Saulteau Don
I haven't had major issues getting a QGIS map server deployed on apache,
but sometimes there would be a thing or two not included in the
step-by-step because individual setups can be different and also require a
diverse level of knowledge and skill sets.

Consider that to get it going you likely had to:

 - deploy a server (windows or linux?)
 - setup a datastore (a database or traditional flat file?)
 - manage and prep your software, data and maps (qgis, qgis server)
 - configure and deploy the web host (iis, apache, nginx?)
 - configure the web host to host the qgis map server

Each one of those components is an industry in itself. As GIS we are often
allowed to or expected to dabble in one or all of them (hence the jack of
all trades, master of none).

So keep trying and reach out for support in any of those specific areas as
it can take a little to learn where the issues actually lie when problems
arise.

Good luck!



Donovan

On Sun, Oct 17, 2021 at 4:03 AM Paolo Cavallini 
wrote:

> Quite strange. We have tens of installations, never a failure.
> Maybe you can get some support?
> Cheers.
>
> Il 17 ottobre 2021 10:44:11 EEST, "giskraft.se" 
> ha scritto:
>>
>> Trust me, Paolo, I would very much more like to be the harbinger of
>> success and confidence in QGIS Server.
>> But in 5-6 years, ”following the instructions carefully” has never
>> worked. Once or twice, I have succeeded after much trial an error, on
>> Windows machines. Linux was supposed to be better. So I decided to give
>> that a try.
>> And I had no problems setting up PostGIS and Geoserver on this Ubuntu
>> machine, by following the instructions. Starting from scratch is not a
>> tempting option.
>>
>> Hälsning / Regards
>> Mats.E
>>
>> Skickat från min / Sent from my iPad, Ursäkta att jag är kortfattad /
>> Excuse my brevity.
>>
>> 17 okt. 2021 kl. 04:58 skrev Paolo Cavallini :
>>
>>  Please do not spread FUD.
>> We have tens of instances running smoothly. Just follow carefully the
>> instructions on a clean machine, and it will work.
>> Thanks.
>>
>> Il 17 ottobre 2021 00:53:58 EEST, "Mats Elfström" <
>> mats.elfst...@giskraft.se> ha scritto:
>>>
>>> Hi!
>>> Thanks to Jorge and Benoit for trying to assist with missing information.
>>> I have attempted to include the suggested code snippets into my virtual
>>> host file, and am at least able to start Apache2 now (there were errors I
>>> had to figure out).
>>> I am not too happy about the resulting mix.
>>>
>>> *Conclusion: FAIL*
>>> qgis_server.fcgi is running locally. check
>>> Apache2 is accessible on port 80 (http://geonet.se) check
>>> But despite all efforts, the request
>>>
>>> http://geonet.se/qgis/my_12?SERVICE=WMS=1.3.0=GetCapabilities
>>> invariably gets a 404 Not Found response.
>>>
>>> *Conclusion*: QGIS Server is not ready for production.
>>> There is a fatal bug, the missing parts of the documentation which
>>> prevents the setup and configuration of the service.
>>>
>>> Now I have to fall back on Geoserver, despite the miserable cartography
>>> and the SLD file difficulties.
>>>
>>> Tired and not so happy, Mats.E
>>>
>>> --
>>>
>>>
>>> *GisKraft*, Geodatakonsult
>>>
>>> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>>> tel: +46 70 595 39 35 / www.giskraft.se
>>>
>>
>> --
>> Sorry for being short
>>
>>
> --
> Sorry for being short
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-17 Thread Paolo Cavallini
Quite strange. We have tens of installations, never a failure.
Maybe you can get some support?
Cheers.

Il 17 ottobre 2021 10:44:11 EEST, "giskraft.se"  ha 
scritto:
>Trust me, Paolo, I would very much more like to be the harbinger of
>success and confidence in QGIS Server. 
>But in 5-6 years, ”following the instructions carefully” has never
>worked. Once or twice, I have succeeded after much trial an error, on
>Windows machines. Linux was supposed to be better. So I decided to give
>that a try. 
>And I had no problems setting up PostGIS and Geoserver on this Ubuntu
>machine, by following the instructions. Starting from scratch is not a
>tempting option. 
>
>Hälsning / Regards
>Mats.E
>
>Skickat från min / Sent from my iPad, Ursäkta att jag är kortfattad /
>Excuse my brevity. 
>
>> 17 okt. 2021 kl. 04:58 skrev Paolo Cavallini :
>> 
>>  Please do not spread FUD.
>> We have tens of instances running smoothly. Just follow carefully the
>instructions on a clean machine, and it will work.
>> Thanks.
>> 
>> Il 17 ottobre 2021 00:53:58 EEST, "Mats Elfström"
> ha scritto:
>>> 
>>> Hi!
>>> Thanks to Jorge and Benoit for trying to assist with missing
>information.
>>> I have attempted to include the suggested code snippets into my
>virtual host file, and am at least able to start Apache2 now (there
>were errors I had to figure out).
>>> I am not too happy about the resulting mix.
>>> 
>>> Conclusion: FAIL
>>> qgis_server.fcgi is running locally. check
>>> Apache2 is accessible on port 80 (http://geonet.se) check
>>> But despite all efforts, the request 
>>>
>http://geonet.se/qgis/my_12?SERVICE=WMS=1.3.0=GetCapabilities
>>> invariably gets a 404 Not Found response.
>>> 
>>> Conclusion: QGIS Server is not ready for production. 
>>> There is a fatal bug, the missing parts of the documentation which
>prevents the setup and configuration of the service.
>>> 
>>> Now I have to fall back on Geoserver, despite the miserable
>cartography and the SLD file difficulties.
>>> 
>>> Tired and not so happy, Mats.E
>>> 
>>> -- 
>>> 
>>> 
>>> GisKraft, Geodatakonsult
>>> 
>>> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>>> tel: +46 70 595 39 35 / www.giskraft.se
>>> 
>> 
>> -- 
>> Sorry for being short

-- 
Sorry for being short___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-17 Thread giskraft . se
Trust me, Paolo, I would very much more like to be the harbinger of success and 
confidence in QGIS Server. 
But in 5-6 years, ”following the instructions carefully” has never worked. Once 
or twice, I have succeeded after much trial an error, on Windows machines. 
Linux was supposed to be better. So I decided to give that a try. 
And I had no problems setting up PostGIS and Geoserver on this Ubuntu machine, 
by following the instructions. Starting from scratch is not a tempting option. 

Hälsning / Regards
Mats.E

Skickat från min / Sent from my iPad, Ursäkta att jag är kortfattad / Excuse my 
brevity. 

> 17 okt. 2021 kl. 04:58 skrev Paolo Cavallini :
> 
>  Please do not spread FUD.
> We have tens of instances running smoothly. Just follow carefully the 
> instructions on a clean machine, and it will work.
> Thanks.
> 
> Il 17 ottobre 2021 00:53:58 EEST, "Mats Elfström"  
> ha scritto:
>> 
>> Hi!
>> Thanks to Jorge and Benoit for trying to assist with missing information.
>> I have attempted to include the suggested code snippets into my virtual host 
>> file, and am at least able to start Apache2 now (there were errors I had to 
>> figure out).
>> I am not too happy about the resulting mix.
>> 
>> Conclusion: FAIL
>> qgis_server.fcgi is running locally. check
>> Apache2 is accessible on port 80 (http://geonet.se) check
>> But despite all efforts, the request 
>> http://geonet.se/qgis/my_12?SERVICE=WMS=1.3.0=GetCapabilities
>> invariably gets a 404 Not Found response.
>> 
>> Conclusion: QGIS Server is not ready for production. 
>> There is a fatal bug, the missing parts of the documentation which prevents 
>> the setup and configuration of the service.
>> 
>> Now I have to fall back on Geoserver, despite the miserable cartography and 
>> the SLD file difficulties.
>> 
>> Tired and not so happy, Mats.E
>> 
>> -- 
>> 
>> 
>> GisKraft, Geodatakonsult
>> 
>> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>> tel: +46 70 595 39 35 / www.giskraft.se
>> 
> 
> -- 
> Sorry for being short
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-16 Thread Paolo Cavallini
Please do not spread FUD.
We have tens of instances running smoothly. Just follow carefully the 
instructions on a clean machine, and it will work.
Thanks.

Il 17 ottobre 2021 00:53:58 EEST, "Mats Elfström"  
ha scritto:
>Hi!
>Thanks to Jorge and Benoit for trying to assist with missing
>information.
>I have attempted to include the suggested code snippets into my virtual
>host file, and am at least able to start Apache2 now (there were errors
>I
>had to figure out).
>I am not too happy about the resulting mix.
>
>*Conclusion: FAIL*
>qgis_server.fcgi is running locally. check
>Apache2 is accessible on port 80 (http://geonet.se) check
>But despite all efforts, the request
>http://geonet.se/qgis/my_12?SERVICE=WMS=1.3.0=GetCapabilities
>invariably gets a 404 Not Found response.
>
>*Conclusion*: QGIS Server is not ready for production.
>There is a fatal bug, the missing parts of the documentation which
>prevents
>the setup and configuration of the service.
>
>Now I have to fall back on Geoserver, despite the miserable cartography
>and
>the SLD file difficulties.
>
>Tired and not so happy, Mats.E
>
>-- 
>
>
>*GisKraft*, Geodatakonsult
>
>Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>tel: +46 70 595 39 35 / www.giskraft.se

-- 
Sorry for being short___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-16 Thread Mats Elfström
Hi!
Thanks to Jorge and Benoit for trying to assist with missing information.
I have attempted to include the suggested code snippets into my virtual
host file, and am at least able to start Apache2 now (there were errors I
had to figure out).
I am not too happy about the resulting mix.

*Conclusion: FAIL*
qgis_server.fcgi is running locally. check
Apache2 is accessible on port 80 (http://geonet.se) check
But despite all efforts, the request
http://geonet.se/qgis/my_12?SERVICE=WMS=1.3.0=GetCapabilities
invariably gets a 404 Not Found response.

*Conclusion*: QGIS Server is not ready for production.
There is a fatal bug, the missing parts of the documentation which prevents
the setup and configuration of the service.

Now I have to fall back on Geoserver, despite the miserable cartography and
the SLD file difficulties.

Tired and not so happy, Mats.E

-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-08 Thread Mats Elfström
Many thanks, Jorge. That was very decent of you.
Now I will see if I can braid those snippets into my server configuration.
I will report back later.

Best regards, Mats.E
-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-08 Thread Paolo Cavallini
we also have many installation. in general following the instructions in
the manual works well, what is your problem?
cheers.

Il 08/10/21 12:50, Jorge Gustavo Rocha ha scritto:
> Hi Mats,
> 
> I have QGIS Server running under Apache in several public institutions.
> My apache2/conf-available files are attached.
> 
> It runs pretty well under Apache.
> 
> Regards,
> 
> Jorge Gustavo
> 
> On 08/10/21 11:25, Mats Elfström wrote:
>> Hi?
>> Is anybody using, or know of someplace where QGIS Server is used in a
>> professional and public service, using Apache as web server?
>> I would be immensively and eternally grateful if anybody in a position
>> to do so would share the secrets of the Apache setup and configuration
>> to act as web server to the QGIS fcgi service. Preferably also how one
>> can rewrite the url so that  a GetCapabilites request to a workspace
>> folder will return a Geoserver equivalent response. 
>>
>> Many many thanks beforehand, Mats.E
>> -- 
>>
>> *
>> *
>>
>> *GisKraft*, Geodatakonsult
>>
>> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>> tel: +46 70 595 39 35 / www.giskraft.se 
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

-- 
Paolo Cavallini
www.faunalia.eu - QGIS.org
training, support, development on QGIS, PostGIS and more
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-08 Thread Jorge Gustavo Rocha
Hi Mats,

I have QGIS Server running under Apache in several public institutions.
My apache2/conf-available files are attached.

It runs pretty well under Apache.

Regards,

Jorge Gustavo

On 08/10/21 11:25, Mats Elfström wrote:
> Hi?
> Is anybody using, or know of someplace where QGIS Server is used in a
> professional and public service, using Apache as web server?
> I would be immensively and eternally grateful if anybody in a position
> to do so would share the secrets of the Apache setup and configuration
> to act as web server to the QGIS fcgi service. Preferably also how one
> can rewrite the url so that  a GetCapabilites request to a workspace
> folder will return a Geoserver equivalent response. 
>
> Many many thanks beforehand, Mats.E
> -- 
>
> *
> *
>
> *GisKraft*, Geodatakonsult
>
> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
> tel: +46 70 595 39 35 / www.giskraft.se 
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Define ENABLE_USR_LIB_CGI_BIN
FcgidProcessLifeTime 8200
FcgidIOTimeout 8200
FcgidConnectTimeout 400
FcgidMaxRequestLen 10



Define ENABLE_USR_LIB_CGI_BIN



Define ENABLE_USR_LIB_CGI_BIN



# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /cgi-bin/ /usr/local/bin/

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted




# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
SetEnv PGSERVICEFILE /home/qgis/.pg_service.conf

FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgisserver.log
# 0 INFO (log all requests), 1 WARNING, 2 CRITICAL (suitable for production 
purposes).
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0

# Virtual display
FcgidInitialEnv DISPLAY ":99"

FcgidInitialEnv QGIS_SERVER_IGNORE_BAD_LAYERS 1
FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING 1
FcgidInitialEnv QGIS_SERVER_MAX_THREADS -1

# Required
# See https://github.com/qgis/QGIS/issues/31675
# Required to get the ortos from DGT
# scp /home/jgr/.local/share/QGIS/QGIS3/profiles/geodashboard/qgis-auth.db 
q...@homologacao.geomaster.pt:qgisserverdb qgis-auth.db
# Evitar o erro: Download of capabilities failed: SSL handshake failed
FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH "/home/qgis/qgisserverdb/"
FcgidInitialEnv QGIS_AUTH_PASSWORD_FILE "/home/qgis/qgisserverdb/qgis-auth.db"

RewriteEngine on
RewriteOptions Inherit
RewriteRule ^/postgresql/(.*)/(.*)/(.*)/cgi-bin/qgis_mapserv.fcgi 
/cgi-bin/qgis_mapserv.fcgi 
[NC,PT,E=QGIS_PROJECT_FILE:postgresql:?service=$1=disable=$2=$3]

# CORS (for debugging; use carefully in production)
# Always set these headers.
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, 
origin, authorization, accept, client-security-token"

# Added a rewrite to respond with a 200 SUCCESS on every OPTIONS request.
RewriteEngine On
RewriteOptions Inherit
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS server in professional use?

2021-10-08 Thread Mats Elfström
Hi?
Is anybody using, or know of someplace where QGIS Server is used in a
professional and public service, using Apache as web server?
I would be immensively and eternally grateful if anybody in a position to
do so would share the secrets of the Apache setup and configuration to act
as web server to the QGIS fcgi service. Preferably also how one can rewrite
the url so that  a GetCapabilites request to a workspace folder will return
a Geoserver equivalent response.

Many many thanks beforehand, Mats.E
-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user