Problem when migrating gallery2 from one server to another
trungdong
Joined: 2003-08-22
Posts: 22 |
![]() |
Hello, I asked my hosting admins to copy the g2data dir to my new server and I did the migrating process as advised in the G2 Faq. However, the problem is that the admin who copied my g2data forgot to change its owner to the web user. Therefore (I guess), when I installed gallery2, it cannot install the core module and it is stuck there. ---- |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
you have a number of options.. pick the easiest.. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
safer to start from scratch. a halfway through core install can be in any state. but... |
|
trungdong
Joined: 2003-08-22
Posts: 22 |
![]() |
Thanks! I'm going to redo it from scratch. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
chown -R webserver user OR chmod -R 777, both is ok. but as soon as you start adding items / albums, the new dirs/files will be owned by the webserver user anyway. so, it's a little cleaner if the whole g2data tree is owned by the same user. but it really doesn't matter. |
|
trungdong
Joined: 2003-08-22
Posts: 22 |
![]() |
That's strange! I actually did chmod -R 777 the whole g2data tree but the installation still failed. |
|
trungdong
Joined: 2003-08-22
Posts: 22 |
![]() |
I managed to migrate my gallery2 to the new server but now all my the thumnails and intermedia images are missing (the fullsize images view fine though). The installation went well without error msg. Infos: |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
- you could try to rebuild all derivatives. |
|
trungdong
Joined: 2003-08-22
Posts: 22 |
![]() |
Thank you valiant! BTW, the strange thing is the images has two size options: its original full size and 92x92. Don't know where this 92x92 came in. |
|
trungdong
Joined: 2003-08-22
Posts: 22 |
![]() |
Hang on, I think I found the problem. The ImageMagick binary cannot be found. May be it's on a differrent path on the server. Will check with the hosting admins. But I think the installation should check if the binary exists, or at least, the build all thumbnails/resizes should report error, don't you think? I install the GD module and the derivatives can be created now. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
true, i have to add a note about exec files paths to the migration instructions. |
|
trungdong
Joined: 2003-08-22
Posts: 22 |
![]() |
It doesn't. That made me so confused the last time so that to be sure I had to recopy 5GB of my g2data again from the old server Anyway, I'm happy now having my gallery up and running well (from 3-day migrating effort though). Thanks again for your help! |
|
trungdong
Joined: 2003-08-22
Posts: 22 |
![]() |
BTW, an off-topic question, I want to modified the .htaccess file on the old server so that every request will automatically redirect to the corresponding one on the new server (I already put a www2.donggiang.com DNS record to point to the new server). Is there any way to do this? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
i'm not quite sure if mod_rewrite is only for internal rewrite rules / redirections. edit: of course it's possible with mod_rewrite. have a look at http://httpd.apache.org/docs/misc/rewriteguide.html and google for mod_rewrite +how. |
|