[MapServer-users] msLoadConfig error on Ubuntu 23.04

Jörg Thomsen (WhereGroup) joerg.thomsen at wheregroup.com
Wed May 17 06:08:03 PDT 2023


Hello Frank,

>> Is there anything obvious I'm doing wrong?
no....
have you checked whether the variable is really set with the correct 
name and value/path+filename?
-> printenv | grep 'MAPSERVER'

I remember a few times MapServer needed +RW instead of +R

Usually I don't use system variables, for me it works fine setting the 
config-file in the apache-config like

SetEnv MAPSERVER_CONFIG_FILE /data/config/mapserver/mapserver.conf
FcgidInitialEnv MAPSERVER_CONFIG_FILE /data/config/mapserver/mapserver.conf

(depending on cgi / fcgi)

Jörg

Am 17.05.23 um 12:39 schrieb Frank Sokolic:
> Hi MapServer users,
> 
> I'm having problems getting MapServer 8 to read the conf file on my 
> Ubuntu 23.04 Lunar Lobster machine. I installed MapServer using the 
> command "sudu apt install cgi-mapserver" and this installs 
> 8.0.0-3build2. However, when I test the installation I get an error:
> 
> "msLoadConfig(): Unable to access file. See 
> mapserver.org/config_file.html for more information."
> 
> 
> I have created a conf file that looks like this:
> CONFIG
>    MAPS
>      ECSRP_MAPFILE "/var/www/ecsrp/mapfiles/ecsrp.map"
>    END
> END
> 
> 
> I have created a system-wide environment variable pointing to the conf 
> file:
> MAPSERVER_CONFIG_FILE=/usr/local/etc/mapserver.conf
> 
> 
> I have granted read access to Owner/Group/Others on both mapserver.conf 
> and ecsrp.map but still get the msLoadConfig() error.
> 
> 
> Is there anything obvious I'm doing wrong?
> 
> 
> Regards, Frank.
> 
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Viele Grüße,
Jörg Thomsen
---------------------------------------------
Aufwind durch Wissen!
Web-Seminare und Online-Schulungen
bei der www.foss-academy.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	

joerg.thomsen at wheregroup.com
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



More information about the MapServer-users mailing list