I've just purchased a cloud VPS and installed Ubuntu Server 13.04 on it and that is pretty much all of my Linux knowledge.

Can someone point me to the best up to date tutorial on setting up Ubuntu Web Server?

I need the standard stuff:

  1. LAMP
  2. FTP Server
  3. Mail Server
  4. DNS Server to point my domain to it.

Most of what I found were tutorials on setting up server on PC which is rather different then setting up server for productive purposes.

Also I'm paranoid that things might go south, can you tell me what is the routine of managing the server and more or less will I need to manage it at all after the setup?

Thank you in advance.

EDIT: I've found exactly what I was looking for, a perfect solution for all the starters out there who wonder how the hell can a normal person memorize all this linux commands :) here you go:


  • Possible duplicate of: askubuntu.com/q/298741/52726. Take a look at that question. – Alaa Ali May 23 '13 at 10:44
  • @Alaa Thank you for your comment, I'm looking for a straight forward tutorial on setting up a web server on Ubuntu right now from my balcony while smoking a cigarette and drinking warm Nescaffe. Reading a book won't do it. – Leon May 23 '13 at 10:55
  • Haha, well with little knowledge in Linux, I doubt it'll be a clean experience, you'll eventually need to read. Anyways, maybe this is handy: help.ubuntu.com/community/ApacheMySQLPHP – Alaa Ali May 23 '13 at 11:16
  • 2
    mail server is whole domain on it own full of deep pits... consider getting it as a service. – lpanebr May 23 '13 at 12:27

For step-by-step instructions, take a look at How to Setup a Dedicated Web Server

In this tutorial, you will learn about:

  • Install Ubuntu Server operating system.
  • Install an OpenSSH server.
  • A LAMP (Linux, Apache, MySQL, and PHP) stack is going to be installed.
  • Install a firewall to protect your server from unauthorized access.

For more information about FTP and bind DNS see Create a web server with Linux

Source:Net Tutts

  • Thank you for your answer, I already found this tutorials on Nettuts+ but they are very butchered, as I said this are written probably with home PC server in mind not a VPS or Dedicated server, I know how to install most of this things but the hard part is DNS server (Bind) and Mail Server installation and configuration, I need tutorials that include those segments. – Leon May 23 '13 at 11:06
  • 1
    I added another link in my answer, that talks about Bind and DNS. – Mitch May 23 '13 at 11:25

Setting up LAMP and FTP is an easy task. Execute the following commands and just select FTP and LAMP:

sudo apt-get install tasksel
sudo  tasksel

For a DNS server i suggest dnsmasq or bind. Where dnsmasq is easier to setup and should suffice for simple configurations.

But when it comes to Mail (you need working DNS for mail to work), that's another story. I can suggest you the following walk through for setting up a mail server: http://flurdy.com/docs/postfix/

I also recommend you Webmin (a web based admin interface) and a firewall (i prefer shorewall).

There are plenty of things that can be done wrong so take care what you do ;)

Good luck with your first Ubuntu server!

  • Thank you for your answer, I found out that LAMP can be installed with 2 copy-paste commands. But still no luck with Bind. – Leon May 23 '13 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.