How to Upgrade WordPress from Command Terminal

This post shows students and new users steps to upgrade WordPress via SSH terminal console. When you’re running a WordPress website, one task that you’ll have to quickly learn is upgrading or updating WordPress content.

If you’re lucky, you may have a WordPress website that automatically updates when new versions are released. If that’s the case, then you should be all set. Nothing to do, but sit and relax.

However, not all WordPress websites are configured to automatically upgrade when new versions are released. If your WordPress site is configured where it can not self-update, then you may have to update from the server console or use other means.

An easy way to update WordPress content is from the server terminal. One can get to the server console via SSH or directly. Once on the terminal console, you should then be able to upgrade WordPress with ease.

Continue reading “How to Upgrade WordPress from Command Terminal”

How to Install WordPress on Ubuntu Linux with Nginx

This brief post shows students and new users how to install WordPress content management system (CMS) on Ubuntu Linux with Nginx HTTP web server. It also has a link to setup free Let’s Encrypt SSL certificates to secure your WordPress website.

WordPress is a free and open source CMS based on PHP and MySQL that also has many features and thousands of plugins and template or themes. If you want to create an online website or store, WordPress might be the simplest way to do it, especially if you will need support from users to manage and maintain the site.

This tutorial is based on Ubuntu Linux. We’ll be installing Nginx web server, MariaDB database server and PHP modules. We’ll also link to another post that will show you how to secure your WordPress website using Let’s Encrypt free SSL certificates.

For more about WordPress, please check its homepage

Continue reading “How to Install WordPress on Ubuntu Linux with Nginx”

How to Install WordPress on Windows WSL

This brief tutorial shows students and new users how to install WordPress on Windows 10 WSL (Windows Subsystem for Linux) 2 with Nginx HTTP server on Ubuntu 20.04 | 18.04.

WordPress is the most popular content management system in use today. It’s an open source platform and works great in Linux systems, including Ubuntu.

If you’re running Windows and want to use WordPress, using Windows with WSL 2 might be your best option and the steps below will show you how to do that.

With WSL, you can install full Linux operating system inside Windows. So get Windows, enable WSL, install a Linux OS and run WordPress.

Back in 2017, Windows released the original WSL version. WSL 2 is an improvement over version 1 and comes with performance boost, full system call compatibility, and built with a new architecture and that delivers features that make WSL an amazing way to run a Linux environment in Windows.

If you have a machine that meets the requirements above to run WSL 2, then continue below.

Continue reading “How to Install WordPress on Windows WSL”

How to Disable AMP for WordPress Pages

This post shows students and new users how to completely disable and remove Google Accelerated Mobile Pages (AMP) feature from WordPress websites and pages.

AMP speeds up your website loading time and provides performance boots for your audience and visitors. It does this by cutting out a lot of HTML and JavaScript elements that tend to make websites load slowly.

However, not everyone has seen these benefits championed by Google and others. Some webmasters have reported that AMP hurts user’s engagements and performs poorly with AMP-enabled advertainments.

If you feel that your AMP pages are not very useful and hurting your users’ engagements with your website, simply disable and remove it.

If you simply disable AMP from WordPress without also adding appropriate redirects, it may cause a lot of trouble for you, including 404s, missing pages and more.

Continue reading “How to Disable AMP for WordPress Pages”

Upgrade WordPress to PHP 8.0 on Ubuntu 20.04 | 18.04

This brief tutorial shows students and new users how to use PHP 8.0 with WordPress on Ubuntu 20.04 | 18.04.

The team at WordPress continues to encourage all users to run the latest and greatest versions of PHP. So if PHP 8.0 is fully supported, you may want to upgrade to it and make use of its newest features and enhancements that were released.

At this moment, PHP 8.0 is not ready to be used with WordPress. WordPress 5.6 which is being released in couple of weeks as of this date, might support it, but developers are still calling WordPress 5.6 “beta compatible” to PHP 8.0.

If PHP 8.0 works with core WordPress functions, I doubt all themes and plugins will work without issues at this moment.

However, if you really, really want to give it a shot, simply continue below upgrade to PHP 8.0 and use it with WordPress.

Continue reading “Upgrade WordPress to PHP 8.0 on Ubuntu 20.04 | 18.04”

How to IP Whitelist WordPress Admin Page with Nginx

This brief tutorial shows students and new users how to whitelist or limit WordPress admin access based on IP address when using Nginx HTTP server.

When you setup your WordPress website online, almost immediately you will begin to see bots and scanners loading your wp-admin.php file.

This is an attempt to gain access to your admin dashboard, and is known as brute-force attack. This the most commonly used attack on the Internet today. It tries usernames and passwords, over and over again, until it gets a successful login.

In most cases this will never work. However, if you use admin as your username with a simple to guess password, then the likelihood that this attack working on your site is high.

Due to the nature of these attacks, you may find your server’s resources being used up causing performance problems. This is because the number of http requests are so high that the servers run out of resources.

You will have to increase your server resources to be able to withstand more of these.

When you using Nginx, you can stop these attacks quickly by restricting the admin login page to only approved IP addresses.

This steps below will how you how to do that.

Continue reading “How to IP Whitelist WordPress Admin Page with Nginx”

