Photo Gallery

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
photogalleryscreeshot.tiff (65.9 KB)


many thanks for your report. Do you installed Image Gallery from dietpi-software?

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.