Ubuntu 16.04

Ubuntu 16.04

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

    Ubuntu 16.04 - Creating New User and Adding SSH Keys

    I am following the tutorial to add an SSL certificate to the Ubuntu 16.04 (https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04) droplet, but in the instructions it i...
    Accepted Answer: @connordphillips The root user is a super user and the only real super user on the OS by default. You can add sudo users which have permission to escalate to root after authenticating, though root is still a super us...
    5 By connordphillips Linux Basics Linux Commands Nginx Ubuntu 16.04
  • Question

    How to resolve "Temporary failure in name resolution" issue

    I rebooted my server (Ubuntu 16.04 w/ LAMP) about ~14 hours ago. Since then, I can't run apt-get or ping, and I'm seeing a lot of "Temporary failure in name resolution" errors in my syslog. Here's the output when I ru...
    Accepted Answer: I have this issue too. I suspect there is an issue with DigitalOcean's nameservers, so this will likely affect a lot of other people too. Here's what I've done to temporarily get around it - but someone else might be ...
    4 By kylejohnston LAMP Stack Ubuntu 16.04
  • Question

    How to increase SSH Connection timeout?

    Hi everyone! I have an issue about SSH connection. Previously I set /etc/ssh/ssh_config as ConnectionTimeout 0 but still closes connection. So Am I missing something? How can I keep alive connection? What can I do any...
    Accepted Answer: @selcukahmet /etc/ssh_config is the client side configuration file not the server side config file. To prevent all your clients from timing out you need to edit /etc/sshd_config which is the server side configuration...
    4 By selcukahmet Linux Basics Ubuntu 16.04
  • Question

    "Forbidden - You don't have permission to access / on this server" Error

    I followed the virtual hosts tutorial and set up apache for my domain name aditidentalcare.com. The website was loading perfectly but now I am suddenly getting this error. Forbidden - You don't have permission to acc...
    Accepted Answer: @joginayak You need to use chmod 755 instead of 750 on directories. Using 750 equates to users having read, write, and execute, groups having read and execute, and finally, world (i.e your visitors) having absolutely...
    4 By joginayak Apache Ubuntu 16.04
  • Question

    How to run node.js server with Nginx

    Hi all, I'm trying to figure out how to get my Node server.js to run on my droplet with Let's Encrypt / nginx It was working by just ssh-ing into the droplet, cd into the project folder (cloned from Github repo) and r...
    Accepted Answer: Hmmm all that sounds like it should work... Just to be clear, this is what your nginx config should look like: ``` server { listen 80; servername mydomain.com www.mydomain.com; return 301 https...
    1 By keithj0nes Nginx DigitalOcean Node.js Ubuntu 16.04
  • Question

    How to open PORT : 443

    I have checked that the port 443 is closed and is not listed on my droplet. Here is the output when i run the command : root@ubuntu-1gb-blr1-01:/# netstat -ntlp | grep LISTEN tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 4...
    Accepted Answer: Let's list the services that are running: sudo lsof -iTCP -sTCP:LISTEN -P Do you see Apache on port 443 on the list? If yes, then it might be a firewall issue. If no, then Apache isn't listening on port 443, which p...
    3 By atulroyal Apache Firewall Linux Commands Ubuntu 16.04
  • Question

    404 Not Found nginx/1.10.0 (Ubuntu)

    Hi guys, I install wordpress on Lemp on 16.04 ( this was installed using the via DO droplet) following this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-16-...
    Accepted Answer: Make sure you have your WordPress site stored in /var/www/html and set correct permissions on /var/www/html and it's content. To check, the following simple ls command will do the job: command ls -ld /var/www/html Al...
    7 By mishfaq WordPress Nginx Ubuntu 16.04
  • Question

    How to upgrade PHP 7.0.33 to 7.4.7 on Ubuntu 16.04 (NGINX)?

    My server configuration (DigitalOcen): * 4GB RAM | 80 GB Disk * Ubuntu 16.04 x64 (NGINX) - WordPress Current PHP version: 7.0.33 * Reason to upgrade: WordPress Error - PHP Update Required Kindly help. Thank you!
    Accepted Answer: Hi @chinmayrajyaguru, You can actually upgrade the PHP version, you can just install a new one. Firstly, to be able to install a certain PHP version, in this case, 7.2 you'll need to add a certain repository to your ...
    2 By chinmayrajyaguru Ubuntu 16.04 Nginx PHP WordPress
  • Question

    Can't access website by domain name, but can by IP

    I submitted this question to support about a month ago, but as I haven't received a response yet I figured I'd ask the community: I have a droplet setup with an IP of 134.209.63.71. On this droplet, I have setup a web...
    Accepted Answer: Hey there! First, I just want to apologize, as you didn't seem to receive our reply to your ticket. One of my colleagues was able to address your ticket on April 29, but it doesn't look like that made it to you! I can...
    1 By Dadrophenia DNS Ubuntu 16.04
  • Question

    Droplet dead for almost a day

    Yesterday got asked for "system needs to be restart" - did the reboot and since then the droplet did not come up again. no ping, no login (ssh), no DO console. It's the older ubuntu (16.04.6 lts) for I never upgrade...
    Accepted Answer: Hey @szinser, In our public community, we aim to answer open questions about anything SysAdmin, DigitalOcean and beyond. However, we make every attempt to keep personal information safe and so don't ever access person...
    2 By szinser Ubuntu 16.04 DigitalOcean
  • Question

    Nginx 404 error with existing urls Angular 2 One page application with routing

    I have a one-page angular 2 application that uses routing. When I hit my base URL example.com then the page loads correctly. However example.com/dashboard results in a 404 error. My server logs have this: 2017/02/14 ...
    Accepted Answer: @marcduplessis1 Instead of using: try_files $uri $uri/ =404; ... try using: try_files $uri $uri/ /index.html; This assumes that Angular is setup to handle requests that are sent to index.html and will route all r...
    4 By marcduplessis1 Nginx Ubuntu 16.04
  • Question

    Add two IP Addresses to an SPF Record?

    Hi, I have two websites, on two different Droplets (with different IP addresses) Both websites use the same domain, the first website is mysite.com and second website is example.mysite.com I need to edit my SPF recor...
    Accepted Answer: record - @ -- v=spf1 +a +mx ip4:167.XX.XXX.247 ip4:167.XX.XXX.40 include:spf.protection.outlook.com ~all
    3 By smeehan DNS Ubuntu 16.04
  • Question

    "sudo apt-get update" command is not working

    Hello! <^>Error log<^> ``` Last login: Fri Jul 1 00:56:49 2016 from XXX.XXX.XXX.XX root@xxx:~# sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB] Hit:2 http://nyc2.mirrors...
    Accepted Answer: @chinmayrajyaguru There's a few things we can do in an effort to resolve this. First, I'd clean up the lists for apt-* by running: sudo rm -rvf /var/lib/apt/lists/* The above command removes all files and directori...
    3 By chinmayrajyaguru Nginx LEMP WordPress DigitalOcean Ubuntu 16.04
  • Question

    PhpMyAdmin got 404 not found error on nginx ubuntu 16.04

    Hello Digital Oceans, I'm using ubuntu 16.04 and configured LEMP with this tutorial (https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04) on it. I tried to...
    Accepted Answer: @javadroid The symlink created in that guide points to /usr/share/nginx/www while your root directive points to another directory. Unless you specify another location block, NGINX doesn't technically know that the di...
    6 By javadroid Linux Commands Nginx Ubuntu 16.04
  • Question

    Why I can't install php5 modules on Ubuntu 16.04?

    Hello, I have just finished setting up my Ubuntu 16.4 server. I have installed php5.6.26 because I am going to use Wordpress and I am not sure if all plugins are compatible with php7. I need to install some php modu...
    Accepted Answer: As of Ubuntu 16.04.x default PHP version is PHP7. You should add PHP5 repository and you will be able to install it. First of all add repository : command sudo add-apt-repository ppa:ondrej/php When it finishes updat...
    2 By rodikr PHP Ubuntu 16.04
  • Question

    Trying to setup a SFTP user with limited access.

    What I want to do I want to add a second user, but restrict what the user can do: Only access a single folder called newsletters, it will be in the public folder. The user needs to be able to upload, delete and rename...
    Accepted Answer: Hi @jtittle Thank you so much for taking the time to read and reply to my post! After following your great instructions, the user user-sftp-only is restricted to just the newsletters folder. user-sftp-only can upload...
    5 By smeehan Security Linux Basics Getting Started Ubuntu 16.04
  • Question

    NGINX - Redirect to HTTPS

    I have been following the NGINX SSL with Let's Encrypt tutorial and appear to have successfully configured SSL for my server, but it doesn't appear to default to that. When I access my website with www.mysite.com it d...
    Accepted Answer: @connordphillips Here's a new config for http to https redirect: ``` This server block will redirect http:// to https://www.mysite.com server { listen 80; listen [::]:80; servername mysite.com www.mysite....
    3 By connordphillips Nginx Let's Encrypt Ubuntu 16.04
  • Question

    Enable HTTP2 in Apache on Ubuntu 16.04

    Hi there, I've recently created a new droplet with Ubuntu 16.04 and was pleased to see that sudo apt-get install apache2 gets me Apache 2.4.18. I was hoping that would allow me to enable HTTP2 support; alas, the respe...
    Accepted Answer: Another option is using Ondrej's Launchpad PPA (https://launchpad.net/~ondrej/+archive/ubuntu/apache2). For example: (replacing REPOSITORY with string from that page for your Ubuntu version). sudo add-apt-repository ...
    10 By floffimedia Apache Server Optimization Ubuntu 16.04
  • Question

    Enable remote Redis connection

    Hi, I'm trying to expose a Redis service over the web using a droplet, for now I'm trying to get it to work regardless of any security features. I've followed this tutorial (https://www.digitalocean.com/community/tuto...
    Accepted Answer: Nevermind this question, this only resulted in the fact that the redis.conf file has two lines showing bind 127.0.0.1 and I only had noticed one of these two...
    2 By titouanlaunay Redis Ubuntu 16.04
  • Question

    How to install Ubuntu with GUI

    Hi - Can someone help me setup a GUI on a fresh Ubuntu 16.04 server? I've taken the following steps: 1) Setup droplet 2) sudo apt-get update 3) sudo apt-get install ubuntu-desktop 4) sudo apt-get install ubuntu-gnome-...
    Accepted Answer: Hi @jtn1490 , You can't just SSH into server and type startx to get Ubuntu with GUI. You should use X11 Forwarding or VNC to get what you want. First solution will not get you a full GUI, but you when you launch any G...
    6 By jtn1490 Linux Basics Ubuntu 16.04