[MapServer-users] mapserver.conf question

Brent Wood pcreso at yahoo.com
Mon May 27 17:52:14 PDT 2024


Hi, 

I'm coming back to mapserver after many years away & have a question. Probably more later...
I'm setting things up & get the error message: 
msLoadConfig(): Unable to access file. See mapserver.org/mapfile/config.html for more information. 

I'm running on Linux Mint (Ubuntu) so the default location is presumably /usr/local/etc/mapserver.conf
I have copied/renamed the sample file here & given read access to www-data. Still get the error message.
The docs suggest using the MAPSERVER_CONFIG_FILE environment variable.
I entered the following into the /etc/environment file, which I thought was supposed to work (according to Dr Google), 
MAPSERVER_CONFIG_FILE="/usr/local/etc/mapserver.conf"

I still get the error, and if I open a new shell (as me), the variable is not set, so that isn't working as I expected.

Can anyone suggest how/where the environment variable should be set for mapserver to find the file? (or any other way to get this working) 

I think it would be useful to include this info in the docs, as it is not apparent to me, and perhaps others.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240528/9ce707d9/attachment.htm>


More information about the MapServer-users mailing list