WordPress update is currently in progress

How to fix WordPress when upgrading and you get error another update is currently in progress? This could be very simple as wait for 15 minutes and it will clear the error message automatically or you may need to look at the log file to see what’s causing the hang

You might have to change the PHP.ini file to increase the maximum execution time default is 30 seconds. You might see a message like Fatal error: Maximum execution time of 30 seconds exceeded, then change it in your PHP.ini in around line 380 30 to whatever

max_execution_time=30

Your error of URL might be: /wp-admin/update-core.php?action=do-core-upgrade
WordPress update is currently in progress
Another update is currently in progress. If waiting for 15 minutes does not fix it, then you might need to go into the database and: delete the core_updater.lock option from your WordPress database

Also, make sure to clear your cache and restart the web service to get the updated setting for your PHP.ini, that should be it. If you still have error check logs and maybe plugin you used may not be supporting newer version of WordPress.



How to upgrade WordPress

Many websites and company Intranet runs on WordPress around the world. Keeping the WordPress software is very important to keep your data safe. The process can be very simple or it could involve a lot of planning and carefully testing a newer version, before upgrading the live system. If you have set up your WordPress correctly with the right permission and documented all the customization then it should be easy to upgrade. Your template/plugin is the key to your WordPress function. The template should be customized to void the system upgrade issues and tested.

Preparation for upgrade

  • Backup database and installation files, make sure your backup is good
  • Check your current Plugin and Template comparability
  • Have your customization documentation handy, review it make sure they are up to date
  • Make sure you have access to the server directly, in case you lose remote session
  • Plan out and communicate with your users

Upgrade options 1

Login to your WordPress admin pannel, make sure you have full permission

1. Click on Update>Update Now

If everything goes well you should see: latest version installed 5.0.2

Then you need to upgrade the Templates Themes

2. Click on Update> you will see the message:
“The following themes have new versions available. Check the ones you want to update and then click “Update Themes”.”

click on each or select all and update

3. If there are any Plugin updates you will see message:
“The following plugins have new versions available. Check the ones you want to update and then click “Update Plugins”. “

Upgrade options 2

The manual process, assumed you have already done the backup in case anything goes wrong you can restore it. Download WordPress and extract the WordPress you just downloaded

1. Delete the old wp-includes and wp-admin directories from server, so it should look something like this

2. Then upload the wp-includes and wp-admin to server
3. Upload wp-content folder to your server and overwrite existing files
4. upload all of the root directory files and overwite on server

Then go to your WordPress URL, you should see Database update Required, click Update WordPress Database

If everything goes well you should see Update Complete

In case you want to check your WordPress is up to date you can type in URL
/wp-admin/upgrade.php

Then you need to upgrade the Templates Themes/Plugin
Click on Update>
you should see message for Themes/Plugin update, click on each one an update it.

The following plugins have new versions available. Check the ones you want to update and then click “Update Plugins”.

The following themes have new versions available. Check the ones you want to update and then click “Update Themes”.

That’s it, of course to test your website, menu, links, etc…



How to setup WordPress for website

WordPress is a very popular platform for websites and very easy to use.  All you need is a web server that supports PHP, then setup database.  Download WordPress from https://wordpress.org/download/ to your web server and extract it.

To start go to your domain URL to run the installation of WordPress, select Language of your choice and click Continue

WordPress getting start, at this point setup database and user name, which you will need on next screen, then click Let’s go!

Fill in Database information, then click Submit

Checking communication for the database info you enter, if everything went well, then click Run the installation

Welcome to new site, fill in your website information and click Install WordPress

Successfully installed WordPress

That’s it, now just customize it to the way you like it and enjoy it
You may need to check some settings and update it

Recommended Permissions:

  • Directories: 0755
  • Files: 0644
  • owner: www-data

Here are some quick list of feature which can easy to customize your WordPress site:
It also has a new editor called “Gutenberg”, which is very easy to use, if you want to use it, click Install Gutenberg

Appearance> it will change the look of your site, based on Theme
Themes – it will list all your themes
Customize– It will bring you to your current theme, to be customizing
Widgets – list all Available Widgets, which you can activate or disable
Menus – It will list Menu options and able to customize it
Header – It will bring you to your current theme, to customize your header
Editor – It will bring you to Them files


Settings> common settings changes to your site
Genaral– Site Title, Tagline, URL,Timezone, etc..
Writing -Default Post Category, Format, etc..
Reading– Homage Displays, Blog pages show options, Search engine Visibility, etc…
Discussion– Article, Comments, and other settings
Media– image size settings when you upload
Permalinks– URL link display settings
Privacy – set custom policy page


Tools> some tools to deal with your data
Available Tools – list of tools
Import
– options to import data into your WordPress
Export – options to export your data outside of your WordPress
Export Personal Data – to export user data
Erase Personal Data – to erase user data

if you want official version of WordPRess installation you can find it here



Moving your WordPress site to new server via All-in-one WP Migration

