Announcement

#1 2020-04-23 18:07:24

chipw
Member
2020-04-23
2

change default album location

Hello/Hi/Greetings,

New user here. I don't see any config settings to change the default photos storage directory, and I don't see any search results for extensions or even in these forums. But surely the is a way to do this, yes? You can't be serious about forcing people to change their existing photo directories.

I have piwigo installed and working, now how do I set it to use my existing loaded photos directory (about 4000 photos)?

Piwigo version: 2.10.2
PHP version: 7.3.6
MySQL version: 10.2.31-MariaDB-cll-lve
Piwigo URL: http://

Offline

 

#2 2020-04-23 18:22:44

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: change default album location

Hi :-)

Administration > Tools > Site manager


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2020-04-23 18:55:08

chipw
Member
2020-04-23
2

Re: change default album location

Thanks for the quick reply. I saw that but because it says create a new site I didn't expect it actually meant change or link to a different directory. I suggest you change that so it is less ambiguous.

Offline

 

#4 2022-11-15 13:21:47

Eis-T
Member
2022-11-03
12

Re: change default album location

Admin > Tools > site manager appears to be no longer there in piwigo 13. can you point me to the place where I can change the directory where piwigo stores its photo's?

and don't say symlinks, because location it needs to use is running exfat, so that's not an option in this case.

Last edited by Eis-T (2022-11-15 13:22:38)

Offline

 

#5 2022-11-16 01:20:26

erAck
Only trying to help
2015-09-06
2023

Re: change default album location

It's still there, Admin -> Tools -> Synchronize, tab Site manager.


Running Piwigo at https://erack.net/gallery/

Online

 

#6 2022-11-19 17:22:52

Eis-T
Member
2022-11-03
12

Re: change default album location

Thanks, I've found the option! I misunderstood the function here, as I was looking for a way to change the folder, and I associate the word "site" with website. But of course I now realise that can be the same thing as we're hosting ourselves here.

Unfortunately I immediately ran into the next probem. I'm getting "Directory does not exist [.media/USER/Seagate/server/foto/]" which is strange, because that folder does exist. Is there something with permissions I need to change?

Offline

 

#7 2022-11-19 18:53:54

erAck
Only trying to help
2015-09-06
2023

Re: change default album location

If that message really starts with .media/ make sure you enter the correct path, I somewhat doubt you have a directory .media/ in your Piwigo installation's directory.


Running Piwigo at https://erack.net/gallery/

Online

 

#8 2022-11-19 20:43:20

Eis-T
Member
2022-11-03
12

Re: change default album location

Thank you for the quick answer. I thought this was a way to workaround the restriction of having to use the installation folder as the folder to keep the photo's.

The only thing I want to do is have the photo's stored on an external harddrive, as diskspace is limited om the internal drive. In my mind this shouldn't be a very hard thing to do. The drive is formatted exfat so the solutions I've found in my hours of research (yes, I'm really trying to figure this out myself but I just can't get it to work) with syslinks don't work.

I already mounted the drive in a less problematic place: /storage so we don't have to worry about permissions in user folders.

Offline

 

#9 2022-11-19 22:45:10

erAck
Only trying to help
2015-09-06
2023

Re: change default album location

I don't understand your alleged problem or why you would need to "workaround the restriction of having to use the installation folder as the folder to keep the photo's" because that is just not the case, there is no such restriction. If you have mounted the device under /storage/YourDevice then entering a "site" path of /storage/YourDevice/foto (or whatever would be accurate) does not work?


Running Piwigo at https://erack.net/gallery/

Online

 

#10 2022-11-20 00:45:04

Eis-T
Member
2022-11-03
12

Re: change default album location

Thanks again for the quick response! Still wrapping my head around how piwigo works, thanks for your patience with me!
It seems like piwigo just can't see any of the folders, It gives this error message regardless of the path I choose.

https://i.imgur.com/huSCpj9.png
https://imgur.com/a/JPfA57G

What am I doing wrong?

Last edited by Eis-T (2022-11-20 00:45:40)

Offline

 

#11 2022-11-20 02:15:59

erAck
Only trying to help
2015-09-06
2023

Re: change default album location

Ah sorry, my bad, I was chasing something different. The path must be relative to the Piwigo directory and it can't cross the web server's document root. But you can either symlink the mount into the galleries/ directory or directly mount the device there or under another directory you add as gallery site.


Running Piwigo at https://erack.net/gallery/

Online

 

#12 2022-11-21 18:30:08

Eis-T
Member
2022-11-03
12

Re: change default album location

I'm not yet convinced that mounting the drive the piwigo folder (which seems like a odd solution to me, as the standard seems to be to have drives mounted in mnt/ or storage/ ) is the solution and it wouldn't solve the other two folders that I also want to be on the external harddrive: _data and uploads.

The solution I have in mind is to fully uninstall piwigo and do a clean install on the external harddrive. Is there any reason for that not to work? Just asking before I mess things up even further.

Offline

 

#13 2022-11-21 22:33:20

erAck
Only trying to help
2015-09-06
2023

Re: change default album location

Whether mounting a device somewhere else is odd is up to you, I just gave examples what could work. You could also use a bind mount (see man 8 mount) so the device is still mounted at the usual /mnt/ or /storage/ or whatever you have as location, and just an individual directory hierarchy is mounted under galleries/. I don't see an advantage over using a simple symbolic link though in this case. And using a symbolic link in the galleries/ directory to point to a directory on your other drive should work as well, e.g.

ln -s /storage/device/photos galleries

creates galleries/photos

Wherever you install Piwigo, it must be reachable somewhere under the web server's document root. Again, to have that end up on your external drive a symbolic link or bind mount could be used.

If you want to only have _data/ and upload/ on the external drive (you did not mention that before) then try to remove those directories and replace them with symbolic links to directories on your external drive. Or use bind mount. I wouldn't do that for _data/ though because using a probably slower external disk instead of an internal one for cache data isn't advisable.


Running Piwigo at https://erack.net/gallery/

Online

 

#14 2022-11-21 23:44:55

Eis-T
Member
2022-11-03
12

Re: change default album location

Thanks for the reply. As said earlier: symbolic links not being an option is part of the reason I'm here on the forum asking for help. The drive is formatted exfat so symbolic links are not an option unfortunately, and I doubt blind mount is compatible with that filesystem. I'll go with a clean install on the external drive and see if I can get it to work.

Offline

 

#15 2022-11-22 11:11:34

erAck
Only trying to help
2015-09-06
2023

Re: change default album location

Seems I previously misunderstood that the exfat would be the target so it should be possible pointing a symlink to, but apparently it isn't. Well, that's bad, I'd just reformat and start from scratch.


Running Piwigo at https://erack.net/gallery/

Online

 

Board footer

Powered by FluxBB

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