Posted: . At: 11:30 AM. This was 9 years ago. Post ID: 8392
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

How to install Ubuntu server and setup a simple LAMP instance.

Installing Ubuntu server is quite straightforward. Firstly, choose the language.

Ubuntu server language screen.
Ubuntu server language screen.

Then the user needs to choose what country they are in.

Set what country you are in.
Set what country you are in.

And choose what keyboard layout you are using. After this is out of the way, we get to the main installation tasks.

We need to choose a hostname for our server instance.

Set a hostname for our Ubuntu server instance.
Set a hostname for our Ubuntu server instance.

Now we need to choose a full name for our server user…

Set the full name for our new user.
Set the full name for our new user.

And choose a username we will login with.

Set a username for our server.
Set a username for our server.

And give them a password.

Set a password for the new user.
Set a password for the new user.

The password will need to be reentered to verify that you have entered it correctly. Now you may choose whether or not you want to encrypt your home directory for security reasons. This is optional though.

Do you want to encrypt your home directory?
Do you want to encrypt your home directory?

Now choose the timezone you are located in. This is essential to set the proper time on your Ubuntu server. Once the proper timezone is set, the partitioning screen will appear. The best option is to choose the “guided – use entire disk” if this is on a drive with no other operating systems or data on it.

Ubuntu server partitioning screen.
Ubuntu server partitioning screen.

Now choose the device/partition that will hold our server operating system. We only have one, so this is simple. Just press ENTER.

Choose which device to partition.
Choose which device to partition.

Now we can review the changes that will be made to disks when the partitions are created. Just select yes and press ENTER if you are satisfied.

Reviewing our partitioning settings.
Reviewing our partitioning settings.

Now you may go and fetch a coffee whilst the system is installed to the hard drive. This will install a basic command-line only server instance that may be built upon by installing extra packages.

If you are not using a network that requires a HTTP proxy, just press ENTER at this screen.

Set HTTP proxy details if required.
Set HTTP proxy details if required.

And yes, we do want security updates to be installed automatically if we are using this is a production server, this is just good practice. Instead of patch Tuesday…

Yes we want automatic updates.
Yes we want automatic updates.

And this is the screen where we choose our server roles. I have chosen to install the OpenSSH server for remote administration and the LAMP, ‘Linux Apache MySQL and PHP’ for our web server needs.

Choosing Ubuntu server roles to install.
Choosing Ubuntu server roles to install.

Press TAB to select continue and hit ENTER.

Then you will need to set a password for the MySQL root user. This is very important!

Setting the MySQL root password.
Setting the MySQL root password.

The last task is to install the GRUB bootloader to the MBR of the hard drive. Since this is the only operating system installed, we can just press ENTER here.

Install the GRUB bootloader.
Install the GRUB bootloader.

And we are all done!

Server installation is completed.
Server installation is completed.

The Ubuntu server system is now running!

Our Ubuntu server is now up and running!
Our Ubuntu server is now up and running!

That is how easy it is to install an Ubuntu server instance. This allows a user to easily setup a LAMP or MySQL server with a very secure operating system and reliable Linux base. So give this a try and see what you can achieve with a simple and easy to use interface. Once you have rebooted into the server OS, login and run sudo apt-get update && sudo apt-get upgrade to install any pending updates. This is a very important step.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.