[MapServer-users] msLoadConfig error on Ubuntu 23.04

Frank Sokolic sokolic at worldonline.co.za
Wed May 17 08:11:04 PDT 2023


Hi Jörg,

Thanks for your advice. Setting the config file in the apache-config 
worked and now MapServer is working.

Now I can carry on developing my project :-)

Frank.


On 2023/05/17 15:08, Jörg Thomsen (WhereGroup) wrote:
> 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
>




More information about the MapServer-users mailing list