#1 2024-12-28 03:21:51

Phyxius
Member
2024-12-28
3

Cannot change photo storage location, fresh installation

Hi,

I just installed Piwigo fresh on my Windows 11 system and I would like to change the storage location so that my photos will be stored on D:/Piwigo instead of in the installation folder on my C: drive.


I have installed the following versions.
nginx-1.26.2
php-8.4.2
piwigo-15.3.0

already added
$conf['data_location'] = 'D:/Piwigo/';

to
C:\nginx\html\piwigo\local\configconfig.inc.php

but this gives me an error because it treats the adres as relative. Notice that the adres starts with .\
Permission to that folder is set correctly and matches the original directory.
sub-folder "templates_c" is present and empty.

error message shown when browsing to Piwigo site:

Piwigo encountered an irrecoverable error
.\D:\Piwigo\templates_c no write access

#1    mkgetdir C:\nginx\html\piwigo\include\template.class.php(101)
#2    Template::__construct C:\nginx\html\piwigo\include\common.inc.php(266)
#3    include_once C:\nginx\html\piwigo\index.php(11)


any advice would be highly appreciated.

Last edited by Phyxius (2024-12-30 18:08:40)

Offline

 

#2 2025-01-02 17:06:11

Phyxius
Member
2024-12-28
3

Re: Cannot change photo storage location, fresh installation

I am still usable to solve this issue.
A little support would be much appreciated.
Please let me know if something is unclear or missing in my explanation.
Thx

Offline

 

#3 2025-01-02 22:04:30

erAck
Only trying to help
2015-09-06
2237

Re: Cannot change photo storage location, fresh installation

$conf['data_location'] is always relative to the Piwigo installation.

I've no clue about Windows, but in Unix/Linux world you'd replace the relative upload directory with a symlink to any other disk or directory. Whatever similar could be done under Windows.


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

Offline

 

#4 2025-01-03 04:01:28

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

Re: Cannot change photo storage location, fresh installation

Check out mklink in Windows to create symlinks and junctions.

https://www.howtogeek.com/16226/complet … -or-linux/

Offline

 

#5 2025-01-08 22:19:07

Phyxius
Member
2024-12-28
3

Re: Cannot change photo storage location, fresh installation

That is idea i did not think of, work like a charm. Thx

Offline

 

#6 2025-01-09 00:31:43

erAck
Only trying to help
2015-09-06
2237

Re: Cannot change photo storage location, fresh installation

Oh, as of Windows 10 they finally made it after more than three decades? Wow..


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

Offline

 

Board footer

Powered by FluxBB