Announcement

#1 2013-11-25 14:35:10

eijdenberg
Member
Netherlands
2013-11-12
24

Galleries on another server

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

 

#2 2013-11-28 23:10:51

teekay
Member
2013-06-12
427

Re: Galleries on another server

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

 

#3 2013-11-28 23:17:36

eijdenberg
Member
Netherlands
2013-11-12
24

Re: Galleries on another server

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

 

#4 2013-11-29 09:54:45

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: Galleries on another server

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.

Code:

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

 

#5 2013-11-29 10:06:19

flop25
Piwigo Team
2006-07-06
7037

Re: Galleries on another server

... but you can't do that across servers


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

 

#6 2013-11-29 10:16:31

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: Galleries on another server

flop25 wrote:

... but you can't do that across servers

Of course. We have removed the "remote sites" features with Piwigo 2.4.

Offline

 

#7 2013-11-29 13:42:36

marjolein
Member
Amsterdam, NL
2013-11-10
29

Re: Galleries on another server

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

 

#8 2013-11-29 13:59:50

flop25
Piwigo Team
2006-07-06
7037

Re: Galleries on another server

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) :)


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

 

#9 2013-11-29 14:07:36

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: Galleries on another server

Offline

 

Board footer

Powered by FluxBB

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