Questions tagged [ubuntu-16.04]

Ubuntu 16.04 - named "Xenial Xerus" - is a Long Term Support (LTS) release of Ubuntu Linux. Officially released on April 21, 2016, it was supported for 5 years. Extended Security Maintenance subscriptions are offered by Canonical until April 2024. Only use this tag if your question is version-specific.

Ubuntu 16.04 - named "Xenial Xerus" - is a Long Term Support (LTS) release of Ubuntu Linux. Officially released on April 21, 2016, it will be supported for 5 years for Ubuntu Desktop, Ubuntu Server, Ubuntu Core, and Ubuntu Kylin. Only use this tag if your question is version-specific. Note that the Ask Ubuntu site is specifically dedicated to Ubuntu questions.

949 questions
50
votes
2 answers

How do view older journalctl logs (after a rotation maybe?)

I am running docker on ubuntu 16.04 and would like to view the logs. However, I am unable to view logs after what I am guessing is some sort of rotation or the logs grow to a certain size. I have not made any changes to my journald.conf, so I am…
jdf
  • 821
  • 1
  • 7
  • 9
39
votes
2 answers

How to allow a user to use journalctl to see user-specific systemd service logs?

I am running user-level services in Ubuntu 16.04 LTS. For example, I have my test.service located at ~/.config/systemd/user/test.service. I was able to run the service by doing systemctl --user start test.target However, when I try to read its log…
ChromeHearts
  • 510
  • 1
  • 4
  • 8
32
votes
4 answers

Switch from PHP 7.2 to 7.1 on Ubuntu 16.04, Apache

I need to downgrade PHP on one of my VMs from 7.2 to 7.1 on Ubuntu 16.0.4. The last time I tried to remove just PHP and replace it with a different version, I had all kinds of issues with Apache and MySQL. Is there a quick way to downgrade PHP from…
Pegues
  • 901
  • 1
  • 7
  • 9
31
votes
3 answers

Best way to run python 3.7 on Ubuntu 16.04 which comes with python 3.5

I would like to avoid backports, they always seem to mess up my packages. So I was thinking tools like conda / virtualenv / maybe even docker can help. What's the most simple / cleanest way to work with python 3.7 on my system?
benji
  • 477
  • 1
  • 5
  • 11
27
votes
2 answers

nginx: [emerg] "stream" directive is not allowed here

I have the latest NGINX from ppa installed on Ubuntu 16.04. nginx version: nginx/1.12.1 From my understanding, it should support stream and UDP load balancing. But I get this error message: nginx: [emerg] "stream" directive is not allowed here in…
Houman
  • 1,325
  • 3
  • 18
  • 30
16
votes
5 answers

Install of MySQL hangs on Ubuntu 16.04

I’m trying to install MySQL server on Ubuntu 16.04 using: sudo apt-get install mysql-server I get asked to set and confirm root password and then the install hangs at: Renaming removed key_buffer and myisam-recover options (if present) I’ve exited…
panthro
  • 365
  • 1
  • 2
  • 8
15
votes
1 answer

"Excess arguments." while doing "systemd daemon-reload" during MongoDB configuration

I am following the instruction mentioned in : To install and configure the basic elements for MongoDB in Ubuntu. During "Configure MongoDB username and password", on phase 4 "Step 4 - Enable mongodb authentication" got the error. $ systemd…
Papal
  • 153
  • 1
  • 1
  • 5
15
votes
4 answers

Create daemon on ubuntu 16.04

I developed a crawler in PHP that parse an URL with specific headers and put all URLs of content in the queue. It works fine. I developed this code in a ubuntu 14.04 and I put a .conf file in /etc/init folder with this content: # Info description…
14
votes
2 answers

switch apache from prefork to event in Ubuntu 16, get php 7 working

Apache was running slow in production. After searching for answers for some time, I finally went to #apache IRC channel and the pros had me check the apache mode with this command: sudo apachectl -V and were alarmed to find that Server MPM is…
S. Imp
  • 506
  • 1
  • 3
  • 17
14
votes
4 answers

OpenVPN for certain IPs, eth0 for everything else

Summary: I'd like to connect to my VPN and have access to certain servers, but for all other traffic I'd like to use my regular networking. I've setup an OpenVPN server on my VPS, my server.conf file looks like so: port 1194 proto udp dev tun ca…
ThaDon
  • 457
  • 1
  • 5
  • 14
14
votes
1 answer

Disabling rp_filter on one interface

I have an Ubuntu 16.04 Server which is acting as a router with multiple (VLAN) interfaces. By default, rp_filter (reverse path filtering) is enabled for all interfaces. I want to keep it that way, but make an exception for exactly one interface.…
Cybran
  • 412
  • 2
  • 6
  • 15
12
votes
1 answer

systemd script for starting my app server - Unknown lvalue 'StartLimitIntervalSec' in section 'Unit'

I have a upstart configuration file as shown below which works fine in Ubuntu 14: #/etc/init/data_server.conf #sudo start data_server #sudo stop data_server #sudo status data_server start on runlevel [2345] stop on runlevel [016] chdir…
user1950349
  • 223
  • 1
  • 3
  • 10
11
votes
3 answers

Automatically mount SSD instance storage on AWS EC2 in Ubuntu 16.04

I am using an Ubuntu 16.04 EC2 from AWS on c5d.2xlarge HW. It comes with a 200 GB SSD called /dev/nvme1n1. I am able to mount this drive using: $ sudo mkfs.ext4 -E nodiscard /dev/nvme1n1 $ sudo mount -o discard /dev/nvme1n1 /home/ubuntu To try…
John Corson
  • 113
  • 1
  • 6
11
votes
1 answer

What does locking a password using `passwd -l` mean?

It is possible to lock a password using $ passwd -l john But what does that actually mean to lock a password?
Yahya Uddin
  • 293
  • 1
  • 2
  • 9
11
votes
3 answers

Why is ALPN not supported by my server?

I'm currently running a Ubuntu 16.04.1 LTS server using NGINX 1.11.9 and openssl 1.0.2g. According to everything I've read, these versions should support ALPN, yet when I run a test on KeyCDN's HTTP/2 Test tool, I get "ALPN is not supported" And…
Godwin
  • 401
  • 1
  • 4
  • 14
1
2 3
63 64