How to install a VPS with Ubuntu Server 14.04

What is a VPS?

A virtual private server (VPS) is a virtual machine sold as a service by an Internet hosting service.

A VPS runs its own copy of an operating system, and customers have superuser-level access to that operating system instance, so they can install almost any software that runs on that OS.

You can use your VPS to create websites, fora, run an IRC server and so on.

Step 1 -Find yourself a good hosting company
Create an account

You will notice the hosting company has a client area where you can login with your client name and password and a user area. Here you can create a VPS.

Login as user

Under the section cd-rom  choose for Ubuntu Server 14.04 LTS. Now mount it by clicking the mount button.

Then you reboot your vps.Just click on the reboot button. As you can see you can reboot your vps , shut it down, boot it or reinstall it.

Make a remote desktop connection with your VPS

Go to the VNC viewer your hosting company uses to make a remote desktop connection with your VPS.

I had three options: html5 ssl, html5 and java vnc client

I chose for the java script based vnc client. I chose for the last one because the other two options didn’t work.

Step 2 – Installing Ubuntu 14.04 on your VPS

When you see the text Ubuntu 14.04 you hit F3 to enter the key map. Then choose for ‘Install Ubuntu Server’.

Now you will be asked a couple of questions that have to do with the installation language , your location and others. After these questions are answered things like the name of your VPS and your user name and password will be asked.

Partitioning your harddrive

Now you will be asked to partition your hard drive .

Make sure that you don’t install your operating system next to previously used operating systems.

Choose for the manual partitioning of your hard drive.

First remove all visible partitions by highlighting them , enter and then choose for deleting the partition. Now go to the free space, and create a new partition of for example 50 Gb. Type for the new partition primary. Change bootable flag to ‘on’. Go to done setting up the partition.

Now you will have to create a new partition on what is leftover after using the 50 Gb of this example for the primary (root- / ) partition. You will save this partition as swap partition. Choose for done setting up the partition.

Check the overview of your current partitions. You should have a root partition now and a swap partition.Choose for finish partitions and save changes to disk.

Automatic updates

You will now be asked how you want to manage security upgrades of your system.

Choose for automatic updates.

Add options to the core of your system

Now you will be asked what you want to add to the core of your system.

Make sure you choose for openSSH and LAMP . Use the space bar to select them.

Install the GRUB boot loader to the master boot record

GRUB is a boot program of Linux. (Lilo is another one, but is older and has less options) GRUB makes you boot your version of linux.

Finish the installation. Now you will automatically be redirected to the installation menu.

Close it.

Unmount your Ubuntu version

Don’t forget to unmount your chosen version of Ubuntu 14.04, which is basically the same as making your pc throw the installation disk out.

You do this in the user control panel of your VPS.

Now your system will need a reboot.

So click on the reboot button of your VPS.

Login to your vps

Now you can login to your VPS through the terminal.

ssh username @yourvpsip
Testing if php is working

Go to your webserver’s document root.In our case this was/home/username/public_html‘

cd /home/username/public_html

And create a file called ‘info.php’ by using the command:

sudo nano

After that you put this piece of text in your nano editor:


After that you press ctrl+x to save it as ‘info.php’ and exit.

When you now visit http://localhost/info.php , you should be presented with a nice information page about your current php installation and setup.