I'm trying to set up a testing environment for Mapserver 8.4.0 in WSL/Ubuntu, 
but I keep getting the error: msLoadMap(): Unable to access file. 
(/home/erik/maps/kulturminner/kulturminner.map)

As far as I know, my setup is mostly the same as for my "real" server where I 
run 7.6.4.

I have a mapserver.conf-file with a MS_MAP_PATTERN, and that works fine.

Files and folders permissions:
Folders: drwxr-xr-x (chmod 755)
Files:  -rw-r--r-- (chmod 644)

The owner is www-data, but I've also tried a regular user, which is what I use 
for the server where I run 7.6.4.

My Apache-setup looks like this:
<VirtualHost *:80>
    SetEnv MAPSERVER_CONFIG_FILE /usr/local/etc/mapserver.conf
    ServerAdmin webmaster@localhost
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    RewriteEngine On
    RewriteRule ^/wms/(.*) /cgi-bin/mapserv.fcgi?map=/home/erik/maps/$1/$1.map 
[PT,QSA]
    <Directory "/usr/lib/cgi-bin/">
        AllowOverride None
        Options +ExecCGI -MultiViews +FollowSymLinks
        AddHandler fcgid-script .fcgi
        Require all granted
    </Directory>
    Header set Access-Control-Allow-Origin "*"
</VirtualHost>

URLs
Both URLs gives the same error
http://localhost/cgi-bin/mapserv?map=/home/erik/maps/kulturminner/kulturminner.map
http://localhost/wms/kulturminner





Appreciate any help


Erik
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to