Re: [Qgis-user] Building Qgis Server only

2019-11-26 Thread Henrik Uggla
Hi!

I managed to create a Docker container with Qgis Server on Alpine:
https://hub.docker.com/repository/docker/huggla/qgisserver-alpine

Feedback is welcome.

Regards
HU


Från: Qgis-user  för Henrik Uggla 

Skickat: den 7 januari 2019 12:47:21
Till: Andreas Neumann
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Building Qgis Server only

Thank you very much!


Från: Andreas Neumann 
Skickat: den 7 januari 2019 12:44:18
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: SV: [Qgis-user] Building Qgis Server only

Hi Henrik,

Here are my cmake parameters (for version 3.4.x):

cmake /build/QGIS -GNinja -DWITH_STAGED_PLUGINS=OFF -DCMAKE_INSTALL_PREFIX=/usr 
-DWITH_GRASS=OFF -DWITH_GRASS7=OFF -DSUPPRESS_QT_WARNINGS=ON -DENABLE_TESTS=OFF 
-DWITH_QSPATIALITE=OFF -DWITH_QWTPOLAR=OFF -DWITH_APIDOC=OFF -DWITH_ASTYLE=OFF 
-DWITH_DESKTOP=OFF -DWITH_SERVER=ON -DWITH_SERVER_PLUGINS=ON -DWITH_BINDINGS=ON 
-DWITH_QTMOBILITY=OFF -DWITH_QUICK=OFF -DWITH_3D=OFF -DWITH_GUI=OFF 
-DDISABLE_DEPRECATED=ON -DSERVER_SKIP_ECW=ON -DWITH_GEOREFERENCER=OFF

Greetings,

Andreas

On 2019-01-07 12:34, Henrik Uggla wrote:

I'm not able to find how to build Qgis Server without desktop anywhere in the 
documentation (https://github.com/qgis/QGIS/blob/master/INSTALL). How is it 
done?

Från: Andreas Neumann mailto:a.neum...@carto.net>>
Skickat: den 7 januari 2019 11:26:30
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Ämne: Re: [Qgis-user] Building Qgis Server only

Hi Henrik,

You can now build QGIS Server without desktop, but not without X. You still 
need X for PDF generation (GetPrint command).

If you are interested, I have docker configurations for QGIS Server 2.x. and 
3.x based on Ubuntu and NginX server. Still struggling a bit with NGinX URL 
forwarding, but hoping to solve it tomorrow with the help of Marco B.

I could share the configuration, if it helps for you.

Greetings,

Andreas

On 2019-01-07 11:01, Henrik Uggla wrote:

I would like to create a Qgis Server Docker container based on Alpine. Is it 
possible to build Qgis Server, without the desktop applications, on a server 
that doesn't run X?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org><mailto:Qgis-user@lists.osgeo.org<mailto: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
___
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] Building Qgis Server only

2019-01-07 Thread Henrik Uggla
Thank you very much!


Från: Andreas Neumann 
Skickat: den 7 januari 2019 12:44:18
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: SV: [Qgis-user] Building Qgis Server only

Hi Henrik,

Here are my cmake parameters (for version 3.4.x):

cmake /build/QGIS -GNinja -DWITH_STAGED_PLUGINS=OFF -DCMAKE_INSTALL_PREFIX=/usr 
-DWITH_GRASS=OFF -DWITH_GRASS7=OFF -DSUPPRESS_QT_WARNINGS=ON -DENABLE_TESTS=OFF 
-DWITH_QSPATIALITE=OFF -DWITH_QWTPOLAR=OFF -DWITH_APIDOC=OFF -DWITH_ASTYLE=OFF 
-DWITH_DESKTOP=OFF -DWITH_SERVER=ON -DWITH_SERVER_PLUGINS=ON -DWITH_BINDINGS=ON 
-DWITH_QTMOBILITY=OFF -DWITH_QUICK=OFF -DWITH_3D=OFF -DWITH_GUI=OFF 
-DDISABLE_DEPRECATED=ON -DSERVER_SKIP_ECW=ON -DWITH_GEOREFERENCER=OFF

