Hi Michaël,
you are right, it depends on the cgi-mode.
SetEnv in apache is used für cgi-variables and
cgidInitialEnv is used für fast-cgi-variabes
it's a general issue not only windows and more a webserver issue than
one of MapServer.
Jörg
Am 12.12.22 um 15:22 schrieb Kalbermatten Michaël:
Hi everbody,
I just spend a couple of hours trying to set up Mapserver 8.0 on
Windows. To do that, I downloaded the latest stable release from
GisInternals.
I am using Apache and FastCGI as webserver.
Everything went smoothly until I tried to make Mapserver load the new
needed configuration file. It was just always claiming that it couln’t
load this file (“msLoadConfig(): Unable to access file.”), but I had set
“SetEnv MAPSERVER_CONFIG_FILE” in my Apache configuration. Even setting
MAPSERVER_CONFIG_FILE in a global system variable did not solve the issue.
After quite a while, I found this issue on Mapserver’s issue tracker:
https://github.com/MapServer/MapServer/issues/6411
<https://github.com/MapServer/MapServer/issues/6411>
This had not a lot to do with my issue, but I discovered the existence
of FcgidInitialEnv. Setting this variable (FcgidInitialEnv
MAPSERVER_CONFIG_FILE "C:/whereever/mapserver.conf") solved the issue.
So, is it mandatory to set FcgidInitialEnv when using Mapserver with
FastCGI? If yes, wouldn’t it be good to add something to the
documentation (https://mapserver.org/mapfile/config.html
<https://mapserver.org/mapfile/config.html>).
Moreover, I spied in the ms4w 5 package. It seemed to me that they were
using FastCGI as well, but I could not find anything regarding
FcgidInitialEnv, thus my question…
Thanks a lot to anyone who would have some information regarding that.
Best regards
Michael
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Viele Grüße,
Jörg Thomsen
---------------------------------------------
Where2B Konferenz 2022
15. Dezember 2022 in Bonn und Online
where2b-conference.com
---------------------------------------------
Jörg Thomsen
WhereGroup GmbH
Bundesallee 23
10717 Berlin
Germany
Tel: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 5130 278 11
[email protected]
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users