# Migration cakephp from PHP version 5.6.35 to php 7.2.3

**URL:** <https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374>\
**Category:** Uncategorized\
**Created:** [December 7, 2018, 1:18pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374 "2018-12-07T13:18:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 7, 2018, 1:18pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/1 "2018-12-07T13:18:24Z")

</div>

Hi friends,  
I wanted to migrate php 5.6.35 to php 7.2.3 in cakephp 5.6 .As I am new to cakephp can u please help me in step by step precedure to migrate the code base it into php 7.2.3

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [December 7, 2018, 2:48pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/2 "2018-12-07T14:48:13Z")

</div>

What version of CakePHP are you using?

---

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 7, 2018, 3:49pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/4 "2018-12-07T15:49:11Z")

</div>

Cakephp version 2.6.

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [December 8, 2018, 5:40pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/5 "2018-12-08T17:40:58Z")

</div>

2.6 does not support PHP 7.

[https://book.cakephp.org/2.0/en/installation.html#requirements](https://book.cakephp.org/2.0/en/installation.html#requirements)

Seems you’ll need to upgrade to at least 2.8 to get support for 7. (It’s not clear from that page which versions support 7.2 vs 7.0.) This will likely require some code changes on your part; I don’t know as I skipped straight from 1.x to 3.x. Migration guides for 2.x are here:

[https://book.cakephp.org/2.0/en/appendices.html](https://book.cakephp.org/2.0/en/appendices.html)

See also this topic:

> [@Migrate 2.2.1 to Php 7.2](https://discourse.cakephp.org/t/migrate-2-2-1-to-php-7-2/5377):
>
> Can not get a straight answer yet. I have 2.2.1 on Php 5.6 Need to update server to php 7.2 Do not want to update to cake 3.0, just 2.9 or so What would be the proper procedure? Here is what has failed – I tried to put the site and 7.2, and then update cake. – told I should update to cake 2.9 on 5.6 , then move to 7.2, but then I am told can not put 2.9 on 5.6

---

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 9, 2018, 1:12pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/6 "2018-12-09T13:12:07Z")

</div>

Ok thanks let me try and I will update you

---

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 11, 2018, 2:49pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/7 "2018-12-11T14:49:58Z")

</div>

Shall I use any php migration tool to migrate ???if yes then which tool I need to use?

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [December 11, 2018, 6:50pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/8 "2018-12-11T18:50:50Z")

</div>

CakePHP migration guides are in the appendices I linked to above. I have no relevant experience with the 2.x tools, so can’t provide anything more than that.

---

<div class="post-metadata">

**Author:** ![dakota](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dakota/32/1421_2.png) [@dakota](https://discourse.cakephp.org/u/dakota)\
**Post date:** [December 12, 2018, 8:53am UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/9 "2018-12-12T08:53:06Z")

</div>

You need to incrementally upgrade your application’s CakePHP version following each applicable migration guide. There is no automated tool for this since the changes required are largely unable to be automated.

Once your application is running on the latest CakePHP 2.x version you can then upgrade your server to PHP 7.2. You can use a tool like [https://github.com/PHPCompatibility/PHPCompatibility](https://github.com/PHPCompatibility/PHPCompatibility) to show your potential compatibility issues.

---

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 12, 2018, 9:49am UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/10 "2018-12-12T09:49:17Z")

</div>

I am using cakephp 2.6 version so I need to upgrade it to 2.8 ?

---

<div class="post-metadata">

**Author:** ![dakota](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dakota/32/1421_2.png) [@dakota](https://discourse.cakephp.org/u/dakota)\
**Post date:** [December 12, 2018, 12:29pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/11 "2018-12-12T12:29:38Z")

</div>

Probably safer to upgrade to 2.10. I’m not 100% sure if 2.8 supports PHP 7.2.

Chances are that it doesn’t since 2.8 was release in February 2016, and PHP 7.2 was only released November 2017 (More than 1.5 years afterwards)

---

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 12, 2018, 3:24pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/12 "2018-12-12T15:24:09Z")

</div>

Ok thank you very much

---

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 13, 2018, 5:46am UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/13 "2018-12-13T05:46:22Z")

</div>

I am using notepad++ for development So should i use notepad++ itself or i need to install any IDE for php7 upgrade???

---

<div class="post-metadata">

**Author:** ![dakota](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dakota/32/1421_2.png) [@dakota](https://discourse.cakephp.org/u/dakota)\
**Post date:** [December 13, 2018, 6:39am UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/14 "2018-12-13T06:39:50Z")

</div>

Notepad++ will work. Although it is very very outdated 🙂

---

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 13, 2018, 8:15am UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/15 "2018-12-13T08:15:02Z")

</div>

If i use notepad++ will it be easy for migration???

---

<div class="post-metadata">

**Author:** ![dakota](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dakota/32/1421_2.png) [@dakota](https://discourse.cakephp.org/u/dakota)\
**Post date:** [December 16, 2018, 12:40pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/17 "2018-12-16T12:40:22Z")

</div>

Well, if you can edit code in it, you can do the migration with it 🙂

---

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 16, 2018, 1:23pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/18 "2018-12-16T13:23:46Z")

</div>

Ok thank you very much

---

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 19, 2018, 8:15am UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/19 "2018-12-19T08:15:03Z")

</div>

Hi I upgraded cakephp version 2.10.13 and copied the files to respective controller,model and view and i ran it got working.  
Next I wanted to know to put php7.2 ??? new xampp for php 7.2 must be installed or i need to upgrade existing xampp with php7 which i need to download and copy it in php folder???

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [December 19, 2018, 3:22pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/20 "2018-12-19T15:22:19Z")

</div>

How to upgrade the PHP running on your server is outside the scope of a CakePHP discussion site, IMO. There should be loads of resources out there about this.

---

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 19, 2018, 3:26pm UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/21 "2018-12-19T15:26:43Z")

</div>

Ok I will check thank you

---

<div class="post-metadata">

**Author:** ![Vradhit](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vradhit](https://discourse.cakephp.org/u/Vradhit)\
**Post date:** [December 20, 2018, 10:26am UTC](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374/22 "2018-12-20T10:26:46Z")

</div>

Hi,

When i copy one of the project files inside cakephp 2.10.13 folder and i renamed it to my custom name and after that i ran it, i got the error called “CAKE ENGINE DEFAULT IS NOT PROPERLY CONFIGURED.ENSURE REQUIRED EXTENSIONS ARE INSTALLED and CREDENTIALS/PERMISSIONS ARE CORRECT”

Some stacktrace specified.  
Please can you help me in resolving this as i am new to cakephp.

I searched in google and they said to change the permissions inside tmp folder cache .  
So in windows i dont know how to change the permission .  
Thanks for your help.

[Next page](https://discourse.cakephp.org/t/migration-cakephp-from-php-version-5-6-35-to-php-7-2-3/5374.md?page=2)
