#1 2024-11-28 22:01:12

Andrusa
Member
2024-11-28
1

Change phisical location of default upload folder

Hello/Hi/Greetings,

I just managed to install piwigo self hosted bare metal (raspberry pi 4 | 8Gb ram | SDcard 16Gb)
Now i am stuck. I cannot find how to change the default upload folder (var/www/html/upload) to a folder on a usb HDD formatted with btrfs.
I mounted the USB HDD on /var/www/html/galleryes/sda1
I chowned for www-data.
I created a new fresh album and cannot select anything other than root parent album.
I want to use piwigo as a google photos alternative to automatically save any photo on the phone to this USB HDD and to be able to see it on my phone even when i delete photos from phone NAND.
Can this be done with piwigo ?
Can i get here a helping hand ?

(Copy here your environment details, found on your Piwigo page [Administration > Tools > Maintenance])

Environment
Piwigo 15.1.0 Check for upgrade
Installed on 28 November 2024, 4 hours ago
Operating system: Linux
PHP: 8.3.6 (Show info) [2024-11-28 20:59:26]
MySQL: 10.11.8-MariaDB-0ubuntu0.24.04.1 [2024-11-28 22:59:26]
Graphics Library: ImageMagick ImageMagick 6.9.12-98
Cache size N/A   never calculated Refresh
Activated plugin list3
Admin Tools
LocalFiles Editor
OpenStreetMap

Piwigo URL: https://ragulka.ddns.net/

Offline

 

#2 2024-11-30 03:36:08

windracer
Member
St. Pete, FL
2014-12-28
495

Re: Change phisical location of default upload folder

You can't change the location of the uploads folder, but you can replace it with a symbolic link to your USB HDD mount point.

But that's just the folder used when you manually upload images into Piwigo. If you want to be able to create your own folders of photos on that USB HDD and have them "appear" in Piwigo, you need to look into Synchronization to add your physical folders in. You'll also need to create a symbolic link (or links) under the "galleries" folder under your Piwigo install to your USB HDD in order for the physical albums to be picked up by a synchronization.

Last edited by windracer (2024-11-30 03:44:01)

Offline

 

#3 2024-11-30 09:37:03

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

Re: Change phisical location of default upload folder

Hi :-)

local config >
// the local data directory is used to store data such as compiled templates,
// plugin variables, combined css/javascript or resized images. Beware of
// mandatory trailing slash.
$conf['data_location'] = '_data/';

// where should the API/UploadForm add photos? This path must be relative to
// the Piwigo installation directory (but can be outside, as long as it's
// reachable from your webserver).
$conf['upload_dir'] = './upload';


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

 

#4 2024-11-30 22:35:54

windracer
Member
St. Pete, FL
2014-12-28
495

Re: Change phisical location of default upload folder

This path must be relative to the Piwigo installation directory (but can be outside, as long as it's
reachable from your webserver)

Which is why I use symbolic links instead.

Offline

 

Board footer

Powered by FluxBB

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