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?
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
Offline
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
ln -s /local_path_to_empty_tmp_folder/tmp ./galleries
Offline
Thx JJF but does it works if it's a different HDD? (I never administrated a server)
Offline
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) :
//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
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 :)
in the "galleries" folder i can see only a php file
i guess i have to link the "upload" folder instead?!?
ln -s /local_path_to_empty_tmp_folder/tmp ./upload
Nope
That's galleries
Read Photo-Upload-Ftp
Offline
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.
Sorry
I thought you wanted to use the synchronization
Offline
Hi flop25,
you mean the pictures are stored in different folders depending on the kind of upload (syncronization or web form)?
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?
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
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
Offline
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