[MapServer-users] Mapserver is limited to reading only from /var/www

Marcin Niemyjski mniemyjski at cloudferro.com
Fri Aug 18 07:33:56 PDT 2023


Hello, I have a problem,


Specifically, my mapserver can only read files from the /var/www folder. When I try to read a file from any other folder, I receive the following error:


msDrawRasterLayerLow(): Unable to access file. Corrupt, empty, or missing file '/home/ubuntu/PycharmProjects/flask/results/qwert/PL2_08-DEM.tif' for layer 'Result from 2023_08_18__09_52_33'. /home/ubuntu/PycharmProjects/flask/results/qwert/PL2_08-DEM.tif: Permission denied.


Attempts to add to apache2.conf

<Directory /home/ubuntu/PycharmProjects/flask/results/qwert/>
      Options Indexes FollowSymLinks
      AllowOverride None
      Require all granted
</Directory>


and changing the group owner to www-data doesn't make any difference and setting sudo chmod 777 doesn't work either.


Of course, I restart Apache :)

Any ideas, because I'm already out of them, haha :)

Best,

Marcin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230818/6241a7eb/attachment.htm>


More information about the MapServer-users mailing list