ubuntu - tips & tricks

Configure a LAMP Server on Ubuntu desktop




A “LAMP” stack is open source software typically installed together to enable web development. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored in a MySQL database, and dynamic content is processed by PHP.

Why is it called LAMP Stack?

It is referred to as the LAMP stack because all these components are integrated to deliver a comprehensive software solution. Linux Apache MySql Php (LAMP)

Why is it LAMP stack so popular ?

The LAMP stack is a very popular platform of choice among many start up companies due to that fact that is mostly “free” to use. Therefore it significantly reduces the overhead on software development.

It also has a very active and vibrant community, which ensures ease of use of obtaining great technical talent is easier. Many universities and colleges offer courses in utilizing open source software solutions, which also ensures skilled people are available.

What are the benefits of LAMP

  • Easy to code: Developers enjoy developing on LAMP due to the fact that there are a number of great software development frameworks available which help in making coding a breeze on LAMP. This assists in turning out new applications is alot quicker
  • Cheap and Easy deployment : There are alot of great tools available that help in making deployment of LAMP applications easier and hosting charges tend to be significantly reduced
  • Local Development : Another huge advantage of using LAMP is that a developer can build an application locally and then deploy it to the web easily.

In order to configure your desktop you’ll need to install Tasksel, which is a Debian/Ubuntu tool to install multiple related packages as a co-ordinated “task” onto your target system. It is primarily used for server installation but works just as well for dekstops too.

In order to use of Tasksel, you will need to install it, if not previously installed.

To do so open a terminal window (Ctrl + Alt + t )

once that is complete type in

Select LAMP Server

Then once that is setup is complete. I always execute an additional command just to ensure that all of the libraries I specifically require for development have been registred and installed.




I also prefer to use phpmyadminm which provides me with a UI over mySQL database to ease administration tasks

This is should be it!

You can now test your machine, by going to http://localhost and http://localhost/phpmyadmin

Remove LAMP Stack

If ever you need to unistall or remove the LAMP stack from your desktop DO NOT use Tasksel to remove.

Follow these steps to safely remove LAMP server configuration from your ubuntu desktop without removing other required files.




Gary Woodfine

Freelance Full Stack Developer at threenine.co.uk
Helps businesses by improving their technical proficiencies and eliminating waste from the software development pipelines.

A unique background as business owner, marketing, software development and business development ensures that he can offer the optimum business consultancy services across a wide spectrum of business challenges.

Affiliate Disclaimer

Disclosure: Please note that some of the links included in the blog posts are affiliate links, which means I will earn a commission if you decide to make a purchase.

I only include affiliate links to products, services and companies that I have personal experience and have actually used. I only recommend them because they are helpful and useful, not because of the small commissions I make if you decide to buy something.

Please do not spend any money on these products unless you feel they are relevant, suitable and will help you achieve your goals.

Buying anyone of these products and the commisions earned will not make me an overnite multi millionaire, but they will help to cover the hosting costs and compensate for the countless hours and effort I put in to create meaningful and valuable free content I provide to help others succeed.

You've also undoubtedly noticed that I also use various advertising networks - unless of of course you're using an Ad blocker, this is also an attempt to reduce my monthly deficit I experience in providing free relevant, valuable and on occassion insightful content for the benefit of others.

I only really make some money if people click on the ads, unless of course you consider 1c per 1000 impressions real money!

Bear in mind just how many impressions I need to make before I can cover my £20 hosting costs a month!

If you are using an adblocker and guilt stricken you can of course donate using any of the buttons below, but I won't be holding my breath.


Buy me a coffeeBuy me a coffee
π