Hello again,
I am running my piwigo gallery on a server which came with the domain (www.eijdenberg.nl). I have 1GB space. As you know, with photo's this is not a lot ;-). With my ISP I have 10GB of webspace.
Now I had the idea to place my high def. photos on a sub-folder on the server of my ISP (via FTP). The rest of the website (Piwigo program, database, thumbs and other resized photo's) will stay with my domain webspace.
I searched through the forum for a solution for my problem but I could not find an understandable answer for me (I am not a programmer)
I found the topic how to changes the upload folder but I am more interested in changing the gallery path.
I used this code:
$conf['galleries_dir'] = 'http://......../photo';
But nothing happened, it was just a guess...
I also read about 'symlink' but not find a way to implement this.
Do I need special permission on my ISP webspace or just the default one (as Piwigo will only read the photo's and I upload the photo's with FTP)
Can you help me or point me in the right direction?
Many thanks, Jan
Offline
Hi,
the "symlink" solution and the $conf['galleries_dir'] setting require a local directory on the server running piwigo. So no http:// or ftp:// URIs.
There are various possible solutions to this, but it depends on what level of access you have on the servers. Are those real vservers, or just a shared webspace with php hosting? Is it possible for you to configure the webserver (Apache), can you run SSH sessions, can you install more software?
One possible solution might be to move piwigo to the larger box completely, and use Apache on the eijdenberg.nl box just as a reverse proxy. The other would be to mount (parts of) the filesystem using SSHFS for example.
Offline
Hi,
Thanks for the reply,
You put a lot of terms in the reply I don't understand (yet)
It will be a nice weekend with Google... ;-)
Grt, Jan
Offline
The galleries_dir (in table piwigo_sites, not in $conf) is not a solution if you want to have the photos outside the HTTP directory.
So it means the symlink is the solution. Let's take an example. On you web host you have /private and /www. You have installed Piwigo at the root of /www.
connect with SSH mv www/galleries private/ ln -s private/galleries www/galleries
Now you have a symbolic link www/galleries to private/galleries. With FTP you add photos in private/galleries.
Offline
... but you can't do that across servers
Offline
flop25 wrote:
... but you can't do that across servers
Of course. We have removed the "remote sites" features with Piwigo 2.4.
Offline
plg wrote:
flop25 wrote:
... but you can't do that across servers
Of course. We have removed the "remote sites" features with Piwigo 2.4.
Interesting... I was considering making a plugin to do just that - what was the reason to remove this functionality?
(I'll need to complete my theme first, but I am mulling this over while I work on it ;))
Offline
the reason was the new system of automatic generation of resized pictures
ps : really we do apreciate such enthoutiasme from dev/designer! i really want to see your current work(s) :)
Offline
marjolein, read more on [Forum, topic 19631] [2.4+] no support for remote sites
Offline