Linux Training Academy

Helping you level-up your career.

  • About
  • Products
  • Books
  • Linux for Beginners
  • Resources
  • Video Training Courses

Installing an SSL Certificate on CentOS Running Apache

See below to download the step-by-step instructions for this tutorial. It includes all the commands and everything you see in the video.

Introduction to Installing an SSL Certificate on CentOS 7

In this video lesson, you’re going to learn how to install a valid SSL certificate on a CentOS Linux Server running the Apache web server. By the way, the SSL certificate you’ll install will be issued by Let’s Encrypt entirely for free. Traditionally, you’ve had to pay for SSL certificates and renew them every year. With Let’s Encrypt that’s all changed.

SSL Certificate Installation Steps Overview

In this tutorial, you will learn how to install an SSL Certificate issued by Let’s Encrypt on a CentOS Linux system running the Apache web server. You will start out by installing Apache with mod_ssl. From there, you’ll add firewall rules to allow HTTP and HTTPS traffic. Next, you’ll enable the EPEL repository by installing the epel-release package. That will enable you to install the Certbot application and the Apache Certbot plugin. You will then create and install an SSL certificate using the Certbot utility. Finally, you’ll automate the certificate renewal process so that your site is never without a valid SSL certificate.

Why Install an SSL Certificate? (Do I Need an SSL Certificate?)

Before you start configuring your Linux server, I want to give you some important background information. As a quick reminder, SSL stands for Secure Sockets Layer and it allows for encrypted communications between a user’s web browser and a web server.

It’s important to use SSL any time sensitive data is involved such as credit card numbers, personal information, and authentication credentials such as passwords. Even if your web server is not handling sensitive information, using SSL can enhance the trust of your visitors to your site. Some web browsers now warn users that the site is “not secure” if it’s not using SSL.

Also, search engines such as Google, rank SSL enabled web sites hiring in search results, so there is an SEO or Search Engine Optimization, benefit as well.

Prerequisites and Information Needed for an SSL Certificate

By the way, this video makes a couple of assumptions. The first one is that your Linux system is running CentOS or RedHat Enterprise Linux. The second one is that your system is accessible over the public Internet. The last assumption is that your server has a valid DNS entry that points to your Linux system. For example, if your domain is www.example.com, when someone types in that domain in the web browser, they are actually connecting to your Linux server. I’ve included some additional information about the DNS configuration in the project documentation.

NOTE: This tutorial demonstrates the installation of an SSL certificate for the demo.linuxtrainingacademy.com domain. Even though this domain will be used throughout this tutorial, you must use your own domain when following along.

Download the Step-by-Step Instructions


Download Your Step-By-Step Workbook
Enter your email address below to download the project instructions in an easy-to-read and ready-to-print format.
We respect your privacy.

Filed Under: blog Tagged With: CentOS, cheat sheet, Command Line, RedHat, Server, Video, Web Hosting

3 Quick and Easy Ways to Get Access to a Shell Account So You Can Start Learning Linux Today

It’s one thing to read about Linux, but it’s another thing entirely to use it. If you are just getting started or have some newfound Linux knowledge that you would like to put to the test, you’ll need a shell account. Luckily, getting an account on a Linux server is fairly easy.

Web Hosting Shell Accounts

blue-host-120x240If you use a web hosting service to host your website you may already have a Linux account that you can use. Consult your hosting company’s documentation and search for “SSH” or “shell access.” If you don’t already have a web hosting provider, you can sign up for one and use it for shell access. Shared web hosting providers typically charge just a few dollars a month.

Here are some shared web hosting companies that can provide you with a shell account and SSH access.

  • 1and1
  • BlueHost
  • DreamHost
  • Site5
  • HostGator

Request a Free Account on an Existing System

You can request a free Linux shell account at BlinkenShell. However, you have to jump through some hoops like waiting a minimum of 24 hours and asking for people in their IRC chat room to vouch for you. You can also get free shell accounts on SDF, CJB, and Devio.us but they won’t be Linux accounts. SDF is NetBSD, CJB is FreeBSD, and Devio.us is OpenBSD. Since the BSD descendants and Linux are all Unix-like operating systems there is a lot of commonality.

  • BlinkenShell – Linux, but you have to wait for access.
  • SDF – NetBSD
  • CJB – FreeBSD
  • Devio.us – OpenBSD

