Hi Andreas, On Mon, 16. Feb 2015 at 10:41:23 +0100, Andreas Neumann wrote: > 1. should it be QGIS_OPTIONS_PATH or QGIS_OPTION_PATH? I see both variations > out there.
$ git grep -n QGIS_OPTIONS
ChangeLog:9620: mapserver QGIS_OPTIONS_PATH support, fixes #10327
src/server/qgis_map_serv.cpp:253: QString optionsPath = getenv(
"QGIS_OPTIONS_PATH" );
So it's QGIS_OPTIONS_PATH.
> 2. So if, my ini-file is in /etc/QGIS/QGIS.ini I need to point
> QGIS_OPTIONS_PATH to /etc/QGIS ?
With QGIS_OPTIONS_PATH set to /etc/qgis it looks in (from strace -f -p
$PIDOFAPACHESLAVE -e open):
[pid 6047] open("/etc/qgis/QGIS/QGIS2.ini", O_RDONLY|O_CLOEXEC) = -1 ENOENT
(No such file or directory)
[pid 6047] open("/etc/qgis/QGIS.ini", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
file or directory)
[pid 6047] open("/etc/xdg/QGIS/QGIS2.ini", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No
such file or directory)
[pid 6047] open("/etc/xdg/QGIS.ini", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
file or directory)
> 3. should it be QGIS.ini or QGIS2.ini ?
Apparently both work and QGIS2.ini in the QGIS subdirectory takes precedence.
> I found documentation at
> http://docs.qgis.org/2.6/uk/docs/user_manual/working_with_ogc/ogc_server_support.html#environment-variables
> ----------------
>
>
> QGIS_OPTIONS_PATH: The variable specifies path to directory with
> settings. It works the same ways as QGIS application –optionspath
> option. It is looking for settings file in
> <QGIS_OPTIONS_PATH>/QGIS/QGIS2.ini. For exaple, to set QGIS server
> on Apache to use /path/to/config/QGIS/QGIS2.ini settings file, add
> to Apache config:
>
> SetEnv QGIS_OPTIONS_PATH "/path/to/config/"
>
> ----------------
>
> Is this information wrong then?
No, but it describes just the first option.
Jürgen
--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
QGIS release manager (PSC) Germany IRC: jef on FreeNode
signature.asc
Description: Digital signature
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
