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
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
tar -cvf my_old_piwigo.tar .
This archives your old install.
3) Copy the file my_old_piwigo.tar to your new host.
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.
mkdir public_html/new_piwigo; mv my_old_piwigo.tar !$
6) Extract the archive and move it away.
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
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
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
Between Dutch, you can also talk on the NL forum ;-)
Offline