Announcement

#1 2018-05-13 19:19:38

robvalca
Member
2018-05-13
3

Photos in separate partition

Hello/Hi/Greetings,

First I want to congratulate the makers of Piwigo, I've just discovered it I'm really impressed about how it works and the feautures it has !!

I have a little question, my system has one partition for / and one bigger one for /home. So what I wanted to do is to store the images in the big partition. What I did to symlink the _data in /html/piwigo to /home/piwigo_data. I though that all was running fine but the I've realised that all the photos uploaded are in the /html/piwigo/upload folder. The _data is not popualated anymore. I've revert back the situation,  removing the symlink but all continues the same, all files go and stay in /piwigo/upload.

I'm using CentOS7 and before the symlink stuff all seemed to work fine (I've set the correct SELinux config, etc)

Which is the best way to achieve what I want? Is there anyway to 'fix' my current setup?

Thank you very much in advance!

Piwigo version: 2.9.3
PHP version: 5.4.16
MySQL version: 5.5.56-MariaDB
Piwigo URL: <only local at this point>

Offline

 

#2 2018-05-13 22:55:46

executive
Member
2017-08-16
1214

Re: Photos in separate partition

Hello. Welcome.

'Uploads' is the correct folder for images if you using the web upload method. Though, I don't know it's that's compatible with sym linking. I think you need to read the documentation

http://piwigo.org/doc/doku.php?id=user_ … dd_picture
http://piwigo.org/doc/doku.php?id=user_ … management

_data is not for images. Perhaps you want 'galleries'

Last edited by executive (2018-05-13 22:56:50)

Offline

 

#3 2018-05-14 09:34:06

flop25
Piwigo Team
2006-07-06
7037

Re: Photos in separate partition

symlink are 99% transparent on Linux for the software, which means that you can symlink whatever you want for Piwigo
_data/i wil contain the resized pictures and therefore will grow
galleries and upload the original pictures


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#4 2018-05-14 18:42:39

robvalca
Member
2018-05-13
3

Re: Photos in separate partition

Thank you both for your replies. I will place all that three folders in a separate partition and see if this work. I will update then the thread for reference,

Cheers,

Offline

 

#5 2018-05-14 18:59:24

robvalca
Member
2018-05-13
3

Re: Photos in separate partition

I did the changes and all seems fine.
Thanks again for your prompt support!

I leave for reference the procedure I've followed:

We assume that the /home partition is the target partition and your http server document root is /var/www/html

0 Make sure that your apache conf has  the directive

Code:

FollowSymLinks

1 Move the folders (they should maintain permissions )

Code:

$ mv /var/www/htdocs/piwigo/_data /home/piwigo_data/
$ mv /var/www/htdocs/piwigo/galleries /home/piwigo_data/
$ mv /var/www/htdocs/piwigo/upload /home/piwigo_data/

2 Create the symlinks

Code:

$ cd /var/www/html/piwigo
$ ln -s /home/piwigo_data/_data _data
$ ln -s /home/piwigo_data/galleries galleries
$ ln -s /home/piwigo_data/upload upload

Last edited by robvalca (2018-05-14 19:09:59)

Offline

 

Board footer

Powered by FluxBB

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