Greetings,

Andreas

On 2019-01-07 12:34, Henrik Uggla wrote:

I'm not able to find how to build Qgis Server without desktop anywhere in the 
documentation (https://github.com/qgis/QGIS/blob/master/INSTALL). How is it 
done?

Från: Andreas Neumann mailto:a.neum...@carto.net>>
Skickat: den 7 januari 2019 11:26:30
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Ämne: Re: [Qgis-user] Building Qgis Server only

Hi Henrik,

You can now build QGIS Server without desktop, but not without X. You still 
need X for PDF generation (GetPrint command).

If you are interested, I have docker configurations for QGIS Server 2.x. and 
3.x based on Ubuntu and NginX server. Still struggling a bit with NGinX URL 
forwarding, but hoping to solve it tomorrow with the help of Marco B.

I could share the configuration, if it helps for you.

Greetings,

Andreas

On 2019-01-07 11:01, Henrik Uggla wrote:

I would like to create a Qgis Server Docker container based on Alpine. Is it 
possible to build Qgis Server, without the desktop applications, on a server 
that doesn't run X?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org><mailto:Qgis-user@lists.osgeo.org<mailto: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] Building Qgis Server only

2019-01-07 Thread Henrik Uggla
I'm not able to find how to build Qgis Server without desktop anywhere in the 
documentation (https://github.com/qgis/QGIS/blob/master/INSTALL). How is it 
done?

Från: Andreas Neumann 
Skickat: den 7 januari 2019 11:26:30
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Building Qgis Server only

Hi Henrik,

You can now build QGIS Server without desktop, but not without X. You still 
need X for PDF generation (GetPrint command).

If you are interested, I have docker configurations for QGIS Server 2.x. and 
3.x based on Ubuntu and NginX server. Still struggling a bit with NGinX URL 
forwarding, but hoping to solve it tomorrow with the help of Marco B.

I could share the configuration, if it helps for you.

Greetings,

Andreas

On 2019-01-07 11:01, Henrik Uggla wrote:

I would like to create a Qgis Server Docker container based on Alpine. Is it 
possible to build Qgis Server, without the desktop applications, on a server 
that doesn't run X?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto: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] Building Qgis Server only

2019-01-07 Thread Henrik Uggla
Hi Andreas!

I really can't see why Qgis Server would need X. If I build Qgis Server on a 
server with X, will the resulting package work on a server without X?

It would be very helpful if you could share your configuration with me.

Regards,
Henrik


Från: Andreas Neumann 
Skickat: den 7 januari 2019 11:26
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Building Qgis Server only

Hi Henrik,

You can now build QGIS Server without desktop, but not without X. You still 
need X for PDF generation (GetPrint command).

If you are interested, I have docker configurations for QGIS Server 2.x. and 
3.x based on Ubuntu and NginX server. Still struggling a bit with NGinX URL 
forwarding, but hoping to solve it tomorrow with the help of Marco B.

I could share the configuration, if it helps for you.

Greetings,

Andreas

On 2019-01-07 11:01, Henrik Uggla wrote:

I would like to create a Qgis Server Docker container based on Alpine. Is it 
possible to build Qgis Server, without the desktop applications, on a server 
that doesn't run X?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto: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

[Qgis-user] Building Qgis Server only

2019-01-07 Thread Henrik Uggla
I would like to create a Qgis Server Docker container based on Alpine. Is it 
possible to build Qgis Server, without the desktop applications, on a server 
that doesn't run X?
___
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] Port number in GetCapabilities

2017-06-02 Thread Henrik Uggla
Thanks for your tip! Adding the port number for every single layer isn't an 
option though. Also, which I didn't mention, we have also published port 80. We 
wish to use port 80 for cached content and 81 for non-cached. For both to work 
simultaneously the URLs in the WMS GetCapabilities response need to be dynamic.


Regards

Henrik



Från: Qgis-user <qgis-user-boun...@lists.osgeo.org> för st_kie...@web.de 
<st_kie...@web.de>
Skickat: den 2 juni 2017 20:21
Till: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Port number in GetCapabilities


Hi,

I read your post just for curiosty, in fact I have no experience with Qgis 
Server. Otherwise while exploring this feature I found the following in the 
Documentation:

"If you want QGIS Server to advertise specific request URLs in the WMS 
GetCapabilities response, enter the corresponding URL in the Advertised URL 
field."[1] Maybe that helps.


Cheers.


Stefan


[1] 
http://docs.qgis.org/2.14/en/docs/user_manual/working_with_ogc/ogc_server_support.html#wms-capabilities

Am 02.06.2017 um 15:19 schrieb Henrik Uggla:

Hi!


I've installed Qgis Server on Linux and have set it up to listen on port 81. My 
problem is that the layer urls in the GetCapabilities response are written 
without port number. How can I fix this? (I've confirmed that the request Host 
header includes the port)


regards

HU



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto: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

[Qgis-user] Port number in GetCapabilities

2017-06-02 Thread Henrik Uggla
Hi!


I've installed Qgis Server on Linux and have set it up to listen on port 81. My 
problem is that the layer urls in the GetCapabilities response are written 
without port number. How can I fix this? (I've confirmed that the request Host 
header includes the port)


regards

HU
___
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] Problems with Qgis Server 2.12

