I will be updating our WordPress sites this weekend and I was wondering what might be the best versions to go to. Of course, the latest would be best in theory but sometimes there are bugs that have not been worked out yet so we haven't always gone to the latest and greatest.
We host internally on IIS. I have 3 sites and need to upgrade WordPress (current version 5.7.6) and wasn't sure whether to go to 5.8, 5.9 or 6. I also need to upgrade PHP (current version 7.4.21) and thinking about 7.4.28 or 8.
I was just trying to get some thoughts. If the general consensus is 6.0 and 8.0 that's fine. I don't have any custom code or rely on a lot of plugins. The only plugins I'm concerned about are Subscribe2 and Active Directory Integration.
Thanks!
I think you need to try to update your PHP, WordPress, and plugins separately on Dev environment and test each stage manually or using utility as a screaming frog.
Also, you can use next instrument https://psalm.dev/ , that helps you to check the compatibility of your code with a concrete PHP version.
Related
I have a few very old wordpress sites with lots of plugins, but most of the new plugins not working on php v 5.2. If I update the php version from 5.2 to 7.x will it cause any serious problems to the plugins, themes or current functionality of the site ? ( All the wordpress installations have not been updated since 2012, but at the moment they have been upgraded to the latest version)
the answer is yes, there are lots of changes and deprecated stuff in php for past few years.
Also, I think the problem is not in your php version (because I was running wordpress 4.8 on php 5.0
I think new plugins won't work because of the wordpress version. Hooks, methods, functions and lot of more "core" stuff have changed since 2012 in wordpress, so I don't think this will help you anyhow.
But anyways, if you want to try, an option would be to update your php to a 5.5 version instead of jumping straight to 7.x. (I'm currently using php 5.5 for almost all of the wordpress sites I administrate)
The latest stable version of php5 is PHP 5.5.38 which you can find here http://php.net/downloads.php#gpg-5.5.
Depending on your OS, you will have a method to update it (but that's already a new question)
For now, I suggest to test them on your localhost.
Wordpress core recommends using the PHP above 7. The issue should be you making a backup of your website files and database. Deactivate the plugins. Update Wordpress core to 4.9.1 and then re activate one plugin at a time.
i am thinking about migrating from php 5.3 to php 5.6 on my company's server, but i'm concerned about how it may affect other websites on the server, especially joomla and wordpress app's, which were hosted some few years back, like 2011. I was trying to host a new website that uses 'get_result()' but i was having some errors when hosting it, even though mysqlnd driver was present, i could only fetch my results using'bind_result()'. so i debugged it, and found out that it's because of a certain driver nd_mysqli which is present in php 5.6. So that's why i decided to upgrade. Are there any issues that could come after this upgrade? Or is there another way of getting the nd_mysqli driver? though honestly i'd prefer to upgrade, this is 2017, it's about time for that.
A fair amount has changed between 5.3 and 5.6, so it is hard to say exactly what issues you may face.
If you are running recent versions of joomla and wordpress the chances are they are compatible as the relevant developers will already have fixed any issues, but if they are as old as php 5.3 then you may run into issues.
Whatever you do, you should create a test server to be sure.
The following pages show the changes that have been made:
http://php.net/manual/en/migration54.php
http://php.net/manual/en/migration55.php
http://php.net/manual/en/migration56.php
You really should upgrade though php 5.3 no longer receives security patches and you are likely vulnerable to something.
It depends on the versions of Joomla and WordPress.
For example, it might be possible to get Joomla 1.5 and older versions of WordPress running on PHP 5.6, but you will need to suppress strict errors as per https://stackoverflow.com/a/9984309/1983389 or similar. It will also depend on what extensions / add-ons are being used.
As #Theo says, it is probably best to do this change in a test environment first so that any issues can be identified and resolved before proceeding with the change on the production server.
An alternative and better long term strategy might be to upgrade the Joomla, WordPress and any other applications on the server before upgrading PHP.
I have been tasked with upgrading the template of a Joomla 1.5 website to responsive using Bootstrap (a really tricky thing for me since I have only worked from Joomla 2.5 up to 3.4), so I created a base template on a Joomla 1.5.26 Stable local installation.
Client didn't wanted to share code, so I will have to give only the template file, that is the base template modified, but today they told me Joomla version they are using is 1.5.15 and they won't update it anymore since it was the last version that allowed myisam on mysql config. Template is not finished but they want to test it, so I can't find enough documentation since its very old to confirm template will work properly.
Also I am recoding old extensions to try to use Google Maps API, but I can't find almost any extensions left and I'm trying some but can't know if they can run on previous builds. I didn't even was programming or designing anything by the time these versions were released :( could someone enlighten me?
EDIT: So far version 1.5.15 requires myisam database config to run, so it needs a mySQL version lower than 5.5. With XAMPP 1.7.2 it seems to run fine, just delete all cookies from browser to be able to use phpmyadmin and other things.
Clientside seems to work fine for now, but maybe Google Maps API will require a bit of patience.
Bootstrap running on these antique its a real challenge but it will be done, one way or another. Thinking of publishing a template just in case anyone wants to revive these old systems.
Wow, quite the client you're having to deal with.
I believe the extensions you developer for the latest version of the Joomla 1.5 series will still work on 1.5.15, however, to be sure, I'd suggest installing Joomla 1.5.15 which you can download from here:
http://mirror.myjoomla.io/Joomla_1.5.15-Stable-Full_Package.zip
This ensure there will be no B/C issues
My hosting server is upgrading from PHP version 5.2.x to 5.3.x and I have some WordPress and ExpressionEngine installs. I am wondering if anyone knows if this upgrade will effect my site in any way.
I know that the minimum requirements for EE is 5.1.6 and for WordPress it's 5.2.4. So, it seems like they should be ok, but I have never had this happen and just want to be aware of what to look out for.
Thanks in advance.
The upgrade is not before time -- php5.2 has been officially out of support for nearly two years already. (Some would even say that a service provider that is still on 5.2 is being actively negligent of their security)
Wordpress is a popular package, used on a lot of sites. Many of them will have been running 5.3 for years. Even if Wordpress didn't work on 5.3 once upon a time, it would have been forced to update to support it a long time ago.
I remember three years ago Drupal was taking a lot of flak because Drupal 6 wasn't fully compatible with 5.3 and they hadn't finished Drupal 7 yet. That was three years ago.
In short, as long as you're on a recent version of Wordpress (or indeed any other CMS), and you're using plugins that are properly supported and up to date, there's no reason at all to worry.
Conversely, if you're on a version that is old enough not to support php 5.3, then you need to upgrade urgently, because the stuff that was taken out of PHP between 5.2 and 5.3 was all done for security considerations; they removed and deprecated old PHP features that were fundamentally insecure. Therefore, it follows that if your software doesn't work with in 5.3, it means it's likely using those insecure features.
Final thought: http://wordpress.org/about/stats/
I note that the WP stats page shows that a third of WP installations are on 5.3. That should be sufficient proof that it works.
(I'm a little worried about the two thirds who are still on 5.2, though, given what I said in the first paragraph)
In my experience, when doing upgrades like that, a grid service provider will manage that transition, and if you have any issues with your sites not working, you can get help from them.
However, I think you're not likely to see any issues.
What version are your EE sites on? If you're on the 1.x branch, then you'll want to upgrade to at least 1.7.0.
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.