Photo Gallery

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
tallbastard
Posts: 11
Joined: Sat Aug 08, 2020 4:59 pm

Photo Gallery

Post 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
Attachments
photogalleryscreeshot.tiff
photogalleryscreeshot.tiff (65.94 KiB) Viewed 166 times
User avatar
Joulinar
Posts: 2597
Joined: Sat Nov 16, 2019 12:49 am

Re: Photo Gallery

Post 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.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply