Questions tagged [server]

Ubuntu Server is a flavor of Ubuntu that comes with with no desktop environment by default, with command-line SSH login as the default way of remote access. This tag should be used for questions related to Ubuntu Server (as opposed to Ubuntu Desktop variants), as well as any questions related to installing services and programs on Ubuntu Server.

Some Basic Definitions:

Term Definition
Server A device on a network which provides "services" to other devices such as web content, file sharing, email, printing, and shared disk space
Ubuntu Server An Operating System (OS) which (through software/hardware) allows the device(s) to perform server-related functions
LAMP An acronym for a typical web server meaning Linux, Apache, MySQL, PHP
LAMPP An acronym for a more generalised web server meaning Linux, Apache, MySQL, PHP, PostgreSQL

Brief Introduction to the Subject:

Packages and programs that are included in Ubuntu Server include web servers, databases, DNS, containers, etc. These programs include:

  • Apache 2 and NGINX Web servers
  • MySQL, MariaDB and PostgreSQL Databases
  • PHP, Perl, JavaScript etc.
  • Bind 9 DNS Server
  • Docker, LXD and Kata Containers

These programs can be set up and installed separately from the Ubuntu Server Core, but questions regarding those programs should be tagged with that program's tag.

Important Links for Learning More:

16857 questions
604
votes
20 answers

How do I fix my locale issue?

I am getting this message every time I do something like starting or stopping a service. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), …
HackToHell
  • 6,826
524
votes
14 answers

Apache error "Could not reliably determine the server's fully qualified domain name"

When I restart my Apache server using the command sudo /etc/init.d/apache2 restart I get the following error: Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for…
Deepu
  • 5,387
362
votes
13 answers

How can I monitor the memory usage?

I have used top to see the memory usage at the moment. But I would like to monitor the memory usage over a period of time. E.g start monitoring and then execute a few commands, and final stop the monitoring and see how much memory that have been…
Jonas
  • 8,667
348
votes
14 answers

How do I check if a package is installed on my server?

I recently installed Ubuntu Server edition 13.10 (Saucy Salamander). But I have run into a bit of problem. At the end of the installation, it asks about several extra packages whether you want them or not, like OpenSSH server and virtual machine…
329
votes
13 answers

How do you restart Apache?

I switched from SLES to Ubuntu and now I want to restart my local server. In SLES I used: rcapache2 restart but this seems not to work in Ubuntu. How do I restart Apache?
Jai Puri
  • 4,089
311
votes
23 answers

SSH Permission denied (publickey)

I am trying to connect to a Linode (running Ubuntu 12.04 LTS) from my local machine (also running Ubuntu 12.04 LTS) I have created a private and public key on my local machine and copied my public key to my Linode's authorized_keys file. However,…
Pattle
  • 3,249
298
votes
5 answers

What is LVM and what is it used for?

As a Linux/Ubuntu newbie, what is LVM and what is it used for? In terms of a web server installation, what benefits does it provide? Would you recommend using it?
273
votes
14 answers

How do I copy files that need root access with scp?

I have an Ubuntu server to which I am connecting using SSH. I need to upload files from my machine into /var/www/ on the server, the files in /var/www/ are owned by root. Using PuTTY, after I log in, I have to type sudo su and my password first in…
272
votes
11 answers

How can I see what ports are open on my machine?

I would like to see what ports are open on my machine, e.g. what ports my machine is listening on. E.g. port 80 if I have installed a web server, and so on. Is there any command for this?
Jonas
  • 8,667
256
votes
18 answers

How do I free up disk space?

My Ubuntu cloud server has left only 900MB of disk space. I'll just empty the directory /tmp and wondering if there is any other location to clean up.
user3215
  • 5,475
255
votes
12 answers

How do I add locale to ubuntu server?

I currently have those locales: locale -a C en_AG en_AG.utf8 en_AU.utf8 en_BW.utf8 en_CA.utf8 en_DK.utf8 en_GB.utf8 en_HK.utf8 en_IE.utf8 en_IN en_IN.utf8 en_NG en_NG.utf8 en_NZ.utf8 en_PH.utf8 en_SG.utf8 en_US.utf8 en_ZA.utf8 en_ZW.utf8 POSIX How…
Silver Light
  • 2,647
249
votes
14 answers

How do you run Ubuntu Server with a GUI?

Trying to run a Ubuntu server for the first time... But everything is in a terminal. Is there a way to switch to a GUI?
215
votes
9 answers

How to find out how much disk space is remaining?

What is the command to find out how much disk space is being used/remaining?
hawkeye
  • 4,107
163
votes
6 answers

How to add a PPA on a server?

The server version of Ubuntu does not have the add-apt-repository command. How can I add a Personal Package Archive (PPA) to the server without this command?
Luis Alvarado
  • 216,643
162
votes
6 answers

How do I configure my DNS settings in Ubuntu server?

According to this page it appears to be simple. However, /etc/bind does not exist on the default installation of Ubuntu 12.04.3 LTS server. So, without installing any further software, how can configure DNS and remove dnsmasq on ubuntu server? I am…
Asta-Risky
  • 1,635
1
2 3
99 100