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).
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.
[Sat Feb 18 09:33:37 2012] [error] [client 188.8.131.52] File does not exist: /var/www/html/web123/html/files, referer: http://www.das-zweite-konglomerat.de/gallery/
My directory structure:
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"
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:
if (symlink('/var/www/html/web123/files/piwigo', '/var/www/html/web123/html/gallery/upload'))
echo "Symbolic link was created";
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';
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".