Ubuntu

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

    How to fix docker: Got permission denied while trying to connect to the Docker daemon socket

    I've just installed docker but I have to run it with sudo every time. If I don't add sudo I get the following error: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker...
    Accepted Answer: Hello, According to the official Docker docs here: https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user You need to do the following: To create the docker group and add your user: ...
    7 By bitmap Docker Linux Basics Ubuntu
  • Question

    Unable to 'apt update' my Ubuntu 19.04

    I'm not sure where to start; Why doesn't apt update work or why can't I do-release-upgrade? This is what I see when I ssh in: ``` Welcome to Ubuntu 19.04 (GNU/Linux 5.0.0-38-generic x86_64) Documentation: https://hel...
    Accepted Answer: The repositories for older releases that are not supported (like 11.04, 11.10 and 13.04) get moved to an archive server. There are repositories available at http://old-releases.ubuntu.com. ``` sudo sed -i -re 's/([a-z...
    2 By peterbe Ubuntu
  • Question

    How to ping Docker container from another container by name?

    Hi all, I want to be able to ping or basically access a running docker container from another container by simply using the docker name rather than an IP address. I've tried a few guides but I could not get it working...
    Accepted Answer: Hello, Yes this now comes more or less out of the box with Docker Networks, so what you need to do is: Create two containers: docker run -d --name <^>web1<^> -p 8001:80 eboraas/apache-php docker run -d --name <^>web...
    1 By bitmap Docker Linux Basics Networking Ubuntu
  • Question

    Access node based web server with public IP

    I have installed a node based lightweight web server https://www.npmjs.com/package/http-server in my droplet and trying to serve a directory with it. mkdir web cd web http-server This shows the output as - Startin...
    Accepted Answer: Hi @jaibatrik Can you check if your firewall is active? sudo ufw status And run this command to show listening services: sudo lsof -iTCP -sTCP:LISTEN -P
    1 By jaibatrik Node.js Ubuntu
  • Question

    Wordpress: The uploaded file could not be moved to wp-content/uploads/

    Hey guys, I'm having an issue with not being able to upload media onto the wordpress site. Plugins update and install normally, but if i try to upload a pic for a post, it gives me the error "The uploaded file could n...
    Accepted Answer: |Solution!| So basically after having a head-ache with permissions and ownership, I came across the final solution. I have a secure ftp user called 'wp-user' which I got from the tutorial here (https://www.digitaloce...
    5 By Irvinlesh DigitalOcean WordPress Apache Ubuntu
  • Question

    Network not working after taking droplet snapshot

    Hello DigitalOcean, I have an issue with my droplet. It is currently using Ubuntu 18.10 and I wanted to update to Ubuntu 18.04 LTS, so I decided to shut it down and take a snapshot. When I took the snapshot, I booted ...
    Accepted Answer: After 3 days of struggle, I finally solved it. It is similar to this issue https://www.digitalocean.com/community/questions/no-internet-connection-after-droplet-reboot from @lukasea17033bb7e7ecf80fc21 Thanks, Franz
    2 By rigledev LAMP Stack Ubuntu
  • Question

    Ubuntu server with wildfly application server doesn't respond

    I am new to this type of platform and I do not know if I am doing it right, I want to test how a virtual server works Ubuntu I configured it and have access to via puTTy with a public SSH key, then I installed JDK 8 o...
    Accepted Answer: Hi there @rramirezech, There are a couple of things that could be causing the error: Check if the Wildfly service is binding on 0.0.0.0:8080 and not 127.0.0.1:8080, you could do that with the following command: comman...
    1 By rramirezech Java Ubuntu
  • Question

    Redirecting from http://example.com to https://www.example.com

    I want to redirect my domain from <^>"<^>http://example.com<^>"<^> to <^>"<^>https://www.example.com<^>"<^> and if right in search example.com to redirect to https://www.example.com or when you search www.example.com ...
    Accepted Answer: Hi @ymeriergi Depending on how your vhost configuration is made, you simply change the config: <VirtualHost *:80> ServerName www.example.com ServerAlias example.com Redirect / https://www.example.com/ </Vir...
    4 By ymeriergi Apache Ubuntu
  • Question

    How to Install Subspace on Ubuntu server?

    Subspace (https://github.com/subspacecommunity/subspace) is a simple opensource WireGuard VPN server graphical user interface(GUI). You can install subspace directly on your server which would allow you to track and c...
    Accepted Answer: Prerequisites In order to complete this guide, you will first need to perform the following tasks on your Ubuntu 18.04 Droplet: Ubuntu 18.04 Droplet Create a sudo user and enable ufw. To set this up, you can follow ou...
    1 By bobbyiliev VPN Linux Basics Ubuntu Networking
  • Question

    Nginx not starting: Address already in use (nginx: bind to 0.0.0.0:80 failed)

    Hi all, I just installed Nginx but when I try to start it it fails with the following error: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) If I check the status I get the following output: ``...
    Accepted Answer: Hi there @bitmap, It would usually mean that you have another service running on the same port. And note that you can not have multiple services listening on the same port. The service which is already listening on po...
    1 By bitmap Nginx Linux Basics Linux Commands Ubuntu
  • Question

    Another DNS Not Resolving Issue

    Hi DO Community, I've got a droplet setup at 67.205.185.20 and my dns for clients.nevilleco.com is setup and forwarding to this IP. I can ping the subdomain and get the IP address and DNSchecker.org (http://DNScheck...
    Accepted Answer: Hi there @ScoutDigital, It looks like that your DNS is configured correctly and your webserver is also up and running, I've tested this with the following curl command: command curl -IL clients.nevilleco.com The outp...
    1 By ScoutDigital Ubuntu LAMP Stack DNS
  • 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

    Potential Security Risk Ahead Error on non-www urls

    My issue is when I open my website without WWW then it doesn't redirect to https://www.admecindia.co.in, in result page doesn't open up and shows 'Security Error' like this: ``` Warning: Potential Security Risk Ahead ...
    Accepted Answer: Hi there @ravibhadauria143, It looks like that your Let's Encrypt was issued only for the www version of your domain name. I would recommend issuing a new SSL certificate which would include both the non-www and the w...
    1 By ravibhadauria143 WordPress Ubuntu
  • Question

    I can't connect to my droplet using putty or WinSCP, but in the digitalocean the username and password work

    The title says it all, I can't connect to my droplet anymore, it worked before but now i can't access it via putty or WinSCP, it just says access denied everytime. How can I fix that?
    Accepted Answer: Hello, Have you tried generating an SSH key for Putty and then adding this key toy our ~/.ssh/authorized_keys folder? From what I understand there is access to your droplet however only by using the console. This wou...
    1 By Username351 Ubuntu
  • 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

    Connection Refused to my Website (only on my IP/Network, on browser only)

    I was making minor content changes to my Wordpress website (standard Ubuntu 18.04 droplet WordPress setup), and suddenly all my requests from my browser to are refused. Apparently, this only occurs to devices connecte...
    Accepted Answer: I realized somehow my IP address was banned with fail2ban. It worked after removing all fail2ban bans.
    2 By lichunshang WordPress DNS Firewall Ubuntu Apache
  • Question

    How to access Nginx error logs?

    I had a particularly outdated ubuntu distribution (12.10) and was beginning the process to update sequentially to 16.04. Yesterday, I successfully updated from 12.10->13.10->14.04 using the Ubuntu old releases archive...
    Accepted Answer: root@foss:~# /var/log/nginx/error.log should be something more like root@foss:~# cat /var/log/nginx/error.log
    2 By Wesleying Nginx Ubuntu
  • Question

    '/proc/kcore' file is (apparently) 128T

    Hi, since a couple of weeks I have an unstable Wordpress site on a DigitalOcean droplet. The actual WP backup file is about 150MB. After investigating file sizes (df -h) it turns out that '/dev/vda1/' has used 20G (of...
    Accepted Answer: Hi @olivervogt, I'll recommend finding out which service is using this process and restarting it. The process itself can't hold 128T of space due to the fact the droplet doesn't have as much. As for the space issue, w...
    1 By olivervogt WordPress Ubuntu
  • Question

    How to Setup Laravel with DigitalOcean Managed Redis Cluster?

    Redis is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, and sorted sets. According to the official Laravel documentati...
    Accepted Answer: Prerequisites: In order to complete this tutorial, you will need: An Ubuntu Droplet with Laravel installed, you can follow the steps from this guide here on How to Install and Configure Laravel with LEMP on Ubuntu 18....
    1 By bobbyiliev Redis PHP PHP Frameworks Ubuntu Linux Basics Linux Commands
  • Question

    I installed nginx as root, now I can't get permissions right to run as another user

    As the title says, I have a server where nginx was originally installed by the root user. I now want to run nginx as a non-root user, a new user that I added to both the sudo the www-data groups. When I try to run ng...
    Accepted Answer: I received some advice that solved my problem and seems to be sound counsel. I'm now starting the server from the non-root account using sudo and all is well. One little trick!
    8 By jamesfacts Nginx Ubuntu