galleries synchronize can not support nfs folder? #673

Open
opened 2026-10-05 00:10:40 +02:00 by adam · 6 comments
Owner

I want to put nas photos into piwigo, nas support nfs connect.

mount -t nfs 192.168.1.10:/photo /mnt/photo

I try use ln and mount, synchronize can't find the photo, if I cp the nfs data to the galleries folder, it can be work.

ln -s /mnt/photo/test_photo1 /mnt/piwigo/galleries    #synchronize can't found photo
mount --bind /mnt/photo/test_photo2 /mnt/piwigo/galleries/test_photo2  #synchronize can't found photo
cp -r /mnt/photo/test_photo3 /mnt/piwigo/galleries/ #can be work
I want to put nas photos into piwigo, nas support nfs connect. ``` mount -t nfs 192.168.1.10:/photo /mnt/photo ``` I try use `ln` and `mount`, synchronize can't find the photo, if I `cp` the nfs data to the galleries folder, it can be work. ``` ln -s /mnt/photo/test_photo1 /mnt/piwigo/galleries #synchronize can't found photo mount --bind /mnt/photo/test_photo2 /mnt/piwigo/galleries/test_photo2 #synchronize can't found photo cp -r /mnt/photo/test_photo3 /mnt/piwigo/galleries/ #can be work ``` <!-- github-sync-id:240448506 -->
Author
Owner

and the permissions?

and the permissions? <!-- github-comment-id:312902185 -->
Author
Owner

ln and mount folder have more permissions
photo folder:
1
ln photo permissions:
2
cp photo permissions:
3
synchronize result:
4

`ln` and `mount` folder have more permissions photo folder: ![1](https://user-images.githubusercontent.com/106934/27836140-c1911e2a-6110-11e7-92c8-bc8254620d0f.png) ln photo permissions: ![2](https://user-images.githubusercontent.com/106934/27836138-c18cdfc2-6110-11e7-8fbf-121d48128cb7.png) cp photo permissions: ![3](https://user-images.githubusercontent.com/106934/27836139-c18eba90-6110-11e7-92a3-df4456fdf78d.png) synchronize result: ![4](https://user-images.githubusercontent.com/106934/27836137-c18c9922-6110-11e7-935b-5b6ba92beed4.png) <!-- github-comment-id:312905507 -->
Author
Owner

check with a php file browser if that's php (so server related) or Piwigo itself ; https://github.com/marekrei/encode-explorer seems appropriate to test that point

check with a php file browser if that's php (so server related) or Piwigo itself ; https://github.com/marekrei/encode-explorer seems appropriate to test that point <!-- github-comment-id:312906297 -->
Author
Owner

I test ln and mount in encode-explorer.
ln folder don't have permission
mount folder can be enter, but display nothing.

Not just nfs, ln mount from the local folder is the same problem.

Is this the php problem? What can be set up?

my php version is php/7.1/apache

I test `ln` and `mount` in encode-explorer. `ln` folder don't have permission `mount` folder can be enter, but display nothing. Not just nfs, `ln` `mount` from the local folder is the same problem. Is this the php problem? What can be set up? my php version is php/7.1/apache <!-- github-comment-id:312910346 -->
Author
Owner

Is this problem fixed or does anyone have a solution? I have the same problem here. I tried also this solution: https://stackoverflow.com/questions/21878647/allow-apache-php-a-read-write-access-to-a-mounted-directory

Nothing worked sofar ...

Is this problem fixed or does anyone have a solution? I have the same problem here. I tried also this solution: https://stackoverflow.com/questions/21878647/allow-apache-php-a-read-write-access-to-a-mounted-directory Nothing worked sofar ... <!-- github-comment-id:449726709 -->
Author
Owner

I have the same problem. My solution was to use /etc/fstab to mount the nfs folder, and then the galleries would find my nfs folder.
/etc/fstab

192.168.0.XX:/mnt/mainpool/mainDataSet/Piwigo_galleries /var/www/piwigo/galleries nfs defaults,_netdev 0 0
I have the same problem. My solution was to use /etc/fstab to mount the nfs folder, and then the galleries would find my nfs folder. `/etc/fstab` ``` 192.168.0.XX:/mnt/mainpool/mainDataSet/Piwigo_galleries /var/www/piwigo/galleries nfs defaults,_netdev 0 0 ``` <!-- github-comment-id:1250225013 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#673