Upgrade WordPress To PHP 7+ | How To Do It Safely ⛑️
HTML-код
- Опубликовано: 24 авг 2024
- If you want to upgrade WordPress to PHP 7, you're in the right place. Although the process itself is easy, you can stumble upon some issues here in there if you don't follow the exact steps. I'll teach you how to make the switch and upgrade WordPress to PHP 7 the right way.
PHP 7 has been around for a while now, yet adoption rates are nowhere near where they should be. This new version offers a marked increase in performance, and most reputable web hosts will give you the option to upgrade WordPress to PHP 7. If yours doesn’t, then it’s probably time to choose a new WordPress host.
Get professional WordPress hosting with discount: bit.ly/WPHostin...
Best Hosting for WordPress: • Best Hosting For WordP...
Website → themeisle.com
WordPress Articles → themeisle.com/...
Facebook → / themeisle
ThemeIsle is the go-to source for the High-Quality WordPress Themes (both free & premium), and plugins every website owner needs. We're passioned about all things WordPress, but we're not afraid to tackle other web related subjects. Our goal is to give those websites easy-to-use themes and designs that can be managed by everyone.
Best Hosting for WordPress: ruclips.net/video/cjoQS0u2YIg/видео.html
Unbelievable. Works 100% and upgraded to PHP 7.4
That;s great 😀
Wonderful! It really helped upgradng my site!!
Before upgrading to the later version of PHP, you must paste that text into the .htaccess folder --> AddType application/x-httpd-php-latest .php
Interesting...
*PLEASE READ:* Before you do ANYTHING make sure you update *ALL YOUR PLUGINS!* This will make the process *WAY* smoother on you!
I agree, thanks for sharing this.
I just get this. Fatal error: Cannot use SimpleCalendar\Abstracts as Object because 'Object' is a special class name in /app/public/wp-content/plugins/google-calendar-events/includes/objects.php on line 9
Please help me..
Interesting. Try getting help from the WordPress community: wordpress.org/support/
I can't pick the php version, probably due to beta as explained on the forum. There's only 5.6 php. Shame
The best way to safely update your PHP version is to get help from your server admin.
Thx a lot!
Thanks for this! Took me awhile to get it all going, but got there in the end. For some reason the theme files didn't restore, and I wasn't expecting that the credentials would change.
Neither did I expect that. It seems that the PHP upgrade is difficult.
@@RobertPeterK Yeah I haven't actually done the upgrade yet. Just tested out the version with Local to make sure the site runs. Will look to do the upgrade this week. Fingers crossed!
@@kiwihali Ok, cool. Thanks
It wont even let me into WordPress it just brings me to a white page saying it needs a new PHP version at least 7.2 and when I look at bluehost it says I already have 7.3 idk what to do!!!
this doesn't appear to be working correctly any longer.. i'm following all of the steps you mentioned in the video, and when the backup from my live site is restoring, it gives me a "Session Expired" error message and then takes me to a 404 page of my main site's URL, not the staging site.. I can now no longer get to the staging site as well.
Any thoughts or others who are experiencing the same problem?
I have no idea what can cause the problem, sorry.
Get the old PHP back and try restoring the backup then.
Robert Peter your response doesn’t exactly make sense to my problem as i’m using this staging software to test new PHP versions.. i’m not looking to restore back to the current PHP version.. thanks anyways >.>
@@huntergeorge3909sorry for the misunderstanding
Same as comments below, after uploading the backup, when I log in to the staging site it routes me to the live site.
I will tray it out too see what's happening. Thanks.
Very helpful information, thank you!!!
Thank you too, Mark.
Doesn't actually show you how to upgrade. Shows how to do it in Cpanel near the end of the vid, but it doesn't even have the 7.4 option.
I think the 7.4 could be done the same way
True, if your host provides it. I've been looking for a way to do it manually since it doesn't use htaccess anymore.
Updraft for website backup
Updraft is great. I use All in one wp migration too.
I wasn’t able to restore backup on local host without needing to buy $30 migrating ad on.
Really? Interesting...
Flywheel wants Credit Card info to verify the account when you're not living in the US. Just in case you didn't know. So, for me this didn't work.
I think you can use another way then
@@RobertPeterK what way I would love to know
hi I am using the latest version of Wordpress locally, I would like to update php to version 7.4.1 (I have windows 10 pro 64bit), do I have to follow this guide without losing data? also the 7.4.1 (latest release of xampp) okay?
Well, because you are using it locally you have nothing to loose.
Maybe you should back it up first, just for the peace of your mind.
The fastest way I use in such situations is the all in one wp migration plugin.
is php coding different from version to version?
The coding itself no, just the way it works, I guess
I only have a two page blog, so this probably isn't worth it for me.
It's not just about how much content you have but how secure your entire website is.
This worked very well but I thought I’d have an independent site “test php 7” site as a local site?. When I uploaded to the New installed updraftplus it brought me to my site... not the local one?.? I thought the purpose of this was to test my site locally without making any changes to my original site? I disconnected internet also to see if the site was active as it should if it is installed locally but it says no internet ....?.?
It seems that this PHP upgrade creates confusion and complicates things
When trying to view my staging site I kept getting url redirects to my original site so I couldn't view it
Hey, Adem. I have no idea why, sorry.
the same happened to me when I added the /wp-admin at the end. When I tried to access it without wp-amin the page was blank
adoption rates arent where they should be because it keeps breaking everything for no reason and modules that are installed come up as not installed for wordpress.. the process of updates needs to be made user friendly, its just way to crap right now.
Yeah, you are right. It might be easier...
Further please elaborate on ea-php7.2 and alt-php7.2 and further to that per environment as my coanel hates ea version of php and only works with alt, single threaded vs multi threaded php and all these factors arent explained anywhere
hi. Thank you for the tutorial, much appreciated.. BUT for me, i keep getting an error saying "this file does not have an app associated with it for performing this action. '( it's for the DATABASE download.) what can i do to correct this to make things run smoothly. thanks for your help.
If you follow the tutorial step by step, everything should work just fine.
I solved the last problem with the calendar plugin. It was just a simple plugin update that was needed. Now the site is working but i get "Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'addmetawebcapablelinks' not found or invalid function name in /app/public/wp-includes/class-wp-hook.php on line 286". And I can't reach the admin page for some reason all I get is a blocked warning. Can somebody please help?
Sorry to see you having those problems. I think you should try contacting a WordPress developer. You can find affordable guys on Upwork, for example.
Once I successfully uploaded my backup files to testing-php-7.local , it's automatically redirect to my live site! So I can't check local site
Interesting. Same result after testing it multiple times?
it is the address saved in the databese. So it is pointing to it.
If I am looking to automatically backup my site using Updraft, which cloud service do you recommend?
You should go find a popular one, like Google Drive, for example?
Exact same result as George Hunter. Session expired and back to my live site. Looks like this method is dead.
Really? Interesting. Will take a look and see what I can do.
@@RobertPeterK Have you figured anything out yet? I'm having the same problem. It looks like Updraft is wanting me to buy their "migration" tool for $30 to do it correctly
my original test site is on xampp (php5.6 - port 3307)
i have a 2nd test site setup on xampp (php7.2 - port 3308)
I'm unable to upgrade from one site to the other so Ive tried this updraft/flywheel technique hoping I can transition between the two php versions.
it upgrades from the original test site on xampp (php5.6) to "xxx.local" as stated , I reinstall updraft as instructed, import the 4 backup files, but when i try to log in it redirects me back to my original xampp (php5.6) site and not "xxxx.local".
Seems like the only way to get around this problem is to "unzip" the "xampp (php5.6) files" and modify the URLS in them, then rezip the files & upload them into "xxx.local" via updraft. Im assuming the same thing is going to happen except it will redirect to xampp (php7.2 - port 3308) and the upgrade from php5.6 to phph7 will be successful.
since i have added php 7 through your suggestion my security level which was secure is not not trusted. Any suggestions why this would be? and how to fix the problem
PHP 7 is safer, that is for sure. You mean you get notification from the browser that the site is not secure?
@@RobertPeterK Yes. I contacted my web host and had them correct the issue.
Would it be better I just backup manually?
That is a good option, for sure.
I followed this step by step and although updraftplus backs up I keep getting “only database backed up”
It seems that this PHP upgrade creates confusion and complicates things.
When I upload my backup files to local staging site it redirects me to my live version of site/wp-admin and there it asks me to enter my login info not from the local site that I've created, but for active site login. I believe it has something to do with backup files I've downloaded/uploaded since "it's for backup not for migration". I've seen you get the same alert prompted when you upload your files as well. Any ideas how to overcome this?
Good question. I will check that out.
@@RobertPeterK Sure thing. Followup question, for another site - I don't have "PHP Version Manager", but I've found MultiPHP Manager and selected the 7.x PHP version. Any idea on where can I find "manage extensions" for that site because there's no "MultiPHP INI Editor" in cPanel? (it's a subdomain btw)
@@RobertPeterK I'm having the same issue. I followed every step and just end up getting redirected to my live version. Seems like it's more of a back-up versus migration problem (as everything in the DB and wp-admin will be the same as the backup). It would be great to find a solution to this.
You have to use a plugin like "All in one wp migration" to migrate your site to another location. You can also use "Updraft migrator". But it's not free. The plugin used in this video is for backup. Not for migration.
Great video
Thanks for watching!
What are the advantages of running PHP 7 vs PHP 5?
speed
So much speed 🚄
This video does not tell you how to upgrade to php 7.
Wasted time.
💪👍
Thanks, Mimi!
Interesting accent
Yeah, thanks. I am working on to improve my English every day
Oh no, I hope that didn't come off as sarcastic. I like the accent ☺️