#1 2024-08-12 23:46:46

larrybg
Member
2023-08-01
7

Configure network share library

Hello,
I’m new to Piwigo and trying to configure it on my TrueNAS Core server. Here is my setup: the Piwigo is installed on Ubuntu VM with LAMP.
I’ve pointed the upload directory to the mounted TrueNAS SMB network share. I’ve changed local/config/config.inc.php adding:
$conf['upload_dir'] = '/mnt/piwigo_lib/';

The /etc/fstab file has the following code:
//192.168.x.x/piwigo /mnt/piwigo_lib cifs username=userName,password=psw,rw,uid=33,gid=33,nounix,sec=ntlmssp,dir_mode=0777,file_mode=0666  0 0

After mounting this share the permissions are shown as:
ls -l /mnt/
drwxrwxrwx 2 www-data www-data 0 Aug 12 21:21 piwigo_lib
ls -l /mnt/piwigo_lib/
drwxrwxrwx 2 www-data www-data 0 Aug 12 21:21 buffer

With this configuration, I can create albums but when I upload files from the browser, they are missing. I didn't try the mobile app yet.
Can you please help me to figure out what is wrong?
When I change the local/config/config.inc.php back everything is working fine.

Thanks

Offline

 

#2 2024-08-13 22:42:20

larrybg
Member
2023-08-01
7

Re: Configure network share library

I've found this post that helped me to solve the problem: https://piwigo.org/forum/viewtopic.php?id=26079

Offline

 

#3 2024-08-14 00:13:09

windracer
Member
St. Pete, FL
2014-12-28
499

Re: Configure network share library

I was going to suggest the symlink route. Glad you got it working.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact