Tag: Ubuntu

Installing PHP for Nginx on Ubuntu 18.04

Installing PHP for Nginx on Ubuntu 18.04

In this guide we will install and configure PHP to work with Nginx on Ubuntu 18.04 LTS (Bionic Beaver). Unlike Apache, Nginx does not contain native PHP processing. For that we have to install PHP-FPM (FastCGI Process Manager). FPM is an alternative PHP FastCGI implementation with some additional features useful for heavy-loaded sites.

1. Install PHP-FPM Let’s begin by updating the package lists and installing PHP-FPM 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 dependencies for PHP-FPM. The second command will then download and install PHP-FPM. Press y and ENTER when asked to…

Continue reading Installing PHP for Nginx on Ubuntu 18.04

Installing Apache, MySQL, PHP (LAMP) stack on Ubuntu 18.04

Installing Apache, MySQL, PHP (LAMP) Stack on Ubuntu 18.04

Ubuntu Server 18.04 LTS (Bionic Beaver) is finally here and is being rolled out across VPS hosts such as DigitalOcean and AWS. In this guide we will install a LAMP Stack (Apache, MySQL, PHP) and configure a web server.

Video Tutorial

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 updating the package lists and installing Apache on Ubuntu 18.04. Below we have two commands separated by &&. The first command will update the package lists to ensure you get…

Continue reading Installing Apache, MySQL, PHP (LAMP) Stack on Ubuntu 18.04

Installing Nginx with Multiple Domains on Ubuntu 18.04 Bionic Beaver

Installing Nginx on Ubuntu 18.04 with Multiple Domains

In this guide we will install and configure Nginx on Ubuntu 18.04 LTS (Bionic Beaver). We will also configure some server blocks so we can host multiple domains. Nginx is a free, open-source, high-performance HTTP server. It’s known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.

1. Install Nginx Let’s begin by updating the package lists and installing Nginx 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 dependencies for Nginx. The second command will then download and install Nginx. sudo apt update…

Continue reading Installing Nginx on Ubuntu 18.04 with Multiple Domains

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 / 18.10 Initial Server Setup

In this guide we will configure your new Ubuntu 18.04 / 18.10 server and implement some best practices.

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 / 18.10 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 [email protected]_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 Cloudflare Users: Note that you don’t need Let’s Encrypt and can instead use Cloudflare’s own shared Universal SSL certificate and an Origin CA. If you…

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