How to Add Google AdSense Ads on WordPress AMP Pages

This brief tutorial shows students and new users how to add AdSense ads on AMP pages when running WordPress websites or blogs.

Google AdSense is a program that allows webmasters and anyone who runs a website or blog to earn income by adding AdSense ads to their pages.

When your users visit your pages and interact with ads on your pages, you get a chance to earn some money from these ads. The more users you have, the more you may be able to earn.

It is easy to put AdSense ads units on regular WordPress pages. To do that, simply copy the ads unit provided when you logon to your AdSense account and create a new ad unit. Then paste the codes on any of your pages and in no time, ads should begin appearing.

However, if you’re running AMP pages, the process isn’t that simple.

Continue reading “How to Add Google AdSense Ads on WordPress AMP Pages”

Google Site Kit Out of Beta and Available for all WordPress Site Owners

Google Site Kit for WordPress which was in beta for the last 6 months is finally released and now available for all WordPress site owners.

With Site Kit, you will only need one plugin for Google Analytics, Search Console, PageSpeed Insights and AdSense code and scripts on your WordPress sites.

No need for separate and individual code and script from each of these Google products.

You will get data from Search Console, Analytics, AdSense, PageSpeed Insights, Tag Manager and Optimize, assuming you want reports from these directly in your WordPress dashboard.

Google Site Kit lets you add scripts and verification code from four different Google products, at least for now. Instead of adding Google Analytics script, Search Console verification code, AdSense tags and PageSpeed metrics tags individually in your header.php file, simply install Site Kit to include all these different products at once.

After installing the plugin, a dashboard displays how well your site is doing with these various Google tools, such as Search Console, Analytics, AdSense, and PageSpeed Insights.

This is going to be a very popular plugin on WordPress plugins dashboard.

Continue reading “Google Site Kit Out of Beta and Available for all WordPress Site Owners”

Resolve 413 Request Entity Too Large With WordPress | Apache2

This brief tutorial shows students and new users how to resolve a common error with WordPress when trying to upload files, media and other data and get shown an error the says “413 Request Entity Too Large” via Apache2 HTTP server.

This error, 413 request entity too large occurs when you try to upload or make a client request that is too large to be processed by the web server, in the case a Apache2 HTTP server.

If the server setting has a request size limit that is too small, your users / clients may come across this error a lot. So you will probably want to adjust the web server settings to allow larger requests.

WordPress allows users to upload new themes and plugins files, however, if your Apache2 powered website isn’t configured to allow large file to be uploaded, the upload process will fail always.

Some common errors user get when dealing with file uploads with WordPress are: Http error attempting to upload media, the uploaded file exceeds the upload_max_filesize directive in php.ini, maximum execution time exceeded, allowed memory size exhausted and many more.

Continue reading “Resolve 413 Request Entity Too Large With WordPress | Apache2”

How to fix 413 Request Entity too Large with WordPress and Nginx

This brief tutorial shows students and new users steps to resolve a common error with WordPress when trying to upload files, media and other data and get shown an error the says “413 Request Entity Too Large” via Nginx.

This error, 413 request entity too large occurs when you try to upload or make a client request that is too large to be processed by the web server, in the case a Nginx HTTP server.

If the server setting has a request size limit that is too small, your users / clients may come across this error a lot. So you will probably want to adjust the web server settings to allow larger requests.

One of the common issues webmasters encounter when managing WordPress is allow the server to allow file upload via WordPress media library.

WordPress allows users to upload new themes and plugins files, however, if your Nginx powered website isn’t configured to allow large file to be uploaded, the upload process will fail always.

Continue reading “How to fix 413 Request Entity too Large with WordPress and Nginx”

How to Stop | Prevent Searching Engines from Crawling WordPress Sites

This brief tutorial shows students and new users how to stop or prevent search engines and other web crawlers from crawling and indexing WordPress websites easily.

There are many reasons why one might want to stop search engines from crawling or indexing WordPress websites.

One might be to prevent indexing of website content while the site is still under development. You probably don’t want Google to index your under construction or maintenance mode page while the site is still under construction.

Another reason might be to prevent search engine from indexing or listing sensitive information that should only be hosted on your sites.

What ever the case, it’s easy to configure WordPress sites to instruct search engine not to crawl or index content from a site you don’t want to list online.

Continue reading “How to Stop | Prevent Searching Engines from Crawling WordPress Sites”

How to Disable WordPress Comments Notifications

This post shows you how to turn off or disable WordPress comments notifications on your blogs.

By design, WordPress notifies the site’s administrator via email everytime a comment is left on the site. For webmasters and site administrators, this can be annoying at times.

If your site is new and don’t have appropriate settings to block spammers and others, this can be extremely frustrating. Students and new users who are starting out with WordPress will find this post handy and helpful.

WordPress allows this feature to alert you of new comments so that you can respond and increase user engagement. This is a great way to start a blog to engage your readers.

However, as your blog grows, these notifications maybe become overwhelming and may hamper your focus and you may have to turn off or disable notifications everytime a comment is left for you.

Turning off notifications will allow you to respond at your choosing.

Continue reading “How to Disable WordPress Comments Notifications”