How to Setup a Highly Available LAMP Stack in Less than One Hour Even If You've Never Done It before, Don't Know Where to Start, or Don't Want to Spend Weeks Researching How to Do It.
This step-by-step guide teaches you everything you need to know in order to eliminate single points of failure for your Linux, Apache, MySQL, and PHP based web applications.
Do you wish you could ensure your web site was up all the time and finally enjoy a peaceful night's sleep?
Do you want to be able to scale without downtime and handle unexpected surges of traffic?
Do you want a solution that just works without spending weeks testing various combinations of technologies and software?
Do you want someone to lay it all out for you and walk you through an entire deployment?
View the full blog post at:
http://www.linuxtrainingacademy.com/mysql-master-slave-replication-ubuntu-linux/
...
https://www.youtube.com/watch?v=JXDuVypcHNA
Read the full blog post here:
https://www.linuxtrainingacademy.com/man
Do you want to know where to find the answer to just about any Linux question you may ever have? Well…
All the answers are in the built-in man pages on a Linux system!
That’s probably not what you wanted to hear. ?
When you’re trying to figure something out or have a Linux question it can be annoying to get a reply like this:
“Just read the man page!”
It’s actually good advice, but it has one fatal flaw: It assumes you know how to read a man page. Scratch that. It assumes you know how to understand and use what you read in a man page.
When you first start looking at man pages they might appear to contain a bunch of random punctuation. You might wonder…
* Why are some things enclosed in brackets and others aren’t?
* Why are there three little periods after some things?
* Why do some options have one dash and others have two?
To get the answers to all those questions and more, watch this video. It will have you reading man pages like an old pro. You’ll finally understand all those man page hieroglyphics and you’ll never feel lost again. ?
You’ll learn…
* How to search through man pages to find the help (or command) you’re looking for.
* How to decipher all the man page conventions such as underlined words, options enclosed in brackets, and more.
* What to do when man doesn’t work. (IE, the “other” man command.)
* How to mix and match multiple options (and option types) to make the command do exactly what you want.
* And more…
If you’ve ever seen anything in a man page that you didn’t understand, this will definitely help you out.
Download your free Linux man page cheat sheet here:
https://www.linuxtrainingacademy.com/man
...
https://www.youtube.com/watch?v=RzAkjX_9B7E
Read the full blog post and grab your cheat sheet here:
https://www.linuxtrainingacademy.com/linux-jobs-processes/
For the complete Linux Administration Boot Camp Course visit:
https://courses.linuxtrainingacademy.com/course/linux-admin-bootcamp/
...
https://www.youtube.com/watch?v=_B0mQakfqeI
Step-by-Step instructions available at:
https://www.linuxtrainingacademy.com/install-ssl-certificate-centos-rhel-apache
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 certificat
...
https://www.youtube.com/watch?v=eHVc08HVTwI
http://www.linuxtrainingacademy.com/
See the related blog post:
http://www.linuxtrainingacademy.com/repeating-the-last-command-as-root/
If you ever forget to run a command with root privileges, you can simply repeat it by using sudo !! or su -c "!!".
$ adduser sam
-bash: /usr/sbin/adduser: Permission denied
$ sudo !!
sudo adduser sam
$ id sam
uid=1007(sam) gid=1007(sam) groups=1007(sam)
$ usedel -r sam
-bash: /usr/sbin/userdel: Permission denied
$ sudo !!
sudo userdel -r sam
$ id sam
id: sam: No such user
$ useradd jim
-bash: /usr/sbin/useradd: Permission denied
$ su -c "!!"
su -c "useradd jim"
Password:
$ id jim
uid=1007(jim) gid=1007(jim) groups=1007(jim)
This exclamation mark syntax is called an event designator. An event designator references a command in your shell history. Bang-Bang (!!) repeats the most recent command, but one of my favorite uses of the event designator is to run the most recent command that starts with a given string. Here's an example.
Exclamation Mark
$ whoami
jason
$ uptime
12:33:15 up 35 min, 1 user, load average: 0.00, 0.00, 0.00
$ df -hT /boot
Filesystem Type Size Used Avail Use% Mounted on
/dev/vda1 ext4 485M 55M 406M 12% /boot
$ !u
uptime
12:33:29 up 35 min, 1 user, load average: 0.00, 0.00, 0.00
$ sudo !w
sudo whoami
root
To learn more tips and tricks like this, check out my book Linux for Beginners or the video course by the same name.
https://www.youtube.com/watch?v=qCg1MLrAMJ0
...
https://www.youtube.com/watch?v=qCg1MLrAMJ0
From:
http://www.linuxtrainingacademy.com/
To reuse the arguments from the previous command line on the current command line, use "!*". The arguments are considered anything on the command line except for the first item. Since the first item is almost always a command, then everything following is an argument.
Using this shortcut can be helpful in a couple of different situations. First, it's great when you are working on a list or series of items such as files or directories. It also proves to be useful when you accidentally mistype a command. Instead of typing the entire command line over again, simply correct your typing mistake and follow it with "!*".
The following is an example of working with a series of items.
$ ls file1 file2 file3
file1 file2 file3
$ vi !*
$ mv !* /tmp/
Yet another example dealing with a list of items. In this case, directories.
$ mkdir one two three
$ chmod 700 !*
$ ls -l
drwx------ 2 jason users 4096 Jul 5 18:44 one
drwx------ 2 jason users 4096 Jul 5 18:44 three
drwx------ 2 jason users 4096 Jul 5 18:44 two
Here are examples of correcting command typos.
$ grpe -i error /var/log/syslog
grpe: command not found
$ grep !*
Jul 5 23:47:25 linuxsvr dbus[786]: [system] Error activating service 'org.freedesktop.Accounts'
$ sud apt-get install docker.io
sud: command not found
$ sudo !*
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
aufs-tools
Suggested packages:
btrfs-tools lxc rinse
The following NEW packages will be installed:
aufs-tools docker.io
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 3,818 kB of archives.
After this operation, 22.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Fetched 3,818 kB in 37s (103 kB/s)
Selecting previously unselected package aufs-tools.
(Reading database ... 241571 files and directories currently installed.)
Preparing to unpack .../aufs-tools_1%3a3.2+20130722-1.1_amd64.deb ...
Unpacking aufs-tools (1:3.2+20130722-1.1) ...
Selecting previously unselected package docker.io.
Preparing to unpack .../docker.io_0.9.1~dfsg1-2_amd64.deb ...
Unpacking docker.io (0.9.1~dfsg1-2) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up aufs-tools (1:3.2+20130722-1.1) ...
Setting up docker.io (0.9.1~dfsg1-2) ...
Adding group `docker' (GID 132) ...
Done.
docker.io start/running, process 4110
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Processing triggers for ureadahead (0.100.0-16) ...
$
http://www.linuxtrainingacademy.com/reuse-arguments-command-line/
...
https://www.youtube.com/watch?v=WIUI8onLy9g
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.
http://www.linuxtrainingacademy.com/
...
https://www.youtube.com/watch?v=EmhsaJ0oWkM