<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="flex flex-grow flex-col gap-3">
<div class="min-h-[20px] flex flex-col items-start gap-3 overflow-x-auto whitespace-pre-wrap break-words">
<div class="markdown prose w-full break-words dark:prose-invert light elementToProof">
<p class="elementToProof">Hello, I have a problem,</p>
<p class="elementToProof"><br>
</p>
<p class="elementToProof">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:</p>
<p class="elementToProof"><br>
</p>
<p class="elementToProof">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.</p>
<p class="elementToProof"><br>
</p>
<p class="elementToProof">Attempts to add to apache2.conf<br>
</p>
<div class="elementToProof ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-top: 0px; margin-bottom: 0px; color: rgb(0, 0, 0);">
<Directory /home/ubuntu/PycharmProjects/flask/results/qwert/>
<div>      Options Indexes FollowSymLinks</div>
<div>      AllowOverride None</div>
<div>      Require all granted</div>
</Directory><br>
</div>
<p class="elementToProof"><br>
</p>
<p class="elementToProof">and changing the group owner to www-data doesn't make any difference and setting sudo chmod 777 doesn't work either.</p>
<p class="elementToProof"><br>
</p>
<p>Of course, I restart Apache :)</p>
<p>Any ideas, because I'm already out of them, haha :)</p>
<p class="elementToProof">Best,</p>
<p class="elementToProof">Marcin</p>
</div>
</div>
</div>
<br>
</body>
</html>