Category: Uncategorized

Disable Sudo Password Prompt or Extend Timeout in Linux

Every time you issue a sudo command, Linux asks for your user password after a certain inactivity timeout, usually 5 minutes. This is the recommended behaviour to prevent unauthorised commands being run by someone or a malicious script in your absence. However, this requirement can be disabled per session or permanently, or you can extend the inactivity timeout.

Disable Per Session This command below will prompt you for your sudo password once and never again until you log out and in again. sudo -i Extend Inactivity Timeout The default inactivity timeout is usually 5 minutes before Linux will prompt for your sudo password again. You can extend this timeout by editing the sudoers file.…

Continue reading Disable Sudo Password Prompt or Extend Timeout in Linux

site.webmanifest 401 404 not found error

404/401 Error on site.webmanifest

The web app manifest is a simple JSON file that tells the browser about your web application and how it should behave when ‘installed’ on the user’s mobile device or desktop, such as when the user adds the website to their iPhone or Android home screen.

A typical manifest file includes information about the app name, icons it should use, the start_url it should start at when launched, and more. It is often used by favicon generators for websites. site.webmanifest { “name”: “”, “short_name”: “”, “icons”: [ { “src”: “/android-chrome-192×192.png”, “sizes”: “192×192”, “type”: “image/png” }, { “src”: “/android-chrome-256×256.png”, “sizes”: “256×256”, “type”:…

Continue reading 404/401 Error on site.webmanifest

htop showing swap space on Ubuntu

Creating Swap Space on Ubuntu 18.04

Swap space is highly recommended. If your server ever runs out of physical memory during heavy load, some critical services such as MySQL can crash. It’s important to have some swap space where memory can expand to if really necessary.

Of course, we do not recommend you use swap space as a replacement to physical memory, especially on cloud hosting. If you are continuously eating into swap space, you should upgrade your physical memory. Swap should really only be a fall back in case memory usage peaks abnormally. First check if the system has any…

Continue reading Creating Swap Space on Ubuntu 18.04

Setting up IPv6 on Ubuntu 18.04

How to Configure IPv6 on Ubuntu 18.04

This article particularly relates to setting up IPv6 on an existing DigitalOcean Droplet, however, it should also be useful to anyone wanting to set up IPv6 on Ubuntu 18.04. Unlike earlier versions of Ubuntu, version 18.04 does not use /etc/networking/interfaces to configure IPv6 network settings. Instead, you must use netplan .

If you are creating a new Droplet, you do not have to do any manual configuration. Instead, just check the IPv6 box when you are creating a new Droplet. If you are trying to enable IPv6 on an existing DigitalOcean Droplet, you should now shutdown the Droplet and create an image/backup. WARNING: It’s very important…

Continue reading How to Configure IPv6 on Ubuntu 18.04

Configuring SFTP for the document root

How to configure SFTP for a web server document root

SFTP is the favourite these days because of its robust security model and easier setup than traditional FTP and FTPS. In this guide we will configure SFTP to allow users to upload to the web server document root.

Introduction In this guide we will assume these two scenarios: The SFTP user should only have access to the web document root. The SFTP user should not be able to log in to terminal over SSH. If you only intend on accessing the document root using one SFTP user, continue to Step 1 below. If you…

Continue reading How to configure SFTP for a web server document root

Manually upgrade phpMyAdmin

How to Manually Upgrade phpMyAdmin

Since the release of Ubuntu 18.04 and some other Linux distros, many people have been having compatibility issues with PHP 7.2 and phpMyAdmin 4.6. In this article we will manually download and install the latest version of phpMyAdmin to resolve these issues.

It’s possible that when you installed phpMyAdmin, your repository was still serving phpMyAdmin v4.6.6 and not the latest version (v4.8.4 as of writing), which is causing compatibility issues with PHP 7.2. Firstly, visit the phpMyAdmin download page and look for the latest version. As of writing, the latest is phpMyAdmin 4.8.4, which we will install in this guide. 1.…

Continue reading How to Manually Upgrade phpMyAdmin

Installing Craft 3 CMS on Linux

Installing Craft 3 CMS on Linux using Composer

Craft is a CMS that was developed by ExpressionEngine add-on developers Pixel & Tonic. In this article we will download and install Craft 3 on Linux using Composer.

Prerequisites You should have your LAMP or LEMP stack up and running and a MySQL or Postgres database created for Craft. 1. Install Composer If you already have Composer installed, skip to Step 2, Firstly, let’s update the package database. sudo apt update Next, install the required packages sudo apt install curl php-cli php-mbstring git…

Continue reading Installing Craft 3 CMS on Linux using Composer

How to Configure Let’s Encrypt SSL for Nginx on Ubuntu 18.04

Configuring Let’s Encrypt SSL Cert for Nginx on Ubuntu 18.04

Let’s Encrypt is a certificate authority that provides free SSL certificates that are just as secure as current paid certificates. In this guide we will configure an SSL certificate for Nginx on Ubuntu 18.04.

Prerequisites You should be using a non-root user with sudo privileges as explained in Ubuntu 18.04 Initial Server Setup. You should also have Nginx already installed and serving web pages before continuing with this guide. Please see Installing Nginx on Ubuntu 18.04. 1. Install Let’s Encrypt client (Certbot) Add certbot to the repository. This is the Let’s Encrypt client. sudo add-apt-repository ppa:certbot/certbot…

Continue reading Configuring Let’s Encrypt SSL Cert for Nginx on Ubuntu 18.04

Let’s Encrypt Error: “Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA.”

Renewing an existing certificate Performing the following challenges: Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. Attempting to renew cert (example.com) from /etc/letsencrypt/renewal/example.com.conf produced an unexpected error: Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA..…

Continue reading Let’s Encrypt Error: “Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA.”

Configuring Let’s Encrypt SSL Cert on Apache and Ubuntu 18.04

Configuring Let’s Encrypt SSL Cert for Apache on Ubuntu 18.04

Let’s Encrypt is a certificate authority that provides free SSL certificates that are just as secure as current paid certificates. In this guide we will configure an SSL certificate for Apache on Ubuntu 18.04.

Prerequisites You should be using a non-root user with sudo privileges as explained in Ubuntu 18.04 Initial Server Setup. You should also have Apache already installed and serving web pages before continuing with this guide. Please see Installing Apache on Ubuntu 18.04. 1. Install Let’s Encrypt client (Certbot) Add certbot to the repository. This is the Let’s Encrypt…

Continue reading Configuring Let’s Encrypt SSL Cert for Apache on Ubuntu 18.04