Ubuntu 18.04

Tutorials, projects and questions about Ubuntu 18.04, Bionic Beaver, a long-term support release that was released April 26, 2018 and will be supported by Canonical until April of 2023.

Ubuntu 18.04 subscription active
You will receive email notifications for new publications on Ubuntu 18.04.
1368 Results
  • Question

    connect() failed (111: Connection refused) while connecting to upstream

    Hi all, Followed this (https://lengstorf.com/code/deploy-nodejs-ssl-digitalocean/) tutorial to get Let's Encrypt working on my Nest.js/Node server. Everything works - running sudo nginx -t returns: nginx: the configu...
    Accepted Answer: Hello, You can only have 1 service listening on 1 port. So as you have Nginx listening on port 80 at the moment, you can not have your Node on the same port. Also as you currently have your Nginx set to work as a reve...
    3 By hbendixlewis Nginx API Let's Encrypt DigitalOcean Ubuntu 18.04
  • Question

    How to install cloudflare Origin CA ssl certificate on Ubuntu 18.04

    How to install cloudflare Origin CA ssl certificate on Ubuntu 18.04(apache server)
    Accepted Answer: Hi there @onlineno786, I would suggest following this step here on how to install a certificate on your webserver: https://www.digitalocean.com/community/tutorials/how-to-install-an-ssl-certificate-from-a-commercial-c...
    1 By onlineno786 Apache Ubuntu 18.04 Security
  • Question

    How can I run a rake task in my production environment?

    I have set up a rake task that I want to run once an hour using a cron expression. I got it working on my local dev environment, but I can't get it to work on my production environment hosted here. I have the followin...
    Accepted Answer: HI! Let me see if I can help. The first thing that comes to mind is that you do need to set the environment and use bundle. Be sure you're in the root of your rails app, and that you're using the user your app runs as...
    1 By donkerbc Ruby on Rails PostgreSQL Ruby Ubuntu 18.04
  • Question

    Best way for a new droplet to programmatically learn its IP address

    I am planning to create new droplets dynamically. They will register themselves by writing their IP address in a database. They are all going to be on a private network, so this will be the IP address of eth1 and ...
    Accepted Answer: Hi @RalphEJohnson, I remember needing something like this for a project a while ago, I basically did the following. It gives you the private IP address of the droplet. ip addr show eth1 | grep "inet\b" | awk '{print ...
    1 By RalphEJohnson Networking Ubuntu 18.04
  • Question

    PHPDesigner not working, because of old SSH, is there a hot fix?

    Hello, I use PHPDesigner which I really love and i prefer not using another software for my PHP coding. However PHPdesigner hasn't been updated since 2013 which sucks because it uses some old SSH settings which it see...
    Accepted Answer: Hi there @Geekologist, It looks like someone had the same question on the DigitalOcean community site a while ago, I would recommend checking the answer here: https://www.digitalocean.com/community/questions/server-do...
    1 By Geekologist PHP Ubuntu Ubuntu 18.04
  • Question

    How do I forward client IP instead of proxy IP in Nginx Reverse Proxy?

    Overview I have a setup that looks like this: * Nginx Reverse Proxy with a Floating IP * Reverse Proxy is configured to forward requests from users to a 3rd party SaaS application, BigCommerce which then handles the r...
    Accepted Answer: Hi @cvanorman I think that what you have in place is correct in terms of the 4 headers that you've configured already. What is the output of the Nginx access logs? Are you seeing the correct IP there?
    1 By cvanorman Nginx Ubuntu 18.04 Networking
  • Question

    How to upgrade MySQL server, for the one-click app

    Hello, I'm using the PHPMyAdmin one-click app, but the MySQL server version is way behind and I'm not sure how to upgrade it without breaking anything The current version is: mysql Ver 14.14 Distrib 5.7.30, for Lin...
    Accepted Answer: Hi there @Geekologist, With the PHPmyAdmin 1-Click installation, you get MySQL 5.7 and PHPmyAdmin 4.6.6. I believe that if you upgrade your MySQL installation you would need to upgrade PHPmyAdmin to the latest version...
    1 By Geekologist PHP MySQL One-Click Install Apps Ubuntu Ubuntu 18.04 Databases DigitalOcean
  • Question

    Ansible playbook error: mapping values are not allowed in this context

    I am trying to play with Ansible a little bit and I've created a test playbook but it is failing for some reason and I can't figure out why. I've tested the connectivity between my control node and the worker node but...
    Accepted Answer: Hello, The playbook looks good, there's only a slight indentation error, Yaml is very strict about the indentations and the spacing. You need to make sure that you have two spaces before the - name part of your playb...
    2 By bitmap Ansible Ubuntu 18.04
  • Question

    Disable old TLS versions (1.0/1.1 ) for Apache/Nginx on Ubuntu 18.04 or CentOS 7

    I recently got asked how we can disable old TLS versions on a server. The user was applying for a PCI compliance and wanted to have only TLS 1.2 running on their machine in order to pass the scan of the PCI vendor.
    Accepted Answer: Here is a little step by step guide on how to set this on a CentOS server. <^>Before you start, please keep in mind that you can always run into some issues and it's really important to make a working copy of your con...
    2 By alexdo Ubuntu 18.04 CentOS Apache Nginx
  • Question

    firewall for wireguard vpn server

    So i installed wireguard using this automated installer https://github.com/Nyr/wireguard-install, and now i am trying to make the server more secure by using digitalocean firewall and i do not really know how to confi...
    Accepted Answer: WireGuard uses a different port than SSH, so your firewall is blocking its traffic. You need to allow the UDP port used by your WireGuard server; the default is 51820.
    1 By menghoe Ubuntu 18.04 VPN DigitalOcean Cloud Firewalls Firewall
  • Question

    Ansible problem: Shared connection to server closed

    I have two servers, one is my control node and one is the worker. I've installed Ansible on the control node with the following command: apt update -y && apt install ansible -y And it seems to be working fine. I als...
    Accepted Answer: Hello, I've seen this problem before. I think that by default python 2 is not installed on Ubuntu 18.04 . So a quick fix here is to just add the path to python 3 in your inventory file. It would look something like th...
    1 By bitmap Ansible Development Ubuntu 18.04
  • Question

    How to increase disk storage in same droplet?

    I've increased my disk storage. But my storage shows in a different folder in filesystem. Previously my disk storage was 49 GB. Now increased another 30 GB. Previous 49 GB shows in /dev/vda1 location and new 30GB show...
    Accepted Answer: Hi there @amanullah, It looks like you have added block storage rather than increasing the disk space of your Droplet. You could do a couple of things in this case: You could either move some of your files from the /d...
    1 By amanullah Storage Block Storage Ubuntu 18.04
  • Question

    How to permanently change DNS nameservers in Ubuntu 18.04.3? Wiki article is not working.

    Hello, I am trying to permanently change the DNS nameserver being using on my droplet. I following this article: https://www.digitalocean.com/community/questions/how-do-i-switch-my-dns-resolvers-away-from-google But t...
    Accepted Answer: Hello, With the older Ubuntu distributions, you could do that with the /etc/resolv.conf however, with Ubuntu 18.04 you should make the change in the netplan configs at /etc/netplan/*.yaml files. The file would look so...
    1 By Aerience Ubuntu 18.04 DNS
  • Question

    How to configure NGINX to avoid 502 Bad Gateway when communicates with a Docker container?

    Hi, my case is that after having set up a new Droplet with an Ubuntu 18.04 server and have followed the DO tutorials to: 1. Install Nginx 2. Secure Nginx with Let's Encrypt 3. Install Jenkins 4. Configure Jenkins with...
    Accepted Answer: OK just add an update that some days after my latest post, I realized that the main and only reason the server was going down was a lack of resources in the droplet. So I was using a droplet with 1GB of RAM, 25GB HD, ...
    3 By jlbb Nginx Docker Ubuntu 18.04 CI/CD Node.js
  • Question

    Do you have script for auto server installation ?

    hello i am trying to setup website and i got script for auto set up but i am get not everything corect this is how it looks like btw i am using Ubuntu 18.04 `` if [getconf LONGBIT` -ne "32" ]; then installpack=...
    Accepted Answer: Hi there @r4sk4t0v, I believe that PHP 5 is no longer available in the default Ubuntu repository. You need to adjust your script and change all php5 reverences with either just php or php7.2. Let me know how it goes! ...
    1 By r4sk4t0v Ubuntu 18.04
  • Question

    Process kswapd0 triggers 100% CPU usage

    Hi, I installed the Docker Droplet (https://marketplace.digitalocean.com/apps/docker) of DO and loaded a modest docker-compose service. After a week of working ok and uninterrupted for 8 days. Suddenly cpu fired up ...
    Accepted Answer: Just for the record: finally I the rebuild the project with the new swap configuration and everything it is going smoothing and with a 0.65% of CPU. I learned that when the project runs low in memory, the operatives...
    3 By willypregliasco Docker Ubuntu 18.04
  • Question

    How To Find php.ini? (Ubuntu LAMP on 18.04)

    I'm trying to upload a large database to phpMyAdmin, and so need to adjust the values of uploadmaxfilesize, memorylimit and postmax_size in the php.ini configuration file. However I'm having trouble locating php.ini o...
    Accepted Answer: Hi @alexanderCrab, The best way to see which PHP.ini your website is looking at is using phpinfo. PHPinfo() is a PHP method which can be used in a file like so ``` <?php phpinfo(); ``` Basically, what you need to do ...
    1 By alexanderCrab PHP MySQL Ubuntu 18.04
  • Question

    How to activate one click update WordPress core and plugins in marketplace Application?

    Dear, friends. I have deploy a server using One Click marketplace applications. I choose WordPress on Ubuntu 18.04 The default installation WordPress version is still the old one, WordPress 4.9.8 , today the latest re...
    Accepted Answer: Hi there @Technosatmedia, I just created a 1-Click Wordpress Droplet and teste this but it looks to be working as expected at my end: Wordpress 1-click update https://imgur.com/GqPzBVV.png I am using Google Chrome and...
    1 By Technosatmedia WordPress Ubuntu 18.04 Ubuntu
  • Question

    permission denied (publickey) using git from DigitalOcean console, Forge user

    My setup originates with Laravel Forge connecting to various GitHub repos. I've been running a dozen sites without issue for about 6 months. All of a sudden, yesterday I started getting this permission denied (publick...
    Accepted Answer: I was logged in as the root user accidentally, instead of my usual git user forge. So mucked up my file permissions by trying to git add files, and once I got logged into the correct user, I had to reset my file permi...
    2 By fowlertown Nginx DigitalOcean Ubuntu 18.04 Laravel
  • Question

    Can't login to mysql as root user even though I have the password

    I followed this tutorial on how to set up phpMyAdmin on Ubuntu 18.04: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-18-04 In step 2 I'm trying to log in to mysql using...
    Accepted Answer: Hi there @maxRay, It looks like that the MySQL password that you are trying to use is not correct. In case that you've lost the MySQL root password I could suggest following the steps from this tutorial here on how to...
    2 By maxRay MySQL Ubuntu 18.04