Welcome to Geeklog Friday, October 20 2017 @ 03:09 am EDT

Geeklog 1.5 Migrations

  • Contributed by:
  • Views: 8,894
Geeklog For those of you who using Geeklog in corporate environments you may have have run into the situation where you want to migrate a site based on Geeklog 1.5 from, say, your development environment to your test environment (or from server A to server B). Currently this isn't supported with 1.5 and it was the focus of one of the Google Summer of Code (GSoC) projects. For those of you who simply can't wait for the results of the GSoC to be published I've created a very simple script that allows you to do such migrations.

How it works is simple. This code will present you with a simple form with only the values you need to update to make a migration work. It must go in your public_html directory and assumes the db-config.php is in the parent directory (if not you'll need to edit the file). All other configuration settings will then be editable by using the Geeklog configuration administration screen. Now before you run off and use this code a couple of warnings:

  1. Be sure to back-up your database before you run this.
  2. This code doesn't filter any of the input you give from the form. That's really, really bad from a security standpoint but given this is a temporary solution to a problem the GSoC project provides a permanent fix for I'm OK with it. That said, if you choose use this code you should delete the file immediately after using it. Seriously, don't forget...you've been warned.
  3. The code does nothing in the way of internationalization nor does it use any themes. English only (sorry).

Enjoy!