Using Preinstalled Linux Images with VirtualBox

Linux Mint Desktop
Linux Mint Desktop

VirtualBox is virtualization software that can be installed on Windows, Mac, Solaris, or Linux. It allows you to run an operating system (guest) inside your current operating system (host). In this scenario you will spend a few minutes installing the virtualization software, downloading a pre-installed Linux image, and importing that image.

To get started, head over to the VirtualBox download page and grab the installer for your current operating system. Click through the install screens and accept the defaults. Here’s a video that walks you through the process.

Next, download a virtual disk image (VDI) to use. If your goal is to eventually become a Linux system administrator, download a CentOS or Ubuntu image. CentOS is a Red Hat Enterprise Linux (RHEL) derivative. As a general rule, CentOS and RHEL are often found in corporate environments. Ubuntu is popular with startups and smaller companies that run their operations in the cloud. Honestly, you can’t make a wrong decision. The concepts are the same, but the implementations vary slightly from distribution to distribution. If you can do something on one distro, you can surely figure out how to do it on another.

  • CentOS Virtual Disk Images
  • Ubuntu Virtual Disk Images

Launch VirtualBox, create a new virtual machine, and use the virtual disk image that you just downloaded. When you are asked for a hard disk image select the “Use existing hard disk” radio button and click on the directory icon. Next, click “Add” and select the virtual disk image. When the virtual machine is powered on you can log into the server using the username and password provided with the downloaded image.

To recap, here are three easy ways to get access to a shell account today.

  • Use a Web Hosting Provider
  • Obtain a Free Account
  • Run Linux in a Virtual Machine

Read the “Create, Build, Test Drive, or Deploy Your Very Own Linux Server with Full Root Access” article for even more ideas.

Filed Under: blog Tagged With: CentOS, Cloud, Fedora, Installation, Linux, RedHat, Server, Ubuntu, VirtualBox, Web Hosting

How to Install WordPress on Ubuntu (LAMP Stack)

This video demonstrates how to install WordPress on Ubuntu.  WordPress runs on the LAMP stack, which stands for Linux, Apache, MySQL, and PHP.  This video will cover how to install all of those components as well.

If you want to take it a step further and learn how to set up a highly available and scalable LAMP Stack, check out the High Availability for the LAMP Stack Course.

 

Filed Under: blog Tagged With: Command Line, Desktop, Installation, Linux, Programming, Server, Ubuntu, Video, Web Hosting

4 Quick and Easy Ways to Get Access to a Shell Account and Start Learning Linux Today

It’s one thing to read about Linux, but it’s another thing entirely to use it. If you are just getting started or have some newfound Linux knowledge that you would like to put to the test, you’ll need a shell account. Luckily, getting an account on a Linux server is fairly easy.

Web Based Command Line Access

The absolute quickest way to get access to a working shell account is to visit SimpleShell in your web browser and click “Start my session.” A terminal emulator that is connected to a Linux server will be displayed. You will be automatically logged in using a generic account and presented with a shell prompt.

Since you don’t have a personal account your shell history and any files that you create will be destroyed at the end of your session. SimpleShell is great for trying out a few commands or working for a short period of time since sessions are limited to 15 minutes each. You can easily start another session at the end of your 15 minutes, but just be aware that you’ll lose any work from the previous session.

Webminal is similar to SimpleShell, but with some additional features. You are required to create an account before you can use Webminal and your account persists between sessions. This means that your shell history and files remain intact and are waiting for you when you return. If you plan on writing shell scripts Webminal is a better choice than SimpleShell. You are limited to 1 MB of storage space, but if you are learning Linux commands and writing shell scripts, that is plenty.

LinuxZoo is yet another option. Like Webminal, you are required to create an account before you can use their service. Instead of getting a normal user account on a Linux server, you get access to the root account on a Linux virtual machine. It’s great for testing commands that require superuser privileges to run. Sessions are limited to 20 minutes and the virtual machine is destroyed at the end of that time. There is no picking up where you left off with LinuxZoo.

Here are your choices for Linux command line access from a web browser:

  • SimpleShell – No registration required. 15 minute session limit.
  • Webminal – Registration required. Account persists between sessions.
  • LinuxZoo – Registration required. Root access. 20 minute session limit.

