This post assumes you’re having a hard time removing the index.php file name from the URL slug of your WordPress site.
Looks like something like this:
This means one of two things:
Continue reading “Removing Index.php From the URL Slug in WordPress”
You’ve heard it’s important to install Let’s Encrypt (LE). You spin up your Ubuntu 18.04 machine and try to use https://certbot.eff.org/.
You run the command:
certbot –apache -d domain.com
You are greeted with:
Continue reading “Lets Encrypt: Unable to install the certificate”
When working on your server you might need to disable the Uncomplicated Firewall (UFW). When doing so you’ll notice it doesn’t display your rules when the application is inactive.
Continue reading “How To List UFW Rules When The Application is Inactive or Disabled”
This is not a comprehensive guide to the UFW application.
It is a basic orientation for the UFW application. This should provide insights you’re probably not aware of, but many might assume you already know.
Continue reading “Working with UFW – Uncomplicated Firewall – on Ubuntu”
When you add a domain to your new Ubuntu 18.04 web server you need to take a few steps to make sure the web server recognizes the request.
Note: All commands below assume they are being run in terminal.
Continue reading “Apache – Configuring VirtualHosts on Ubuntu 18.04”
If you’re looking for a quick way to keep your CentOS machine patched at all times, become friends with yum-cron.
To install, in terminal, use:
#yum -y install yum-cron
The -y forces the install, answering any Yes / No “are you sure” questions.
Once installed, be sure to start the service using:
# systemctl start yum-cron.service
You can verify the status (make sure it’s running) using:
# systemctl status yum-cron.service
Output should look something like:
yum-cron.service – Run automatic yum updates as a cron job
Loaded: loaded (/usr/lib/systemd/system/yum-cron.service; enabled; vendor preset: disabled)
Active: active (exited) since Mon 2016-11-07 19:16:01 UTC; 2s ago
Process: 5385 ExecStart=/bin/touch /var/lock/subsys/yum-cron (code=exited, status=0/SUCCESS)
Main PID: 5385 (code=exited, status=0/SUCCESS)
Last step is to make sure it’s enabled, this will make sure it restarts in the event the machines reboots later.
# systemctl enable yum-cron.service
Sharing is caring!
If you’re working in linux you will be introduced to writing shell scripts at some point. When you do, you’ll become very familiar with the echo.
If you open your terminal, and run an echo command it’ll literally echo whatever you put after the echo:
$ echo "Hello World" Hello World
Continue reading “How do you add color or bold the echo outputs in a shell script?”
Sometimes you need to compress an entire directory, but sometimes you want to ignore specific file types.
Here is a basic command that you can use to remove specific file types before you compress it. In this example we use the find command to look for, and ignore, all image file types. That then gets piped into the tar command:
Continue reading “Tar (Compress) a Directory without Images via Terminal”
I was working on one of my servers when I realized that I had done a bone-head mistake. I left the root password blank in MySQl.
It was not as easy as I thought to fix the problem. There were a couple of things I didn’t account for, specifically that when you’re initially setting up MySQL on Ubuntu and don’t provide a password to the root user, it will use the auth_socket plugin. That plugin doesn’t care and doesn’t need a password. It just checks if the user is connecting using a UNIX socket and then compares the username.
Continue reading “Setting Root Password on MySql when it’s Empty”
This post will walk you through the process of showing and updating a MySQL database via terminal.
We’ll use a WordPress installation because it has an established database schema. The principles apply to any database.
Continue reading “How do you show and update a MySQL database in a linux terminal?”