Page 1 of 1

Photo Gallery

Posted: Sun Sep 27, 2020 6:29 pm
by tallbastard
Recently added Photo Gallery to a dietpi and can access the interface fine, though it says no images found in the top level display /gallery also can activate admin tools fine.

When visiting this page it lists available directories/galleries but each reports no images? There are images in each so that's weird but only those uploaded via the terminal display within the gallery view whilst others uploaded via the admin interface form do not display and it seems that those files are written without a read bit?

Am not very confident about making changes to try and overcome permission issues as these are written by the tools upload script? Perhaps am missing something about this tool that others can point out or perhaps advise me to use an alternative ?

root@berry4diet:/var/www/gallery/BerryDiet# ls -la
total 3448
drwxr-xr-x 2 root root 4096 Sep 27 16:00 .
drwxr-xr-x 6 root root 4096 Sep 9 23:07 ..
-rwxr----- 1 root root 3512521 Sep 9 22:43 20190329_174108.jpg
-rw-r--r-- 1 root root 7641 Mar 2 2014 download.png

please advise

Re: Photo Gallery

Posted: Sun Sep 27, 2020 10:54 pm
by Joulinar
Hi,

many thanks for your report. Do you installed Image Gallery from dietpi-software? viewtopic.php?f=8&t=5&start=40#p480

Or some other software?

Maybe you pictures would need to be owned by user www-data, as this the user executing the web server. And usually this user would need to have read access to the files.