Tag: Ubuntu

Installing MySQL on Ubuntu 18.04

Installing MySQL Server on Ubuntu 18.04

In this guide we will install and configure MySQL on Ubuntu Server 18.04 (Bionic Beaver). MySQL is the world’s most popular open source database, enabling the cost-effective delivery of reliable, high-performance and scalable Web-based database applications.

Video Tutorial

Prerequisites You should use a non-root user account as explained in the Ubuntu 18.04 Initial Server Setup. 1. Install MySQL Let’s begin by updating the package lists and installing MySQL on Ubuntu 18.04. Below we have two commands separated by &&. The first command will update the package lists to ensure you get the latest version and…

Continue reading Installing MySQL Server on Ubuntu 18.04

Ubuntu 18.04 Initial Server Setup

Ubuntu 18.04 Initial Server Setup

Ubuntu Server 18.04 LTS (Bionic Beaver) is finally here and is being rolled out across all Cloud Hosting/VPS providers such as DigitalOcean and AWS. In this guide we will configure your new Ubuntu 18.04 server and implement some best practices. This guide is aimed for both beginners and advanced users.

Prerequisites If you are accessing Ubuntu Server 18.04 remotely and don’t know how to access terminal via SSH, please see one of the following guides: How to Log into Linux from Windows using PuTTY How to Log into Linux from Mac How to Log into Linux from DigitalOcean control panel 1. Create User with Superuser Privileges If…

Continue reading Ubuntu 18.04 Initial Server Setup

Installing Apache on Ubuntu 18.04 Server with Virtual Hosts

Installing Apache on Ubuntu 18.04 with Multiple Domains

Apache is the most widely-used web server in the world with approximately 45 percent of active sites running on it.  In this guide we will install and configure the Apache2 HTTP web server on Ubuntu 18.04 Server (Bionic Beaver). You can use this guide for a single domain website or multiple domains using Virtual Hosts.

Prerequisites You should use a non-root user account with sudo privileges. Please see the Initial server setup for Ubuntu 18.04 guide for more details. 1. Install Apache Let’s begin by installing Apache from the Ubuntu repository. Press y and ENTER if prompted to install. sudo apt install apache2 Installation may take a few minutes. Once installed, continue to Step…

Continue reading Installing Apache on Ubuntu 18.04 with Multiple Domains

Installing PHP for Apache on Ubuntu 18.04 Server

Installing PHP for Apache on Ubuntu 18.04 Server

In this guide we will install PHP 7 and configure it to work with the Apache web server on Ubuntu Server 18.04 (Bionic Beaver). The PHP Hypertext Preprocessor (PHP) is a programming language that allows web developers to create dynamic and interactive Web pages. As of 2018, PHP was used as the server-side programming language on 85% of 10 million most popular websites!

Video Tutorial

Prerequisites You should use a non-root user account as explained in the Ubuntu 18.04 Initial Server Setup. You should also have Apache already installed and be able to access a test web page in your browser as explained in our guide Installing Apache on Ubuntu 18.04 Server with Virtual Hosts. 1. Install PHP Let’s begin by…

Continue reading Installing PHP for Apache on Ubuntu 18.04 Server

Connect to Linux from Mac using Terminal

In this guide we will connect to a remote Linux box over SSH. You don’t need any third party applications in order to connect to remote Linux servers over SSH. Go to Applications > Utilities, and open Terminal. Once in terminal, run SSH. Replace root and your_ip with your own. ssh root@your_ip If you receive…

Continue reading Connect to Linux from Mac using Terminal

Linux Permissions Table and Guide

Common File Permissions Setting Numerical Meaning -rw——- (600) Only the owner has read and write permissions. -rw-r–r– (644) Only the owner has read and write permissions; the group and others have read only. -rwx—— (700) Only the owner has read, write, and execute permissions. -rwxr-xr-x (755) The owner has read, write, and execute permissions; the…

Continue reading Linux Permissions Table and Guide

How to Configure Let’s Encrypt SSL on Nginx (Ubuntu 16.04 / 17.10)

In this guide we will configure Let’s Encrypt SSL on Nginx (Ubuntu 16.04 / 17.10). Prerequisites You should already have your domain(s) configured and working on Nginx and accessible in the browser. If you haven’t configured Nginx yet, please see Guide: Installing Nginx on Ubuntu 16.04 / 17.10 If you are using CloudFlare, it is…

Continue reading How to Configure Let’s Encrypt SSL on Nginx (Ubuntu 16.04 / 17.10)

Guide: Installing PHP for Apache (Ubuntu 16.04 / 17.10)

In this guide we will install and configure PHP for Apache on  Ubuntu 16.04 / 17.10. 1. Install PHP Let’s begin by updating the package lists. sudo apt-get update Now install PHP and associated packages. sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql 2. Configure Apache We will need to alter the dir.conf file to tell Apache…

Continue reading Guide: Installing PHP for Apache (Ubuntu 16.04 / 17.10)

Linux: Can’t log in but password correct!

I was having an issue logging into shell with one of my users. Checking the tail of the auth log: sudo tail /var/log/auth.log -n 200 We have an error: sshd[9961]: User myusername not allowed because shell /sbin/nologin does not exist sshd[9961]: input_userauth_request: invalid user myusername [preauth] It seems shell access was disabled for this user…

Continue reading Linux: Can’t log in but password correct!