Ask your Symfony questions! Pay money and get answers fast! (more info)

Migration of old symfony site to newest version Symfony

  • SOLVED

Hi there, we had an old symfony site running on ver 1.0.17

The server got wiped, we had no backup. We were able to get the server rebuilt from a backup image.

We now have a bunch of files on another server that is configured to run symfony.

We have employed a "symfony developer" for 14hrs of work to get the site back up and he was not able to get the site we lost back up, but got an older site that was a different project running. So symfony is running but with the wrong project.

My question has 2 parts:

Part 1. Is there anyone out there who can reconfigure symfony to run the correct project? Keep in mind that its an older version of symfony. 1.0.17

Part 2. If we have the database and the template/asset files it is possible to set up a current version of symfony and import the old template and database in the new symfony framework?

Answers (2)

2010-12-28

Jakub Zalas answers:

Two questions:
1. Do you have latest version of your website's source code?
2. Do you have latest database dump of your website?

If answer to any of these questions is 'no' than you cannot restore state as it was just before a crash. You can bring back the website's state only to the point in time last backup was created.

I think you should have both source code and database dump somewhere. Usually system administrators take care of these things. If you're using external hosting provider they might be responsible for it.

Migrating your website to the latest symfony version (1.4.x) might be tricky and not an easy job. Depends on how the code is written and what plugins it uses.

I'd definetly start with upgrading you symfony version to the latest in 1.0.x branch (1.0.22).


<blockquote>Part 1. Is there anyone out there who can reconfigure symfony to run the correct project? Keep in mind that its an older version of symfony. 1.0.17</blockquote>

It's not really about symfony configuration. You should just install it (from 1.0.x branch). You have to find the "correct" files in your backups and simply install it.

<blockquote>Part 2. If we have the database and the template/asset files it is possible to set up a current version of symfony and import the old template and database in the new symfony framework?</blockquote>

It is possible. You could try migration or rewriting it (copying templates of course). It depends on the project how time consuming it would be.

2010-12-28

José Nahuel Cuesta Luengo answers:

I think you (Michael) have the wrong concept about what "installing symfony" is. You don't have to <strong>install</strong> symfony, it can - and should- be embedded in every project, so installing symfony is just copying it into the project structure of any project.

Reconfiguring symfony might not be what you want to get done in this case, as Jakub says it isn't symfony running the wrong project: it's the wrong project -and it's files- that was backed up. You should check that the files recovered are the ones that made up your application.

As for upgrading from 1.0.X to the latest (1.4.7) version, it can be a pretty rough work. I would consider rewriting the project (you may keep the database model, templates and assets - there shouldn't be any big trouble) not only for the time that migrating it may take, but also for all the benefits that you'll get from a newer version of symfony and a project <strong>developed with all of those benefits in mind</strong>.