Web Hosting Shell Accounts

If you use a web hosting service to host your website you may already have a Linux account that you can use. Consult your hosting company’s documentation and search for “SSH” or “shell access.” If you don’t already have a web hosting provider, you can sign up for one and use it for shell access. Shared web hosting providers typically charge just a few dollars a month.

Professional web hosting for $6.95/month.
Professional web hosting for $6.95/month.

Here are some shared web hosting companies that can provide you with a shell account and SSH access.

  • 1and1
  • BlueHost
  • DreamHost
  • Site5
  • HostGator

Request a Free Account on an Existing System

You can request a free Linux shell account at BlinkenShell. However, you have to jump through some hoops like waiting a minimum of 24 hours and asking for people in their IRC chat room to vouch for you. You can also get free shell accounts on SDF, CJB, and Devio.us but they won’t be Linux accounts. SDF is NetBSD, CJB is FreeBSD, and Devio.us is OpenBSD. Since the BSD descendants and Linux are all Unix-like operating systems there is a lot of commonality.

  • BlinkenShell – Linux, but you have to wait for access.
  • SDF – NetBSD
  • CJB – FreeBSD
  • Devio.us – OpenBSD

Using Preinstalled Linux Images with VirtualBox

Linux Mint Desktop
Linux Mint Desktop

VirtualBox is virtualization software that can be installed on Windows, Mac, Solaris, or Linux. It allows you to run an operating system (guest) inside your current operating system (host). In this scenario you will spend a few minutes installing the virtualization software, downloading a pre-installed Linux image, and importing that image.

To get started, head over to the VirtualBox download page and grab the installer for your current operating system. Click through the install screens and accept the defaults. Here’s a video that walks you through the process.

Next, download a virtual disk image (VDI) to use. If your goal is to eventually become a Linux system administrator, download a CentOS or Ubuntu image. CentOS is a Red Hat Enterprise Linux (RHEL) derivative. As a general rule, CentOS and RHEL are often found in corporate environments. Ubuntu is popular with startups and smaller companies that run their operations in the cloud. Honestly, you can’t make a wrong decision. The concepts are the same, but the implementations vary slightly from distribution to distribution. If you can do something on one distro, you can surely figure out how to do it on another.

  • CentOS Virtual Disk Images
  • Ubuntu Virtual Disk Images

Launch VirtualBox, create a new virtual machine, and use the virtual disk image that you just downloaded. When you are asked for a hard disk image select the “Use existing hard disk” radio button and click on the directory icon. Next, click “Add” and select the virtual disk image. When the virtual machine is powered on you can log into the server using the username and password provided with the downloaded image.

To recap, here are four easy ways to get access to a shell account today.

  • Try Linux in a Web Browser
  • Use a Web Hosting Provider
  • Obtain a Free Account
  • Run Linux in a Virtual Machine

Read the “Create, Build, Test Drive, or Deploy Your Very Own Linux Server with Full Root Access” article for even more ideas.

Filed Under: blog Tagged With: CentOS, Cloud, Installation, Linux, RedHat, Server, Ubuntu, VirtualBox, Web Hosting

Most Popular

  • Linux Commands Cheat Sheet
  • Linux ip Command Networking Cheat Sheet
  • Vim Cheat Sheet
  • Linux System Administrator Projects
  • 1,500 Coding Project Ideas

Recent Linux Articles

  • Resetting File Permissions And Ownership On RPM-Based Linux Systems
  • Linux Jobs and Processes
  • Linux Certification Paths
  • Managing Linux Users and Groups
  • Linux Disk Management

Topics

Arch Linux careers CentOS cheat sheet Cloud Command Line Debian Desktop Fedora File System FTP Gentoo Installation jobs Linux Linux Mint Mageia MySQL Nginx OpenSuse Programming Python RedHat SCP Server Shell Scripting Slackware SSH text editor Ubuntu Vagrant Video vim VirtualBox Web Hosting Windows
Linux Cheat Sheet Download
Enter your email address below to download this Linux command line cheat sheet in an easy-to-read and ready-to-print format.

© 2019 · Linux Training Academy

  • Privacy Policy
✕
Free Linux Command Line Cheat Sheet ->