Title: Updating PHP advice
Last modified: April 20, 2021

---

# Updating PHP advice

 *  [andreasjacobsen](https://wordpress.org/support/users/andreasjacobsen/)
 * (@andreasjacobsen)
 * [5 years ago](https://wordpress.org/support/topic/updating-php-advice/)
 * Hello all
 * I have taken over a website that is still running on php 5.0 and naturally I 
   want to upgrade it to 7.4, but I can’t because a plugin or something is blocking
   me from doing so. When I try to update PHP my website goes offline and I get 
   a 404.
 * I have decided to redesign the website at the same time, and I am doing so locally.
 * My plan is:
 * 1. Delete everything on the databases and files via. FTP
    2. Upgrade my PHP to
   7.4 3. Use duplicator, upload to FTP and then install (as I have done before)
 * My questions:
 * Is there anything else I need to be aware of?
    How long will it take to update
   PHP? Currently the website is using a different DNS provider than the domain 
   registrar, anything I need to know here?
 * Hope you can help
    Thanks a lot in advance 🙂
 * Andreas

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Dave](https://wordpress.org/support/users/dvaer/)
 * (@dvaer)
 * [5 years ago](https://wordpress.org/support/topic/updating-php-advice/#post-14340368)
 * Hi Andreas,
 * Sounds like a good plan to update PHP. I would consider doing this slightly differently
   in your scenario.
 * Because you have an existing site with existing functionality, instead of developing
   locally you could also develop the new site on a temporary subdomain (on the 
   same server). You can set a different PHP version (7.4) for your subdomain without
   affecting the existing site (but double-check with your host just to be sure).
 * Changing the PHP version in your hosting account is like flicking a switch and
   is more or less instant. If you use caching or a proxy such as CloudFlare, you
   may need to clear those to see the changes.
 * The advantage of developing on a subdomain is that you’re working on the server
   the site will be on afterwards. So you have the exact same setup. Also, if there
   are existing files you want to move across, you can do so easily with your host’s
   file-manager, which will be faster than FTP.
 * You could either start from scratch with a completely fresh install (which may
   be good if this is an older site).
 * Or you could create a clone of the site with the duplicator plugin and install
   that on your subdomain. That would have the advantage that all the content is
   on the site already. You could then deactivate all the site’s plugins and switch
   to a default theme, before updating your PHP version. This would hopefully keep
   your site working, after which you could update everything (including all plugins)
   and start activating plugins again one by one, checking the site’s front-end 
   each time. This would also be a good moment to do a plugin review and only keep
   those essential to the site.
 * When you’re done you can delete everything on the old site, update PHP there,
   and use the duplicator plugin again to move the new site from the subdomain to
   the main domain.
 * I hope this helps 🙂
 *  [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * (@rossmitchell)
 * [5 years ago](https://wordpress.org/support/topic/updating-php-advice/#post-14342242)
 * A few things to consider:
    – My cPanel all set PHP version on a hosting wide 
   basis, maybe your support can help you with this. So I suggest using localhost
   or even different hosting. – Maybe upgrade to intermediate versions of PHP in
   several steps, say to 5.6 which is widely used and substantially compatible, 
   then ver 7.0 or 7.2 – There is a plugin that checks PHP compatibility: [https://wordpress.org/plugins/php-compatibility-checker/](https://wordpress.org/plugins/php-compatibility-checker/)
   suggest using it to find your hot spots. – Many of your plugins and theme will
   have been updated and available in 7.4 compliant code. Others may have been abandoned
   and you will either have to upgrade them yourself or replace their functionality.–
   Which version of WordPress are you running ? This is available from the variable“
   $wp_version” in file: “wp-includes/version.php” In upgrading your WordPress various
   issues may arise including that your Javascript version will also get updated.
   One school of thought advises to upgrade is stages. See “Upgrading Across Multiple
   Versions” in:
 * > [Upgrading WordPress – Extended Instructions](https://wordpress.org/support/article/upgrading-wordpress-extended-instructions/)
 *  Thread Starter [andreasjacobsen](https://wordpress.org/support/users/andreasjacobsen/)
 * (@andreasjacobsen)
 * [5 years ago](https://wordpress.org/support/topic/updating-php-advice/#post-14342574)
 * Hi Dave and Ross
 * Thanks so much for the detailed advice.
 * The website/wordpress hasn’t been updated since 2017 and is still running the
   same version from then.
 * The problem is that the website consists of 6 pages, where 3 of them are made
   with separate WP-folders in the FTP (so every page has a different login), and
   the remaining 3 are made with Adobe’s Muse (outdated). Since the website also
   needs a complete redesign, I figured it would just be better to start from scratch:
 * Delete everything on FTP and delete all the 6 databases
    Update PHP to version
   7.4 Check my locally built site with PHP compatibility plugin Then upload my 
   locally built wordpress (on a newly created server, but using the same FTP where
   I deleted everything before)
 * This is also done so all of my 6 pages are in the same wordpress account, instead
   of having to switch logins for each page.
 * Currently my host doesn’t have a file manager, so I have to do everything via.
   filezilla or so.
 * I have actually already built most of my new design offline, and I just wanted
   to confirm my actions.
 * Is it possible with the scenario I have presented?
 * Thanks a lot again
 *  [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * (@rossmitchell)
 * [5 years ago](https://wordpress.org/support/topic/updating-php-advice/#post-14342618)
 * Yes, your plan to develop a new website which functions like the old one looks
   quite realistic.
 *  [Dave](https://wordpress.org/support/users/dvaer/)
 * (@dvaer)
 * [5 years ago](https://wordpress.org/support/topic/updating-php-advice/#post-14369630)
 * Yes Andreas, I agree with Ross; your plan sounds good. The previous setup sounds
   messy and outdated and would be quite impractical to work with. I would have 
   chosen the same or a very similar course of action.
 * Good luck with it!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Updating PHP advice’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 5 replies
 * 3 participants
 * Last reply from: [Dave](https://wordpress.org/support/users/dvaer/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/updating-php-advice/#post-14369630)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
