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
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
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
Offline
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
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
FollowSymLinks
1 Move the folders (they should maintain permissions )
$ 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
$ 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