2015-10-28 Thread Henrik Uggla
I tried to set QGIS_AUTH_DB_DIR_PATH and the error message in the Apache log 
disappeared. I still got the "WMS configuration error" message though. It 
turned out to be the map parameter. In 2.8 you did not have to give the map 
parameter when there were only one .qgs-file was present. In 2.12 it is 
obviously mandatory. Thanks for your input!


/Henrik




Från: la...@shafferinteractive.com <la...@shafferinteractive.com> för Larry 
Shaffer <lar...@dakotacarto.com>
Skickat: den 27 oktober 2015 19:22
Till: Henrik Uggla
Kopia: Andreas Neumann; qgis-user
Ämne: Re: [Qgis-user] Problems with Qgis Server 2.12

Hi Henrik,

This is due to the new authentication system in 2.12 [0], and the support I 
added to Server. When running Server, projects loaded that contain an 
authentication configuration (instead of clear text username/password) for 
accessing a secured resource, e.g. WMS using Basic Auth and HTTPS, need to be 
able to access the new 'qgis-auth.db'.

The auth configurations are encrypted using a master password and stored in the 
qgis-auth.db, which by default is located at ~/.qgis2/qgis-auth.db for a 
desktop QGIS user. To enable Server support, I added two environment variables 
to overcome the problems associated with automatically loading projects [1], 
which are not yet fully documented:

