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…



Install open source flat-file CMS Grav on Ubuntu

Grav is open source flat-file CMS which means without any needs of the database.  It only has two requirements web server like Apache, Nginx, IIS, etc … and PHP 5.6.3 or higher.  It uses Markdown for formatting syntax and it automatically converts to HTML.  It also has a Normal or Expert mode for editing content.  I am installing this on Ubuntu 16.04, but it should work just fine with other versions of Ubuntu as long as you meet the server/PHP requirement.  Also, Grav have two options when you download Grav core or Grav Core + admin plugin, I am using installing with Admin plugin to get more options.

Installation is very easy, once you have the web server of your choice and PHP version meets the requirement.

Download the Grav from https://getgrav.org/downloads and extract it then upload it to your web server

Then just go to your Domain URL and you should see the following screen, where you fill in your admin information and click Create User

If everything goes well it should bring you to Dashboard screen, this is your admin screen, where you will be able to add, delete, and make changes to your Grav CMS.  Also before you do anything click Backup and it will automatically back up for you.

This is default home page of Grav after fresh installation

If you want to edit your page to your Grav CMS login to admin (YourDomain/admin)
To edit Home Page, click on Pages>click Home

Now you should be to edit Content and click on the other tabs to see more options, Advance and Mode type Normal/Expert.

After the installing you may need to upgrade, just click on the Update on your dashboard and click continue

Back to your dashboard you should see fully updated, otherwise click check for updates

That’s it, enjoy it



How to Clone old drive to Samsung solid state drive

When you replace your old spinning drive with any solid state drive will double your computer speed.  There are many solid state drive vendors and versions of the drives, some are more reliable than others.  I had written one post for SanDisk SSD drive and this one I am writing about the Samsung SSD software, much easier to use.  I have been using Samsung drive for a long time and it’s the one I feel more reliable, that does not mean other vendors is not, you can use any vendors you like and I am sure they all have some kind of cloning software included or have to find something else.  Cloning software saves you time and keeps all your data/software installed as if nothing changed to your computer system, but you will see the speed increase for sure.  You will be thinking after why I have not done this upgrade before.  Let’s get started.

What you will need:
Tool to open your Laptop/Desktop to replace a hard drive
USB to SATA cable (unless you have the second slot to put new drive)
SSD drive same size or whatever your data total size is plus future free size to store more data

Download the cloning software: Data Migration Software at https://www.samsung.com/semiconductor/minisite/ssd/download/tools/

Once downloaded, double click to start the installation, then choose the Language then click Next

Click Next

Read the Agreement, Accept and click the Next

Then Click Install

Then click Finish

Then open the Samsung Data Migration software, you may have a shortcut on your desktop or you will find it in the program list.  If for some reason you have an older version you may get update option, if you get that screen then do the Update by click on Update 

It should go through same installation process as above, once updated it may open Samsung Data Migration software, if not open it manually to start the clone process.

At this point you can plugin your new drive, if you have not done yet.  You should see your current drive and new Samsung SSD Drive on bottom, make sure it’s the right drive, you may have to click on refresh to see.  If you don’t see the drive then you may have to install the driver.

Once is confirmed that’s the right drive and everything else is closed, Click Start and you will get Warning screen asking Would you like to start cloning? Click Yes


The time it takes to cloning may vary base on data type, size of data and speed of your current drive, for me, it took about 1 hour.  Make sure you don’t stop the process and if it’s laptop make sure to have your power cord is plugged in.

Click Close

Then you will get an option to Exit or Shut Down, Click ShutDown and remove an old drive and put the new drive in.

That’s it, once the computer comes back you will see much faster.  No more waiting and now you can be happier 🙂



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