Best way to upgrade 2.4 to latest version

I have an old CakePHP app running on 2.4.7. We need to upgrade this application to work with PHP 7.4. So I'm guessing I need to upgrade CakePHP to a newer version?

It's been a couple of years since I worked with Cake. I remember that version 3 was drastically different from version 2. In looking at ways to upgrade the application, I came across this [CakePHP upgrade tool](https://github.com/cakephp/upgrade/tree/3.x). I tried running it, but it ended up deleting all of my controllers. I'm not sure if that was supposed to happen or not. Luckily I could revert the changes.

So, what's the best way to upgrade this app? I'm almost thinking I need to just create a brand new CakePHP app with the latest version and rewrite the old application to work on the newer version, but I'd like to avoid that if possible.

2 thoughts on “Best way to upgrade 2.4 to latest version”

  1. You’re in for a very long, hard transition. I’m upgrading from 2.4 now and there is no other way other than just manually redoing everything. The database stuff is the hardest/most different. Some of the other stuff can happen with the tool.

    Reply
  2. At this point upgrade to latest CakePHP or Laravel, the amount of work is the same. Best bet is start for fresh install I guess.

    Reply

Leave a Comment