Announcement

#1 2011-01-08 12:40:52

mvdw310
Member
2010-06-20
17

[resolved] Move piwigo installation to a other host.

Hello,

I want to move my Piwigo installation from one host to another.
Now i have done the following steps.
1. download the piwigo installation to my computer
2. upload the piwigo installatiob to my new host
3. download the mysql database to my computer
4. import the mysql database to my new host.

now the problem starts.
when a try to start the piwigo installation it causes an error.
he want to download the old dbase from my old host.
How can i solve this problem.'

I hope someone can help me.

Grtz Manfred vd Waarsenburg from holland

Last edited by mvdw310 (2011-01-08 13:19:17)

Offline

 

#2 2011-01-08 13:16:55

J.Commelin
Member
2011-01-08
36

Re: [resolved] Move piwigo installation to a other host.

I did not test the following, but I guess it should work.

I would actually not make a new installation. I will assume the host is running some king of unix (as in not Windows).

On your old host
1) Dump your database, as you did :)
2) Go to the root of your old Piwigo install and run

Code:

tar -cvf my_old_piwigo.tar .

This archives your old install.
3) Copy the file my_old_piwigo.tar to your new host.

Code:

scp my_old_piwigo.tar user@new_host.com:~/

On your new host
4) Import your database dump into your new database at the new host.
5) Create a new directory for your install and move the tar-file in it.

Code:

mkdir public_html/new_piwigo; mv my_old_piwigo.tar !$

6) Extract the archive and move it away.

Code:

tar -xvf my_old_piwigo.tar; mv !$ ~

7) Edit the configuration file to edit any settings that might have changed (database name, passwords, etc...)

I hope this works for you!

I emphasize again: I did not test this approach.

J

Last edited by J.Commelin (2011-01-08 13:25:32)

Offline

 

#3 2011-01-08 13:20:21

mvdw310
Member
2010-06-20
17

Re: [resolved] Move piwigo installation to a other host.

J.Commelin wrote:

I did not test the following, but I guess it should work.

I would actually not make a new installation. I will assume the host is running some king of unix (as in not Windows).
J

Hello ,

I have not tested this but i resolved i by my own.


After a quick search i have resolved the problem.
in the following file the i have change dbase parameters.
local/config/database.inc.php

maybee a solution for other people.

Grtz M vd Waarsenburg

Offline

 

#4 2011-01-08 13:24:30

J.Commelin
Member
2011-01-08
36

Re: [resolved] Move piwigo installation to a other host.

Hmm, you are right!
My approach is not correct in that it does not update the configuration.
I will append that to my other post.

Congrats that it is working now!

Offline

 

#5 2011-01-08 14:05:33

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: [resolved] Move piwigo installation to a other host.

Between Dutch, you can also talk on the NL forum ;-)


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

Board footer

Powered by FluxBB

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