* QGIS_AUTH_DB_DIR_PATH - Directory where an existing qgis-auth.db is located 
or created if not present. This directory needs to be *writeable* by Server's 
FCGI process user (which may differ from Apache's).

* QGIS_AUTH_PASSWORD_FILE - File path to file with master password as first 
line. This is similar to password files used by database servers. The env 
variable is read during QGIS startup, then removed from the env variables 
space, so it is not available later on to the FCGI process or any Server 
plugins. Since all auth configurations are encrypted, a master password is 
required to access the qgis-auth.db, if a loaded project uses auth configs 
stored in the qgis-auth.db.

What you have found is possibly a bug: the QGIS_AUTH_DB_DIR_PATH is now 
required to start Server, even if no loaded project make use of the new auth 
system. This is not really a bug if one considers the auth system setup 
mandatory from 2.12+, like it is on Desktop. At the minimum, a 
missing/non-writeable qgis-auth.db directory should throw a warning and not an 
error, allowing Server to launch.

Please try setting QGIS_AUTH_DB_DIR_PATH to a directory writeable by the 
Server's FCGI process user and see if Server starts normally. Then check that 
qgis-auth.db is created in the directory.

Here is how to set the env variables for the FCGI process in Apache [2,3]. 
Note, setting them at the Apache process level will not work.


[0] 
https://github.com/dakcarto/QGIS-Enhancement-Proposals/blob/auth-system/qep-14-authentication-system.rst
[1] https://github.com/qgis/QGIS/blob/master/src/server/qgsserver.cpp#L359-L362
[2] https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidinitialenv
[3] http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html  (-initial-env 
options)

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

QGIS Support/Development | Boundless<http://boundlessgeo.com/>

On Tue, Oct 27, 2015 at 4:43 AM, Henrik Uggla 
<henrik.ug...@kristianstad.se<mailto:henrik.ug...@kristianstad.se>> wrote:
It seems to be caused by some file somewhere having wrong permissions. This 
error is from my Apache log:
ERROR: Auth db directory path could not be created

Googling the phrase I found this:
http://qgis.org/api/qgsauthmanager_8cpp_source.html

Where is this db directory path supposed to be created?

Henrik


Från: Qgis-user 
<qgis-user-boun...@lists.osgeo.org<mailto:qgis-user-boun...@lists.osgeo.org>> 
för Andreas Neumann <a.neum...@carto.net<mailto:a.neum...@carto.net>>
Skickat: den 27 oktober 2015 05:37
Till: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Ämne: Re: [Qgis-user] Problems with Qgis Server 2.12

Hi Henrik,

Any errors in the Apache log files? Or QGIS server log file?

Did you specify the map parameter or use an according Apache rewrite rule?

Is there an X-Server running?

Andreas

On 26.10.2015 22:11, Henrik Uggla wrote:
> I'm using Ubuntu 12.04 and upgraded Qgis Server from version 2.8.3 with 
> Ubuntugis dependencies to 2.12 with Ubuntugis dependencies. Now no Qgis 
> Server web services is working anymore. All I get when I try 
> service=WMS=GetCapabilities is:
>
> 
> There was an error reading the project file or the SLD configuration
> 
>
> Is anyone else experiencing this?
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/qgis-user

_

Re: [Qgis-user] Problems with Qgis Server 2.12

2015-10-27 Thread Henrik Uggla
It seems to be caused by some file somewhere having wrong permissions. This 
error is from my Apache log:
ERROR: Auth db directory path could not be created

Googling the phrase I found this:
http://qgis.org/api/qgsauthmanager_8cpp_source.html

Where is this db directory path supposed to be created?

Henrik


Från: Qgis-user <qgis-user-boun...@lists.osgeo.org> för Andreas Neumann 
<a.neum...@carto.net>
Skickat: den 27 oktober 2015 05:37
Till: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Problems with Qgis Server 2.12

Hi Henrik,

Any errors in the Apache log files? Or QGIS server log file?

Did you specify the map parameter or use an according Apache rewrite rule?

Is there an X-Server running?

Andreas

On 26.10.2015 22:11, Henrik Uggla wrote:
> I'm using Ubuntu 12.04 and upgraded Qgis Server from version 2.8.3 with 
> Ubuntugis dependencies to 2.12 with Ubuntugis dependencies. Now no Qgis 
> Server web services is working anymore. All I get when I try 
> service=WMS=GetCapabilities is:
>
> 
> There was an error reading the project file or the SLD configuration
> 
>
> Is anyone else experiencing this?
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Problems with Qgis Server 2.12

2015-10-26 Thread Henrik Uggla
I'm using Ubuntu 12.04 and upgraded Qgis Server from version 2.8.3 with 
Ubuntugis dependencies to 2.12 with Ubuntugis dependencies. Now no Qgis Server 
web services is working anymore. All I get when I try 
service=WMS=GetCapabilities is:


There was an error reading the project file or the SLD configuration


Is anyone else experiencing this?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user