#1 2015-11-16 21:55:32

Cas
Guest

Storing data on my nas

Hello/Hi/Greetings,

I am new to piwigo buit soofar it is looking good.
Have a lot of fotos and would like to store them on a nas (Synology214).
All my data is over there, so no big issues.
Would like to configure within sitemanager that a new site is hosted on the nas.
I have created a directory called /mnt/piwigo
In fstab i have added the following line
//10.31.1.60/piwigo    /mnt/piwigo  cifs auto,rw,username=guest,password=guest 0 0 noserverinfo
Within the sitemanager i am trying to set a new site to:
/mnt/piwigo
the message then becomes:
.//mnt/piwigo does not exist

Being relative  new to Linux, I am a bit stuck, assume I have got to do something with a symlink?
Tried to find the answer on the forum but this was not succesfull.

Who can help me out here?

Thanks in advance,
Cas

Piwigo version: 2.7.4
PHP version: 5.4.16
MariaDB version: 2.16
Piwigo URL: http://not yet available

 

#2 2015-11-17 10:43:17

CasN
Member
2015-11-16
5

Re: Storing data on my nas

I am the creator of this issue (first logged my issue, next registered as member).
So really looking forward to proper guidance on this matter.
Would suggest to create a FAQ on this one, which I am happy to support if I get some answers/help for the right direction.

Offline

 

#3 2015-11-21 20:32:16

CasN
Member
2015-11-16
5

Re: Storing data on my nas

I managed to solve the issue, here is my documentation.
Perhaps usefuls as a base for another FAQ.
============================================
How to organize the piwigo data directories to reside on a nas.


*ip_addresses and user--accounts have been changed in the doc below.*

My setup is like this:
My nas is a Synology d214+ located on ip-address 10.31.1.60
On that nas i have defined a guest user with password guest

On that nas i have created the following shared folders:
piwigo
piwigo_upload
piwigo_data
The guest user i have given read/write access to all 3 folders

My webserver is a Linux Clearos 7.10 system.
On that system, i have created the following directories:
/mnt/piwigo
/mnt/piwigo_upload
/mnt/piwigo_data
Initialy i have given these directories 0770 permissions

Next I had to adjust the file /etc/fstab on my webserver
I added the following lines there:
//10.31.1.60/piwigo     /mnt/piwigo  cifs auto,rw,username=guest,password=guest 0 0
//10.31.1.60/piwigo_upload     /mnt/piwigo_upload  cifs auto,rw,username=guest,password=guest 0 0
//10.31.1.60/piwigo_data     /mnt/piwigo_data  cifs auto,rw,username=guest,password=guest 0 0

After saving the file, i ran the following command:
mount -a
Now the folders on the nas are available via the webserver.

Next step was to rename the original piwigo folders
I had piwigo installed in the following directory:
/var/www/html/piwigo

the following directories were renamed:
upload ==> upload.old
galleries ==> galleries.old
_data ==> _data.old

Final part is to put the sym links in place.
In the terminal window you need to give the following commands:
cd /var/www/html/piwigo
ln -s /mnt/piwigo ./galleries
ln -s /mnt/piwigo_upload ./upload
ln -s /mnt/piwigo_data ./_data

That should do the trick.
If all is working fine, you can delete the folders you just renamed.

Offline

 

Board footer

Powered by FluxBB

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