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
Hi :-)
Administration > Tools > Site manager
Offline
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
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
It's still there, Admin -> Tools -> Synchronize, tab Site manager.
Offline
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
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.
Offline
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
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?
Offline
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://imgur.com/a/JPfA57G
What am I doing wrong?
Last edited by Eis-T (2022-11-20 00:45:40)
Offline
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.
Offline
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
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.
Offline
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
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.
Offline