#1 2012-12-04 23:36:38

ciquta
Guest

Change photos folder

Hi all,
I'm running Piwigo on my main server disk, but the photos are so many and so big I need to keep them on a NAS or still on another disk.

Is there a way to change the destination path of the uploaded photos?

 

#2 2012-12-05 07:11:29

flop25
Piwigo Team
2006-07-06
7037

Re: Change photos folder

Hello
You can't use a distant disk
You can set Piwigo on your Nas (migrate your install) or ask yourself if HD pictures are really necessary for your Web gallery


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2012-12-05 19:14:20

JJF
Member
2011-10-06
121

Re: Change photos folder

Hi, flop25 is correct in saying you can't do it from within piwigo, but you can do it at the operating system level. You must have permissions on the server to set this up.

If your main server thinks the NAS is a locally mounted share, then yes "gallery" directory can be a symbolic link to a shared directory.  That's how I run mine.

google finds many articles related to this task. Here's one http://superuser.com/questions/300662/h … ux-machine that explains how to do it from a console prompt.
After mounting the external share, go into the parent of the galleries directory, delete the galleries directory and then say

Code:

ln -s /local_path_to_empty_tmp_folder/tmp ./galleries

Offline

 

#4 2012-12-05 19:18:16

flop25
Piwigo Team
2006-07-06
7037

Re: Change photos folder

Thx JJF but does it works if it's a different HDD? (I never administrated a server)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2012-12-06 03:45:50

JJF
Member
2011-10-06
121

Re: Change photos folder

Hi flop25,
I'm running piwigo on Linux (ClearOS, community edition)
My published photos are in a third-level subdirectory on a hard drive on a Windows 7 machine. I do all my photo editing and collating on the Win7 machine and it has a much more storage than the Linux server.

Of course, on the windows machine, I made the directory shared. The mount command in my linux /etc/fstab file is a bit different than what the earlier link shows. It must include the username and password if the Windows share is restricted to users with Windows credentials as well as the Linux uid and gid that supposedly own and have rights to the empty directory (all in one line) :

Code:

//IP_address_of_win7/share_name /mnt/empty_directory_name cifs username=user_name,password=p_word,_netdev,uid=apache,gid=allusers  0 0

Last edited by JJF (2012-12-06 04:03:26)

Offline

 

#6 2012-12-06 12:40:36

ciquta
Guest

Re: Change photos folder

JJF, your solution is so easy I didn't think about :D


I have a home server with a little NAND disk and a little home NAS, so I don't like to run software on the NAS nor store data on the server...

Thank you very much :)

 

#7 2012-12-09 18:29:10

ciquta
Guest

Re: Change photos folder

in the "galleries" folder i can see only a php file

i guess i have to link the "upload" folder instead?!?


Code:

ln -s /local_path_to_empty_tmp_folder/tmp ./upload
 

#8 2012-12-09 18:34:58

flop25
Piwigo Team
2006-07-06
7037

Re: Change photos folder

Nope
That's galleries
Read Photo-Upload-Ftp


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#9 2012-12-09 20:35:50

ciquta
Guest

Re: Change photos folder

I deleted the original "galleries" folder and linked the "galleries" folder as described.

Then I created a new album, uploaded a new picture (via the web form) and i can see the new picture was still uploaded on the local disk, in the "upload" folder.
No folder or picture is stored in the "galleries" folder.

 

#10 2012-12-09 20:44:55

flop25
Piwigo Team
2006-07-06
7037

Re: Change photos folder

Sorry
I thought you wanted to use the synchronization


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#11 2012-12-10 00:50:02

ciquta
Guest

Re: Change photos folder

Hi flop25,
you mean the pictures are stored in different folders depending on the kind of upload (syncronization or web form)?

 

#12 2012-12-18 23:34:49

ciquta
Guest

Re: Change photos folder

I linked the "upload" folder on a external disk, but still i can see some pictures and data scattered in different folders (i guess thumbnails and so on)

Is there no way to change the destination folder using the web form upload?

 

#13 2012-12-19 11:38:38

brumia
Guest

Re: Change photos folder

Any idea howto do that ? this in post above :) or maybe another software. My goal to manage my home (NAS) photo gallery + android and mac application for upload photo...


some idea ? :)

Bartek

 

#14 2012-12-19 11:44:00

flop25
Piwigo Team
2006-07-06
7037

Re: Change photos folder

Hi I didn't understand what  ciquta was saying but as already said on that forum, you can use a symlink in galleries and/or of upload


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#15 2012-12-19 11:58:41

brumia
Guest

Re: Change photos folder

You didn't understand because my english is terrible poor :)
You say "you can't use a symlink in ...." ? Why can't ?

P.S. piwigo is almost gallery that i want. Is pretty, simple and I very like it. BUT... I want to upload photo from android/iphone app  AND ftp into same place...  i think is only one little problem... :)

Brumia

 

Board footer

Powered by FluxBB

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