Create and configure your own virtual private server (VPS) from scratch and step-by-step.
During this course, learn to create from scratch your own VPS server, configure it properly, with security measures best suited and most appropriate mechanisms of operation.
Deploy your services and sites on a fast server like Nginx, with PHP or whatever you require, just perform and learn all that you can do with a VPS.
Displays all your projects with your own domain, with endless possibilities, because it is your VPS and your rules. Keep your own space in the cloud for all your work, projects and ideas; all in the same VPS.
Create your own VPS with DigitalOcean, installs and deploys a complete system with Linux / Ubuntu, PHP Nginx and MySQL besides obtaining TLS certificates completely free and automated through Letsencrypt.
With your VPS, you can install al what you need and you require, just learn how to do that and deploy all the projects that you want.
Why choose this course?
After completing this course, you will be able to deploy your own VPS server very quickly and easily, using very powerful tools, innovative and safe (Nginx, letsencrypt, PHP, MySQL, etc). You will have your personal and professional projects online without additional costs, because no matter how many domains, subdomains, or projects put on your VPS, the cost will remain the same because you can do all that you need in a single VPS.
Upon completion of all classes, have all your projects under a VPS server, completely safe with HTTPS / TLS connections, completely free through Letsencrypt.
Do you want more details? Here is everything that you can get from this course:
It does not end here! You are going to have lifetime access to all the current and new classes that are going to be added to the course, keep updated your VPS with the latest packages, versions, and systems.
Finally, but not less important, you can contact me at any moment; I will always be pleased to help with any problem or project.
Do not wait to be an expert and keep your own services and projects in the cloud with a VPS.
Join to the course now and see you in class!
Get a brief idea about all those thing that you are going to learn during the course and the final results of every class during the course.
During the course we are going to use DigitalOcean. Although it is not mandatory and required for the course (you can use other service)
Lets talk a little about nginx. I just have to say that (again) you are completely free to choose the server that you prefer (apache, nginx or other) depending of your requiriments. Basically during this course, we are going to use Nginx, because is much more effective managing the requests (multiple requests).
Nginx create a new thread for every user/client request, while apache works in a less effective way on this aspect.
Letsencrypt is a service which allow you to create your own certificates completely free and in fact install it into the server automatically.
Letsencrypt is an open source project, so you can found very nice projects working around this adding or improving some features.
Lets check if the concepts were clear
During this class youa are going to create the VPS (maybe your first VPS) for your projects and for the course using DigitalOcean.
You are going to be allowed to create a VPS with a LEMP stack, pre-installed. It means that you can obtain a VPS with those tools installes, automatically:
Windows is a little more "difficult" to stablish a connection to your VPS, because you need an external tool (we are going to use Putty). During this class you are going to learn how to donwload and use Putty to stablish a connection with your VPS.
Through the SSH command that is natively supported on OSX and Linux, you can easily stablish a connection with your VPS from your OSX or Linux system.
Learn how the command SSH works and how to use it very very easy.
You can obtain your own domain in the service that you prefeer, the most important thing is that you need to configure your domain to redirect the requests to the namervers of your VPS provider.
In this case we are going to recirect the requests to supersecuredomain to the nameservers of digitalocean.
It is necessary to add th domain that we created to the DigitalOcean configuration. In this way, DigitalOcean is going to recirect all the requests to our domain to the VPS.
Additionally, we can create and configure all the subdomains that we prefeer very easy.
Lets check if the concepts were clear
There exists tons of different commands and of course you could require specific information about one new (or inclusive one that you already know).
Ubuntu, has a very helpful command that provide you information about another commands. This command is called "man". Lets to learn about it.
During this class you are going to learn about the cd (change directory) command. How to use it and some specific "tricks" for this command.
During this class you are going to learn about the command "ls".
This command is useful to show the contents of the current location or a specified location.
During this class you are going to learn how to create, delete, move and copy files. All those tasks require of specific commands, so lets to learn everyone.
During this class you are going to learn how to create, delete, move and copy folders. All those tasks require of specific commands, but in fact are almost the same for manage files (except to create), so lets to learn everyone.
During this class you are going to learn how to manage packages (install, remove, update) to install all what you need and additionally to keep your system up to date.
Generally after some specific updates, is very common that the system require to be restarted, in fact the systm will show us the message "System Restart Required" whe it is needed (of course). Lets to see how to do it and, some specific considerations during this process.
In some specific cases some packages can't be upgraded automatically by the system because require som "additional" steps or just are risky and, should be upgrded by the user (preferibly).
DUring this class you are going to learn how to upgrade the retained process and how to upgrade the grub if it is required.
In some specific situations it is required to stop, start, restart or just reload a specific service. Using the command "service" allow you to easily manage a specific service by name.
Lets check if the concepts were clear
If your VPS provider does not allow you to automatically install the LEMP stack (Linux, Nginx, MySQL and PHP), just follow this simple steps to get it working on your VPS.
Git is a very useful package wich allow you to perfomr a version controlling for your projects or synchronize it with a remote repository on Github, Butbucket or similar services.
Lets to see during this class, how to easily install this package.
In order to use some important tools in our VPS, it is required to install some additional modules for PHP (not included by default).
Lets to install php5-cli (it is like a PHP intepreter) and enable the mcrypt module.
Composer is a very cool tool, to easily manage and install dependencies for PHP projects. Composer can not be installed using apt-get, so we are going to use an alternative way to do it and install it globally.
The main idea of this section is mainly to install some required components, but additionally is to practice how to install (in different ways) a required package.
After this you possibly are capable to install the package that you require successfully. Of course of you want some help for a specific package, just let me know that.
The SSH keys are very useful to validate connections between two parts. During this class you are going to learn, how to create SSH keys (public and private) to be used to stablish secure and valid connections.
During a previous class we created an SSH keys. Learn how to configure and use those keys to stablish connections between the VPS and third-party services (github as example).
During this class you are going to learn how to create and remove user accounts. You are going to create your personal user account to avoit use the root user.
It is very common that a specific user (may be many of them) require to perform some "advanced" tasks and, those tasks require advanced permissions. To solve this yo do not require to use the root user always, you can provide sudo permissions to a specific user and grant advanced capabilities.
There exists different ways to assign permissions to folders and files, but generally for web platforms it is a good practice to assign the permissions only for the server user.
During this class you are going to see how to assign permissions to a folder in the right way.
UFW (Uncomplicated FireWall) is a very useful firewall that comes installed by default with Ubuntu, but is disabled.
UFW is a very simple way to manage IPTables and control the inbound and outbound traffic.
During this class you are going to learn, how to configure and enable UFW in your system in order to disable all the inbound connections, excepting the web services connections (HTTP, HTTPS, SSH, etc), and enable the outbound connections.
After install the MySQL server, it is always a good recommendation (it is basically required), execute the secure_installation, in order to remove some insecure configurations and user accounts from the default installation of MySQL.
It is, in fact, very simple to perform and can save you.
During this class, you are going to see, how to easily remove the "dailymessage" and in the way practice and perform a system update.
For the new DigitalOcean droplets, is included a "daily message" to remember to you, to execute the secure installation of MySQL (like in the previous class) and spcifying the password for the root user of the MySQL server.
We already perform all those suggested steps, so we can remove the message.
During the class you are going to see a little overview for Nginx, the structure the location and the main files for the configuration.
During this class you are going to see where are located the files to configure different sites inside the single VPS, how to create different domains and or subdomains and configure every one independently with different root, names and folders.
During this class you are going to finish the creation and configuration process for the subdomains of your VPS.
During this class, you are goingo to see, how much easy is to configure the Gzip module on the Nginx server.
The Gzip module can be easily enabled and configured (in fact it is already enabled). This module is very useful to compress the responses from the Nginz server, and reduce the bandwidth usage. It is specially useful when the server must return responses with big cuantity of data.
It is a very good idea to stablish the expiration headers, for the static content. In this way, the browser and some clients, are not going to request for every one of those every time. After the firs time those files are going to be stored in the client side to the date of expiration.
During this class you are going to see, how to solve a little problem with the default configuration of Nginx.
By default Nginx include the server version and the operating system in all the responses, with a header called server. The purpouse of this class is disable this behaviour to avoid this.
Similarly, as Nginx. When we execute PHP code, the PHP service, automatically include, a header in every response, specifying the PHP version and the opearting system version as well.
During this class you are going to see the right way to disallow this for a nginx server.
The Cross Site Scripting (XSS) attacks, are basically a way as a possible attacker can use a real/valid user information to perform operations in our services, without permission.
During this class you are going to see, how to prevent this kind of attacks with a simple configuration of the nginx server.
In the current days, the DoS and specially the DDoS atacks, can't be prevented and solved. We can only mitigate the effects of those attacks with a good configuration and in specific cases (big projects) a good infrastructure.
Lets to learn how to configure your Nginx server to mitigate a possible DoS and DDoS attack.
Lets check if the concepts were clear
You already have installed git and, it means that you are able to easily obtain the code for a repository from Github, Bitbucket or similar.
During this class you are going to obtain the structure of a Laravel project, stored in a public Github repository using Git.
You already have access to composer in your VPS. Lets to use this incredible tool, to autimatically obtain all the dependencies of the Laravel project in order to use it.
This is like install the project into your VPS.
Lets to use the MySQL server to easily create a database for our project and on the way configure the environment and specify the user and password to stablish the database connection.
A very cool thing to perform, is to automatically create the database structure just runing single commands.
During this class you are going to see how to easily create the database structure using the migrations of the project.
Laravel as many other web frameworks and CMS, require permissions to write over some specific locations.
In the case of Laravel, it requires to write over the bootstrap/cache and storage/ folders.
During this class we are going to provide permissions over those folders to the www-data user, using the chown command.
It is time to test how it working the project on the VPS and fix some details at the end (a folder permissions).
Lets to play a little with this and see how much easy is to deploy advanced projects in your VPS.
Lets to use Letsencrypt directly from a Github repository (a third party), and obtain a much more light and easy to use client.
During this class you are going to see how much easy is to obtain a security certificate with letsencrypt and completely free for every one of your domains and sub-domains.
The final step, is to configure every domain and sub-domain, in order to stablish an HTTPS connection with every one using the security certificates.
Currently our services are vulnerable to a specific attack, which can downgrade the encryption level of a connection, allowing to intercept the connection with our sites.
During this class your are going to see how we are currently vulnerable to this and how to solve that very easy, based in the code of the previous class, implementing the dhparam configuration.
Using Fail2Ban, you can block specific IP addresses when they try to get access to your VPS more than a specified number of times in a specific period of time.
In this way, you can avoid that someone obtains your passwords trying every possible combination (brute force attack).
I enjoy transmitting knowledge and skills to the people through classes and contents. Then, see how they build their projects and tools using the concepts learned.
Continually work on improving my speech, looking for the best way to reach out the students with the central concepts and skills, I love easy but effective ways to transmit every single idea.
I appreciate every minute deloping, especially when I can use my skills to implement projects that can help other developers to learn or to make their job and lives easier.
I am constantly looking to work in new projects to leverage my skills and improving the lives of people with more facilities to share the experiences and findings with my students then.
I am excited to contribute to a better world teaching people new skills and, in the way, learn through the experiences and issues of them to improve our skills together.