migrating from one server to another

Hi all

I am migrating my zenphoto install from one server to the other. They have a lot in common including most paths, I think. I dumped the db and the content of the directories (sans caches). If I use my db dump, I get files not found on all albums URL and photos (Zenphoto Error: the requested object was not found. Page: index). But if I start from a blank database, everything works well. I would rather keep my old db and all the comments and descriptions and such.

It seems there is something in the old db that doesn't port well. Any tips on what that might be ? Thanks in advance.

Erik

Comments

  • ok, the first error was a missing cache_html folder when the plugin is activated. I just de-activated it.

    But I still get:

    "Not Found

    The requested URL /gallery/Portfolio 2008/ was not found on this server.
    Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at www.generalmagic.org Port 80"

    You can see what's going on there: http://www.generalmagic.org/gallery/
  • Here is something you might wish to try. The current development stream has a database backup/restore facility. You could install the nightly build on both servers. Then run the backup on the old, copy the files over to the new and the run the restore.

    If you choose to do this, I would recommend that you start out with an empty database on the new server. Get all your albums and images moved and copy the database backup. Then run setup to create the new tables. It will offer you the option of running the restore script once it has completed the setup.
  • does this mean I have to install the current dev branch on the old server as well ? Oups, you answered that question.

    You can see what's going on there: http://www.generalmagic.org/gallery/

    I feel I am missing something very simple. Is there anything absolute in any of the database tables ?
  • Ok, by disabling mod_rewrite in the zenphoto admin URL, it works but with the old ugly URLs. Now I know where the problem is. I wonder how I can check that mod_rewrite is enabled well for this host and my .htaccess is ok.

    However what's odd is that this works fine with a new db. That's because the mod_rewrite is not checked by default, it seems. So I got to get the mod_rewrite working.

    The mod_rewrite module is loaded in apache2, it must be something else.
  • Ok, it seems to have to do with AllowOverride None. FileInfo makes it work. I have to go and understand why now.
Sign In or Register to comment.