Upgrading PHP version on Parallels Ubuntu - php

Recently, I require to upgrade PHP version from 5.3.3 to higher. Can any one tell me which version of PHP I should upgrade for? Which one is more stable? PHP 5.4 or 5.5 or 5.6?

The latest stable version is PHP 5.6.11

According to the release history, 5.4 is only getting security updates and 5.5 will stop getting bug fixes in 10 months. So 5.6 is your best bet. Considering there are only minor syntax changes between these versions, you should go for the latest anyway.
The 5.3 to 5.4 gap may require some alterations in your code. And if your code works on 5.4, it will also work on 5.6, so just use the latest.

Related

Upgrade Laravel from 5.2.45 to 7.0

I inherited a Laravel app that works fine but it's really old version (5.2.45).
What's the best way to upgrade this to something supportable? This Laravel version is incompatible with PHP 7.3 so I am stuck using an old PHP 7.0 version that is deprecated and a security risk.
Is Laravel 7.0 my best bet or should I upgrade to a different version?
PS: I'm noob on PHP, so please be as detailed as possible.
To answer my own question, I have to upgrade gradually from 5.2 > 5.3 > ... > 7 and fix all incompatibilities manually. Laravel shift can help but it won't fix everything and on every iteration there is work involved.

How to downgrade PHP 5.6 to PHP 5.3?

Do you know how to downgrade php from 5.6 to 5.3?
I created a website with PHP 5.6 but when my client uploaded on their server some functions on my website are not compatible and they say that the problem is because their PHP version is 5.3 and I don't know about it, so they want me to downgrade my PHP version. Can you help me?
Or any solution to my problem? So, my website can be compatible on their server.
You're most likely talking not about downgrading of the PHP executables, but about downgrading language level from 5.6 to 5.3
There is no automatic way to do it, but you can study syntax changes between versions (information can be found into official manual) and update your code accordingly.
Also it may be good idea to remind customer that PHP 5.3 is not supported anymore so it may be good idea to upgrade PHP version instead of downgrading site. 5.3 -> 5.6 upgrade is relatively plainless.

Updating php version project from 5.2.1 to 7

I am changing my project from php version 5.2.1 to 7(new version), but the project is in codegnitor version 1.7.2, So i should change php version,mysql to mysqli . Should i change Codegnitor version also
Should not be needed since php is (mostly) backwards compatible. I would however recommend to do it anyway.

Is it safe to upgrade from PHP 5.3.3 to PHP 5.5 in CentOS 6.6?

I need to install a plugin on my website which requires PHP >= 5.5. Right now i'm running PHP 5.3.3 on CentOS 6.6.
Is it safe tou upgrade PHP or there is a a tangible risk that some
applications won't work after upgrade?
Is there a way to "rollback" the upgrade? So that i upgrade, i check that everything works and, if not, i downgrade.
Thanks!
Yes, there is a chance that some applications won't work. I upgraded from 5.3 to 5.4 on a system and found that a bug appeared in production code. It wasn't anything that couldn't be fixed. Of course, there have been other times where an upgrade worked flawlessly.
If you install 5.5 on the system without disturbing the 5.3 installation then it should be possible to rollback to 5.3 if needed. Just save the server configuration for 5.3 before pointing it to 5.5.

upgrade my PHP version from 5.2.3 to 5.5.9

I want to upgrade my PHP version from 5.2.3 to 5.5.9. I want to know what are the major problems involved with the functionality after upgradation .
My PHP is running in WAMP server.
Thanks in advance
The short answer is that yes, your code could break so you should test it.
Here's the list of Backward Incompatible Changes from PHP 5.2 to 5.3
And here's the list of Backward Incompatible Changes from PHP 5.3 to 5.4
And here's the list of Backward Incompatible Changes from PHP 5.4 to 5.5
Read each of these and see if you're using any of those functions in the ways described.

Categories