Here is another way of moving your new WordPress site to a new server.  I had written one post called How to move your WordPress site to a new server which was the manual way of doing, without the use of any plugin, like this one called All-in-One WP Migration.  It’s a very simple process to do move using this plugin, please make sure you have a good backup before doing anything.  I like said before, use whatever you feel comfortable.  As always I do recommend doing a full backup of your site file and database, just in case you need to go back to it.  In this post, will go through the whole process of moving your WordPress site, using third party plugin called All-in-One WP Migration. Remember, using this third-party plugin is easier, but have to be aware, it may have the restriction on function/size of database or type, which may change at any time.

I am assuming you already have a good working website, permission, and backup.  Will keep this simple and jump right onto moving site.

Install a plugin called All-in-One WP Migration by going to your WordPress admin panel and clicking on Plugins tab>Then Plugins Add New

Search: all in one WP, once you find it click Install, then Activate it.

Then let’s create a backup using the new All-in-one WP Migration plugin, by clicking on Create Backup under All-in-one WP Migration plugin

It will give you many options where you want to back up to, I am going to select the file

Once, it finishes back up it will give you the option to download it, click on it and save, then click close.

In case you want to download the backup via FTP/SFTP: \wp-content\ai1wm-backups

Then log in to the new WordPress site and install the same plugin installation

Now let’s import your data to the new site

Go to All-in-one WP Migration Plugin>Import>Then select the file and find your backup

You will get this warning if you are ready to override, click Proceed

Once it’s done, you should see Successfully message

That’s it.



How to move your WordPress site to new server

There are many ways to move your WordPress site to a new server.  Whatever you feel comfortable use it, there is no right or wrong way of doing it.  I do recommend doing a full backup of your site file and database, just in case you need to go back to it.  It’s a good idea to have more than one version of backup and keep the backup in a different location.  We will go through the whole process of moving your WordPress site, without using third party tools. Using third-party tool is easier, but have to be aware, it may have the restriction on function/size of database or type.

What you will need:

  • Internet access to download WordPress, go to https://wordpress.org/download/
  • Web server I am using Apache
  • Access to web/database server (mostly its same server, but it can be two different servers)
  • Access to site file via (FTP, SFT, GUI, etc. …)
  • SSH access to MySQL/Web server

WordPress Requirements: “We recommend servers running version 7.2 or greater of PHP and MySQL version 5.6 OR MariaDB version 10.0 or greater”

Backup:

MySQL Database exporting:
command: mysqldump  -u UserName -p DatabaseName > databaseBackupName.sql

Setting up new WordPress:

Copy WordPress installation files to your web server (default location /var/www/Your_WordPress) that you have downloaded from WordPress.org

Give ownership to the web server system user www-data.
command: chown -R www-data:www-data /var/www/Your_WordPress/

Go to URL of your WordPress, if everything is correct you should see Installation screen.  Choose your Language then click Continue

If you have any error correct it, then click let’s go

Login to your Mysql server and create a database:

Command: create database wpdb_name;

Grant access to the new database:

Command: grant all privileges on wpdb_name.* to UserName@localhost;
Command: flush privileges;
Then you can exit

Go to URL of your WordPress and fill in the Database, username, password, and hostname, then click Submit

If all is good, you should be able to click “Run the installation”

Fill in the information then click Install WordPress

if everything went well you should see the Success screen, click Login

Login to your fresh installation of your WordPress to make sure it’s all is up to date

Now let’s import the database to your WordPress, so you get your data:

Login to your web server or SSH to it: Then run this command to import the database
mysql -u SQLuserName-p NameOfDataBase < /LocationOfBackUPDatabase/WordPressDataBase.sql

Then update the URL:

Otherwise you will get: HTTP ERROR 404

Then Login to your Mysql:
command:use NameOfWordPressDB;
WordPress Address (URL):
command: mysql> update wp_options set option_value = ”http://URLofYourSite/’ where option_id = 1;

Site Address (URL):
command: mysql> update wp_options set option_value = ”http://URLofYourSite/’ where option_id = 2;

Check to verify if changes were made:
command: mysql> select * from wp_options where option_value = ‘http://URLofYourSite/’;

Images URL update:
UPDATE wp_posts SET post_content=(REPLACE (post_content, ‘https://OldDomain’,’https://NewDomain’));

To exit type \q:
command: mysql> \q

Or

if you want to hard coded: inside: wp-config.php top of the file

define(‘WP_HOME’,’https://yourdomain.com’);
define(‘WP_SITEURL’,’https://yourdomain.com’);

Or via GUI admin panel:
/wp-admin/options-general.php

If you have custom themes, you need to copy it to the new site:

Default Location: \wp-content\themes

Don’t’ forget to copy the media (images/videos you may have):

Default location: \wp-content\uploads

Also, if you have hardcoded any URL within your site, you will have to update it, all the post and any internal URL should be updated automatically

You may have issues, links not redirecting
in your .htaccess you may have to change it to make it work
example: https://YourDomainName.com/public_html/
then you will need to put /public_html/ because by default it only has /

That should be it, hope you find this useful