I am trying to downgrade a Cakephp project from latest version to 1.3.15 so it could work on my current server setup, I don't want to upgrade my PHP version because I don't want to screw with my server design, security and infrastructure besides I have a lot of projects on the same server which were designed to work with this exact PHP version, I am a total Cakephp noob but I am working with CodeIgniter, any ideas ?
Related
I am trying to upgrade from CI version 1.7.3 to CI Version 3.1.7. The problem I have is for some unknown reason the User Guide for 3.1.7 DOES NOT even mention upgrading from version 1.7.3 to version 2.0-let alone upgrading from 1.7.3 to version 3.1.7. How can I get a list of changes made from version 1.7.3 to 3.1.7, IF codeigniter's own user' guide does not even MENTION my version?
I do remember reading something about changing CI version 1.7.2 to version 1.7.3, but then, I am not sure if that means I should follow the upgrade steps for 1.7.2?
So, if I am to follow the steps to upgrade from 1.7.2 to 2.0 then what was the point of upgrading to 1.7.3 to begin with? Any ideas would be greatly appreciated.
Thanks in advance!
This is the current upgrade paths on the CI Site. You need to upgrade from 1.7.x to 2.x, then 2.x to 3.x.
Most of it is pretty simple, but you will want to read carefully from 2.2 -> 3, as that has the most changes.
In response to the comment about system folders, in general you are always entirely deleting the existing system folder in your current project, and then putting in the new system folder from the version you are upgrading too. It is important to delete the old one first, not simply replace it, as sometimes files are removed and not replaced in upgrades.
The caveat is that this is only safe if you have used the framework as intended, and not modified any file inside the system folder. If you have, you will still need to do the aforementioned steps, but you will then need to address your previous modification, perhaps by re-hacking the system files.
Is it possible to upgrade Zend Version 1.10 to the latest version? Also, I assume I can't upgrade the PHP version (5.2 currently) to the latest as I'm running an Older Zend Version.
Can someone give me some insight here?
You should be able to upgrade to the last released version of ZF 1.x. (1.12.20) with minimal changes. I would expect this ZF version to work on PHP 7.
There are some docs for migrating a ZF1 app to ZF2 (not ZF3), but this is no small task (basically a rewrite of your application).
Both your ZF version and PHP version are past end of life (i.e. no longer receiving updates), so it's good that you are planning an upgrade.
I am using CodeIgniter 2.2.6 with PHP 5.5 and it works fine. Now I want to upgrade PHP to version 5.6.6 my question is, is CodeIgniter compatible with PHP 5.6.6?
I can't upgrade CodeIgniter to a new version because I have many models based on Version 2.2.6.
Codeigniter 2.2x IS COMPATIBLE with PHP7.1+.
You only need to remember:
Models/classes and so on are case-sensitive and have to start from capital letter
The same with names of files in application folder
There are problems with mysql (very old, not used now driver) so you have to use mysqli driver (but it is already implemented in CI2, check if you're not using it already)
if you have session table sometimes you'll have to truncate this table, clear cache and populate it again.
Check compatibility of software in third_party folder if you have problems - CI is not responsible for that issues.
In my case everything is working smoothly with the newest version of bootstrap & jQuery installed. However, I'm not using hooks, advanced functions and so on.
NOTE, that in most cases you can force server to use older php version using .htaccess and AddHandler command:
AddHandler application/x-httpd-php56 .php
This is last version of PHP before PHP7.
And last but not least - of course I don't recommend to use this very old version of CI, however in my opinions - in my cases - there is no sense to migrate from CI2x to CI3, in 2018 it is better to wait for CI4 and then migrate.
The Server Requirements page in the user guide says that CodeIngiter 2 requires "PHP version 5.1.6 or newer".
Note that PHP 5.6 will stop receiving active support in less than a month, so you might want to go right to version 7. PHP 5.6 should receive security patches until the end of 2018.
I can't upgrade CodeIgniter to a new version because I have many models based on Version 2.2.6.
Note also that CodeIgniter 2 is no longer supported:
the current version (2.2.6) came out in October, 2015.
CodeIgniter 2 has reached its end-of-life for support and updates, as of October 31, 2015. No further updates are planned.
We encourage you to upgrade to CodeIgniter 3.x!
There is an upgrade path from version 2.2 to version 3.1, which I encourage you to explore:
First, read Upgrading from 2.2.x to 3.0.x
Then, read the steps for performing minor upgrades
This probably isn't as hard as you think, and with the security implications I believe it's worthwhile.
I have custom made website built on CakePHP 1.3 framework. I can't update the framework, because i have so many custom made functions.
The problem is that my website doesn't work with latest PHP versions. Few weeks ago i found that many of the functions on the site doesn't work. I asked the host provider if they made any changes and they told that the server php version has been upgraded. They can't tell me what was the php verison of my acount and now i'm stuck.
Is there anyway to find out what was the php version that worked on my CakePHP script?
You can create a file with following code and check your php version and other informations as well
<?php
phpinfo();
?>
If you need programatically check this http://php.net/manual/en/function.phpversion.php
phpversion()
Change your provider and get a VPS, you can install any php version on this virtual server instance you want then. Read this.
php 5.4 has already reached it's end of life and 5.5 will do so in November 2016 as well. The best is to upgrade the server and php script to work with php 7.
Not upgrading is IMHO not an option because of security.
I'm pretty sure your site was running on 5.3 or 5.4.
I'm trying to figure something out:
I am using Ubuntu server 11.10 virtualized on Win7 (I don't think that matters but more info is better than less) to work on a Drupal 6 website I inherited and need to make significant changes to.
I want to set up a development copy of this Drupal website on my Ubuntu server so I can work without worrying about torching the production website.
I successfully got the production files downloaded and onto my machine, I got the production MySQL database exported and imported into the dev MySQL server, and I set up a symbolic link from the directory /home/myname/thewebsite.com to /var/www/thewebsite.com so I can easily access it.
When I got the website they didn't know the admin password so I dug around online and reset it in the dev db using phpmyadmin and finally log in.
When logging in and poking around the site there are lots of errors, which when googled lead me to believe that PHP 5.3 is causing them and that there are some modules in use that only work with PHP 5.2
After looking around a lot online and on stackoverflow there seems to be no easy way to install PHP 5.2 on Ubuntu Server 11.10. With no packages for 5.2 available through apt-get or aptitude what should/can I do?
1) Install 5.2 from source - how do I get it to interface with MySQL and Apache2? Also, I've never installed anything significant from source. Is there a walkthrough?
2) Replace the repositories with old ones? Will this work on 11.10? The newest instructions I found were for 10.04
3) Use already built PHP 5.2 packages for Ubuntu? Couldn't find these
4) Pay someone who knows more to do it for me? (Just kidding, this isn't really an option...)
Cheers and thanks for your help!
PHP dropped support for 5.2 in August 2011; operating system providers such as Ubuntu will not supply a version that is out of support, so you absolutely won't get an official copy of PHP 5.2 on the current version of Ubuntu (or any other OS).
If you're running an older version of Ubuntu (eg 10.04), you might be able to do it; it would still be a downgrade, because PHP 5.3 has been the default version for quite a long time now.
If you're on a newer version of Ubuntu, ie 11.10 as you state, it is going to be a problem for you.
The Drupal developers dropped the ball badly on this one. I guess it was because Drupal 7 tool so long to finish; they were expecting D7 to be out much sooner, and so they never bothered fixing up D6 to work with PHP5.3. As it turned out, this was a big mistake, because in fact D7 still wasn't officially released when PHP dropped support for 5.2.
But even so, they should have fixed it, because they're still officially supporting Drupal 6, so they need it to work with the current version of PHP. This is definitely Drupal's problem, not PHP's, Ubuntu's or yours.
But you still need to deal with it.
I found this question over on AskUbuntu.com, which gives an answer applicable to 11.04. It isn't quite 11.10 you were asking for, but it it a lot more recent than the best you'd found, so it might be helpful.
Alternatively, you could research exactly what it is about Drupal6 and your specific modules that doesn't work in PHP5.3. The language differences between 5.2 and 5.3 that can break things are not big, so I would expect any code changes required to be fairly small. You might find you can fix the code yourself. And maybe even submit the changes to the community -- Drupal is open source, after all.
Another tack you could take is to consider whether this saga represents an opportunity for you to move the site to Drupal 7?
This may or may not be feasible, depending on the modules you're using, etc, but if it is possible, it will solve the problem, because D7 is of course fully compatible with PHP5.3.
And just to cheer you up, I'll close by mentioning that PHP are on the verge of releasing PHP 5.4. Hopefully the Drupal devs will be more on the ball this time.