Ubuntu 20.04

Tutorials, projects and questions about Ubuntu 20.04, Focal Fossa, a long-term support release made available April 23, 2020. Ubuntu 20.04 will be supported by Canonical until April of 2025.

featured tutorialHow To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 20.04
A “LAMP” stack is a group of open-source software that is typically installed together to enable a server to host dyn...

Erika Heidi • Published on April 23, 2020 · Updated on July 28, 2021

featured tutorialInitial Server Setup with Ubuntu 20.04
When you first create a new Ubuntu 20.04 server, you should perform some important configuration steps as part of the...

Brian Boucheron • Published on April 23, 2020 · Updated on August 9, 2021

Subscribe to Ubuntu 20.04
Get notified when new articles on Ubuntu 20.04 are published.
  • 20 Results
    All time
    • Tutorial

      How To Disable Root Login on Ubuntu 20.04

      All Linux-based machines come with a default root user that has all privileges on the machine. Good security practices recommend that you disable the root login over SSH to prevent unauthorized access to your Linux-ba...
      2 days agoBy Raghav AggarwalSecurityUbuntu 20.04
    • Question

      mysql is using 100% cpu and causing establishing database error

      my droplet: 4 GB Memory / 80 GB Disk / BLR1 - Ubuntu/ wordpress/ woo commerceI’m getting database error every 2 hour, sometime i can resolve it by restarting the droplet, and sometime i need to restore a backupfunny t...
      Accepted Answer: Hi there, I would suggest a few things: Try following the steps from this tutorial here on how to tweak your MySQL server for better performance: https://www.digitalocean.com/community/questions/how-to-tweak-mysql-mar...
      1 answer4 days agoBy BIOFOOT MEADICALDatabasesMySQLUbuntu 20.04
    • Question


      How to set mosquitto-go-auth plugin for Mosquitto MQTT broker for JWT verification?
      No answers yet5 days agoBy BubblyAzureKelpMiscellaneousUbuntu 20.04
    • Question

      Droplet is stuck at executing a Power On

      My droplet is stuck at executing a power on for a longtime. Is there any way can solve this problem?
      1 answer9 days agoBy Yingying WangLoggingUbuntu 20.04
    • Question

      Suggested Directory and File Permissions

      I have Ubuntu 20.04 server with Django applications, Nginx and Gunicorn. I was wondering what is the best and most secure practice for directory permissions for my website and apps? I have researched and read 755 for ...
      Accepted Answer: Hi @mpasquali , Usually, yes folders generally do tend to have 755 and files 644 permissions. Those are the default standards. Having said that some files and folders have different perms, it really does depend on the...
      1 answer14 days agoBy mpasqualiDjangoNginxUbuntu 20.04
    • Question

      Completley reset mysql installation including files that come with the OS

      I am in Ubuntu 20.04. I followed the MySQL installation tutorial and I got an error after running sudo mysql_secure_installation so I decided to uninstall and reinstall. I tried the entire process again and I started ...
      1 answer14 days agoBy leoddcMySQLUbuntu 20.04
    • Question

      Ubuntu 20.04 Set Up Alert Email for SSH Access

      I was wondering whether any answers in the following link would be most beneficial for setting up alerts to email me when a user logs in via SSH to my Ubuntu 20.04 server. https://askubuntu.com/questions/179889/how-do...
      Accepted Answer: Hi there, One of the most straightforward ways would be to put the following in /etc/profile: if [ -n "$SSH_CLIENT" ]; then TEXT="$(date): ssh login to ${USER}@$(hostname -f)" TEXT="$TEXT from $(echo $SSH_CLIENT|awk '...
      1 answer16 days agoBy mpasqualiSecurityUbuntu 20.04
    • Tutorial

      How To Use Winston to Log Node.js Applications on Ubuntu 20.04

      Winston is a versatile logging library and a popular logging solution available for Node.js applications. Winston’s features include support for multiple storage options, log levels, log queries, and a built-in profil...
      16 days agoBy Steve Milburn, Mateusz PapiernikApplicationsLoggingNode.jsUbuntu 20.04
    • Tutorial

      How To Set Up an Endlessh Tarpit on Ubuntu 22.04

      When looking at authentication logs, you might see several failed login attempts from various IP addresses that often .come from a node on a botnet. While you may not be able to stop these attacks, you can slow them d...
      16 days agoBy Reuben TierFirewallUbuntu 20.04Security
    • Question

      How to Disable CORS for NodeJS Nginx Ubuntu 20.04 Server

      Hello I am using Nginx with NodeJS on Ubuntu 20.04 to set up a reverse proxy server to host a NodeJS Typescript API using PM2. I have enabled CORS in the Nginx default file as well as in the TS file headers. However w...
      No answers yet17 days agoBy 7ed2db6c4677-4476-b5ab-72f3f2AngularNginxNode.jsUbuntu 20.04
    • Question

      How to resolve [proxy_fcgi:error] (104)Connection reset by peer: [client IP:38260] AH01075: Error dispatching request to

      We are using PHP-Laravel with LAMP stack environment on ubuntu 20.04 and using mobile app for uploading images and videos as functionality of the web app. Normally web portal works fine but in case when we start uploa...
      No answers yet18 days agoBy SysQuo InnovationApacheLaravelPHPUbuntu 20.04
    • Question

      How to configure Apache server running on Ubuntu 20.04 to Serve Two Different Projects on Different Port?

      I am building a web application with React as frontend and Laravel as backend. Both Laravel and React are built on separate project and I want both of these projects to deploy on the same server instance. So for that,...
      2 answers18 days agoBy DriftingLapisDolphinApacheUbuntu 20.04
    • Tutorial

      How To Set Up MinIO Object Storage Server in Standalone Mode on Ubuntu 20.04

      MinIO is an open-source object storage server compatible with the Amazon S3 cloud storage service. The service stores unstructured data such as photos, videos, log files, backups, and container/VM images and can provi...
      21 days agoBy finidObject StorageUbuntu 20.04
    • Question

      I went through the steps and cannot log into my site

      I went through the steps and cannot log into my site
      3 answers21 days agoBy simongranvilleUbuntu 20.04
    • Question

      Deleting user on digitalocean droplet

      Hello guys,please how to I fix this issue: user username is currently used by process 1068. Am trying to delete a user but am getting this error message: user olamide is currently used by process 1068
      1 answer27 days agoBy SleepingCyanCoralNginxUbuntu 20.04
    • Question

      Issues with public SSH key authentication on droplet

      Hello, I recently regenerated my public/private keys for SSH access to all of my droplets. I successfully updated the public key on all accounts except for one. I used the cat ~/.ssh/id_rsa.pub command to display the ...
      2 answers27 days agoBy Michael HermaryDigitalOcean DropletsLinux CommandsUbuntu 20.04
    • Question

      Gunicorn for django not working. Active: failed (Result: resources)

      When I run // sudo systemctl status gunicorn.socket //it says Active: active (listening)But when I run// sudo systemctl status gunicorn // it says Active: failed (Result: resources) Below is my gunicorn.service file, ...
      No answers yet29 days agoBy jonathan leeDjangoUbuntu 20.04
    • Tutorial

      How To Install Linux, OpenLiteSpeed, MariaDB, PHP (LOMP stack) on Ubuntu 20.04

      Set up a LOMP server running on Ubuntu 20.04 with PHP 8.1, MariaDB 10.7, and OpenLiteSpeed 1.7. The LiteSpeed PHP interpreter functions very quickly to serve dynamic PHP pages.
      29 days agoBy Apoorv PalMariaDBPHPUbuntu 20.04
    • Tutorial

      How To Set Up a Remote Database to Optimize Site Performance with MySQL on Ubuntu 20.04

      This guide will walk you through the process of configuring a remote MySQL database server that your website or application can connect to. It uses WordPress as a working example of something that can connect to the M...
      1 month agoBy Mark Drake, Brian Boucheron, Kong YangDatabasesMySQLUbuntuUbuntu 20.04WordPress
    • Question

      DNS server from Digital Ocean not always reachable resulting in getaddrinfo failed: Temporary failure in name resolution

      I have a standard droplet (Ubuntu 20.04) and a managed MySQL 8 database. Both are in the same VPC. On the droplet an application is connecting to the database via the hostname suitable to be used within the VPC:privat...
      No answers yet2 months agoBy Chris SeegersDigitalOcean Managed MySQL DatabaseDNSUbuntu 20.04