WP-CLI is a command line tool for interacting with and managing WordPress sites. In our previous article on How to Install WP-CLI we covered the process of installing WP-CLI onto a server. We did this in a way that the tool would be accessible by any user on the server. This prevents the need for your users to install the tool locally.
Continue reading “How to Update WP-CLI”
Sometimes you may find your server in a state of high load caused by out control of processes. First you’ll want to use a command like htop, top, or ps, to get an idea on the server’s current state. If you aren’t familiar with those utilities we’d suggest checking our our article on htop.
After you have an initial assessment of the server’s current load you will have a better idea on how to proceed. More often than not the load is likely being caused by regular server traffic and usage.
Generally that will mean the load is being caused by a high number of Apache, PHP, or MySQL processes. After all most servers are hosting websites and these are the most commonly required programs to run a website. With that in mind during times of high load it’s often nice to quickly stop all processes of a certain type.
Continue reading “How to: Using killall to Stop Processes with Command Line”
This article is a follow up to a previous article on the process of backing up a WordPress database with wp-cli. You may want to read that article before this one.
In this article you will learn how to restore a WordPress database backup using wp-cli tool. Having this skill at your disposal is crucial for situations where you need to restore a backup in a pinch. This skill can be particularly helpful if you are testing major changes and need to revert back.
- These instructions were created with a cPanel-based server in mind.
- Command line access via SSH will be necessary to follow along.
- The server must have WP-CLI installed, for installation directions see this tutorial.
Continue reading “Restore Your WordPress Database with WP-CLI”
Knowing your server’s IP address(s) can be a useful bit of information to have for various reasons. After all, other than your domain, the server’s IP is the main address used to reach the server. Knowing a server’s IPs may be necessary when making changes to: DNS, networking, and security. A server may have a single IP, or multiple IPs, sometimes you need a quick way double check since it’s easy to forget.
This tutorial will teach you how to check the IPs of any modern Linux server. To follow along will simply need access to the server via SSH or TTY.
- This tutorial requires basic knowledge of SSH and command line.
See our KB article on command line access via SSH.
- You must have SSH access to the server.
Check IPs with Command Line
- Begin the process by logging into your server via SSH:
- Now logged in via SSH, run the following command to check the servers IP:
This command is using the `ip` tool and is calling the `route` object, this command prints the current routing table.
Reading the Results
Once you execute that command you’ll see output similar to the following text. This is showing the servers IP routing table, essentially this is a set of rules used to determine where data will be directed.
When using this technique to find a server’s IPs you’ll keep an eye out for lines containing `src` followed by an IP. On these lines, the IP address following `src` are an IP configured on the server.
default via 203.0.113.1 dev eth0
203.0.113.0/24 dev eth0 proto kernel scope link src 203.0.113.86
188.8.131.52/16 dev eth0 scope link metric 1002
Any device using IP addresses will have a routing table used to determine the devices networking behavior.
In the example results, shown above, you see a severs routing table showing that the server has an IP address of: `203.0.113.86`.
While it may not look like much to new users these lines are dense with information. Each line of the routing table is there to describe a different behavior or condition. More information on these can be found in the ip commands manual pages, these can be found in the command line using `man ip route`. You can also read the man page online here.
Featured Freeware highlights some of the Liquid Web staff’s favorite free software. This can range from useful command line tools, open-source packges useful in web-development, or even multi-platform applications. This week we are covering a treasured favorite, htop. Continue reading “Featured Freeware: htop”
In this article you will learn how to backup your WordPress database using the wp-cli tool. Knowing how to backup your database is a critical skill to have when running a WordPress site. All your posts, pages, and more live in your database; keeping backups is critical.
You should always take a backup before any major changes to your site, just in case. It’s much quicker to take a backup now and do a restore if you need to, than to find a useful backup when you need it. Continue reading “Backup Your WordPress Database with WP-CLI”
Git is an open source, distributed version control system (VCS). It’s commonly used for source code management (SCM), with sites like GitHub offering a social coding experience, and popular projects such as Perl, Ruby on Rails, and the Linux kernel using it.
- These instructions are intended for installing Git on Ubuntu 15.04.
- I’ll be working from a Liquid Web Core Managed Ubuntu 15.04 server, and I’ll be logged in as root.
Continue reading “How to Install Git on Ubuntu 15.04”
Git is a widely adopted, distributed version control system (VCS) and open source. It’s commonly used for source code management (SCM), with sites like GitHub offering a social coding experience, and popular projects such as Perl, Ruby on Rails, and the Linux kernel using it.
- These instructions are intended for installing Git on Fedora 22.
- I’ll be working from a Liquid Web Self Managed Fedora 22 server, and I’ll be logged in as root.
Continue reading “How to Install and Configure Git on Fedora 22”
- These instructions are intended specifically for checking your version of cPanel or WHM via the command line or the WHM dashboard.
- I’ll be working from a Liquid Web Managed CentOS 7 server, and I’ll be logged in as root.
Method #1: Checking the Version of cPanel / WHM by the ‘cpanel’ Command
Using the cPanel command:
11.50.0 (build 27)
Continue reading “How to Check the Version of cPanel / WHM”
Users via Command Line 101: Basic User Interaction
- These instructions are intended specifically for removing a user on Ubuntu 15.04.
- I’ll be working from a Liquid Web Self Managed Ubuntu 15.04 server, and I’ll be logged in as root.
Continue reading “How to Remove (Delete) a User on Ubuntu 15.04”