Hi,
I'd like use FTP+Synch for upload many photos. But I have already my my pictures on board so I want (in my debian) use simply symbolic link to galleries folder.
But after synch nothing :(
This is bug - kindly please fix or provide workaround.
PS. Hard link I can't because I have two HDD (system+data), and www is on system and pictures on data.
Piwigo version: 2.8
BR, Krzysiek
symbolic links works and already used by many users
Offline
Hello Krysiec,
Be carefull, to synchronize a directory which is not "./galleries, do not use the command tools/synchronize ;)
Use tools/site manager.
The directory (even thru symlink) shall first be declared with "create a new site".
Enjoy!
DéHème
Last edited by deheme (2016-04-18 09:45:07)
Offline
Hi deheme
To be sure could you kinply please provide simple instruction setp-by-step?
When I create new dir in galleries and insert some files and next synch ten work fine.
But if I create symbolic link to some direcotry with pictures then not work (piwigo do not see the directory and files iside)
BR, Krzysiek
Are you sure the permissions are the right ones?
Offline
Hi,
In my Piwigo, I have the symlink outside galleries, but at the same level.
Then I declare ./p/ as a "new site", p being the symbolic link to my directory where my pics are located.
Then I synchronize the directories only
Then I synchronize the files.
Enjoy!
DéHème
Last edited by deheme (2016-04-18 13:49:12)
Offline
I just tested within my galleries dir, and have no problems syncing with the symlinked directory. I'd say, check the permissions on the linked directory, and the files within too.
Offline
Hi,
Yes, this is permissions issue, but do not know how to resolve issue :/
My data HDD is mouted with ACL (on HDD without ACL I can add access and Piwigo work fine).
As I see user used by Piwigo that try read my pictures is www-data or root because that user run PHP and WWW services:
# ps aux |grep [w]ww www-data 17192 0.0 0.1 12876 3716 ? S 11:17 0:14 nginx: worker process www-data 17213 0.0 0.3 60052 11932 ? S 11:17 0:00 php-fpm: pool www www-data 17214 0.0 0.3 60052 11932 ? S 11:17 0:00 php-fpm: pool www # ps aux |grep [n]ginx www-data 17192 0.0 0.1 12876 3716 ? S 11:17 0:14 nginx: worker process root 23108 0.0 0.0 12292 3084 ? Ss 00:04 0:00 nginx: master process /usr/sbin/nginx
I want linker HTC directory, in theory www-data user have read and execute access to directory. Files inside have the same access:
# getfacl HTC/ # file: HTC/ # owner: root # group: users user::rwx user:www-data:r-x user:krzysiek:r-x user:dorotka:r-x group::r-x group:www-data:r-x mask::r-x other::r-x default:user::rwx default:user:www-data:r-x default:user:krzysiek:r-x default:user:dorotka:r-x default:group::r-x default:group:www-data:r-x default:mask::r-x default:other::r-x
Also I give access for other to read and execute and still nothing:
# ls -l|grep HTC drwxr-xr-x+ 2 root users 73728 paź 22 2014 HTC
Link in galleries dir seems is OK:
# ls -l|grep HTC lrwxrwxrwx 1 root root 71 kwi 18 21:13 HTC -> /media/6acff0b7-3a30-4c39-839a-76abecf91c04/backup/pictures/HTC
When I make mistake?
Solved but still something is wrong.
Simple
chmod -r o+x
on dir with pictures.
Add to other execute dir solved issue but owner (root) and group (users that have www-data user inside and root) have "x" on dir and not work without add other "x".
Searching why keep going....