is there any to change the upload images path to diffrent folder or diffrent server ??
Hi rock and welcome to Piwigo forums :-)
1) install/activate [extension by Piwigo Team] LocalFiles Editor from screen [Administration > Plugins > Manage]
2) open [Administration > Plugins > LocalFiles Editor > Local config] and paste the following code:
$conf['upload_dir'] = './another_upload_directory';
This is where pLoader/UploadForm adds photos. This path must be relative to the Piwigo installation directory (but can be outside, as long as it's reachable from your webserver).
Offline
I changed my $conf['upload_dir'] to '../../files/piwigo'. I'm able to upload pictures with the flash uploader to this directory. That works fine. My problem is now that piwigo is not displaying the pictures in my album. I get the error message the file does not exist. It would like to safe my pictures in the files directory outside the html directory to backup them seperately.
Error Log:
[Sat Feb 18 09:33:37 2012] [error] [client 87.174.99.117] File does not exist: /var/www/html/web123/html/files, referer: http://www.das-zweite-konglomerat.de/gallery/
My directory structure:
/files/piwigo_pictures
/html/gallery_installation
Offline
Hi delakut,
Indeed, $conf['upload_dir'] must be a direct or indirect sub-directory of your Piwigo installation, to make it visible through HTTP.
In your case, here is what I would do :
1) in your "gallery" directory, remove "upload"
2) in your "gallery" directory, create a symbolic link "upload" to "../../files/piwigo"
Offline
It works, thanks a lot.
A quick guide:
I created the symbolic link with php. You only need to copy a php file to your root directory and start it in your browser. The code is:
<?php
if (symlink('/var/www/html/web123/files/piwigo', '/var/www/html/web123/html/gallery/upload'))
{
echo "Symbolic link was created";
}
else
{
echo "Symbolic link was not created";
}
?>
It is possible that you need to change the chmod to 755.
The upload_dir stays like it is. You don't need to change it anymore.
$conf['upload_dir'] = './upload';
Offline
delakut wrote:
A quick guide:
I created the symbolic link with php
Very smart. As a Linux user I would have said "if you don't have SSH access, you can't create a symbolic link".
Offline
rock wrote:
is there any to change the upload images path to diffrent folder or diffrent server ??
Hi there!
I'm confused. Can I use this symbolic link "trick" to integrate my existing Gallery2 folder-structure with pics into PWG?
As I've about 20k pics in the G2-structure (and on a particular partition due to its size), I'm not to keen about re-importing all the pics to the small galleries-folder in the PWG-install.
Any tips or tricks available to do this?
I did try the Menalto2PWG-plugin but got a wjole load of errors. If those are relevant I can post them as well.
Thanks.
Last edited by adrian_vg (2015-02-27 12:16:57)
Offline
yes
a symlink is a symlink, the origin of what your are linking has no impact
of course you will loose all your data, like if you made a fresh upload in Piwigo
Offline
mistic100 wrote:
yes
a symlink is a symlink, the origin of what your are linking has no impact
of course you will loose all your data, like if you made a fresh upload in Piwigo
Thanks, loosing the data is of no consequnce as this is a new PWG install (it's empty).
So, in short, if I create symlinks as above and then run the Menalto2Piwigo plug, I should be able to integrate the current folder structure as is into PWG.
Did I understand that correct?
Thanks.
Last edited by adrian_vg (2015-02-27 13:50:40)
Offline
and absolutely don't know about the migration
I answered for the symlink
if you don't care about the data then you don't need the migration plugin and you fall in the standard sync procedure http://piwigo.org/doc/doku.php?id=user_ … ure#by_ftp
edit: I read the mini-guide of Menalto2Piwigo and it should work
Offline
mistic100 wrote:
and absolutely don't know about the migration
I answered for the symlink
if you don't care about the data then you don't need the migration plugin and you fall in the standard sync procedure http://piwigo.org/doc/doku.php?id=user_ … ure#by_ftp
edit: I read the mini-guide of Menalto2Piwigo and it should work
Yupp, it did work most excellent.
Thank you very much for the assistance!
Now to customise the crap out of PWG. ;-)
Offline
can this be changed to an AWS s3 bucket? provided i have the key information etc all set?
s3 opens up so much potential for endless image storage.
sg
Offline
delakut wrote:
It works, thanks a lot.
A quick guide:
I created the symbolic link with php. You only need to copy a php file to your root directory and start it in your browser. The code is:
Please pardon the novice questions:
1) Is this code a "one & done" forever instruction, or does it have to be invoked on a regular basis? If it is "one & done" how would it be undone?
2) Is the root directory in reference to Piwigo, or to my website root, i.e.:
/public_html - - - - - - - here?
/cgi-bin
/images
/piwigo - - - - - - - or here? (or ? if I'm completely off base...)
/another_dir
The /images directory is where I want them (I have another app that will draw upon this as well besides Piwigo).
Many thanks in advance,
cdo
Offline