How To Install LAMP Server in Ubuntu Server 12.04 LTS

In How To

LAMP server (Linux, Apache, MySQL, PHP or Perl) is one of the most important servers you might ever set up. It will happily serve up dynamic, database-driven web sites without needing constant babysitting. Since the LAMP server‘s underlying foundation is Linux it enjoys rock-solid reliability, security, and can be installed on all kinds of hardware (from that old white-box you have to a multi-CPU, RAID-enabled rack server).

On this tutorial, I will shows how to Install LAMP Server in Ubuntu Server 12.04 LTS Precise pangolin. Below is a laundry list of commands to help you configure the perfect Install Lamp-Server on Ubuntu server 12.04 LTS, Let’s start it:

Install LAMP Server in Ubuntu Server 12.04 LTS

Log in on your ubuntu server remotly with ssh

Install LAMP Stack (Linux,Apache, Mysql, PHP) with command below:

sudo apt-get install lamp-server^

Install PHP5 (Some applications require other PHP5 mods) with command:

sudo apt-get install php5 php5-gd php5-mysql php5-curl php5-cli php5-cgi php5-dev

Install phpmyadmin

sudo apt-get install phpmyadmin

Watch video How To Install LAMP Server in Ubuntu Server 12.04 LTS

Link Referernce:

  1. Apache:
  2. PHP:
  3. MySQL:
  4. Ubuntu:

Tags: #Apache #LAMP Server #MySQL #PHP #Ubuntu Server 12.04 #Web Server

How to Upgrade Ubuntu Server 12.04 to Ubuntu Server 14.04 LTS
How to Upgrade Ubuntu Server 12.04 to Ubuntu Server 14.04 LTS
This tutorial will describes how to upgrade
How to Install LAMP in Ubuntu Server 14.04 LTS
How to Install LAMP in Ubuntu Server 14.04 LTS
This tutorial will explains basic step how
  • Pingback: Installing LAMP on Precise (video) « 0ddn1x: tricks with *nix()

  • Pingback: How to Install ownCloud 4 in Ubuntu Server 12.04 LTS « Linux « Technology « Theory Report()

  • Guimalufb

    i couldnt find the lamp-server package.

    • ncode

      type these command: sudo apt-get install lamp-server^ with char “^” (shift + 6)

    • Mitchell Monahan

      It’s lamp-server^
      The caret (^) is not a typo

  • Paco Rosales

    great and accurate tutorial, thanks a lot

  • johnAnon

    phpmyadmin doesn’t resolve for me.. I think its because I have to get this somehow off of localhost settings.. any help.. I got an ip.. what configs do I edit?

  • Mitali Acharya

    It shows error that couldn’t find task lamp-server

    • Chris Betti

      tasksel (used behind the scenes if apt-get sees a caret ‘^’) may not know about lamp-server. you probably need to run `sudo apt-get update` first, to get the latest list for tasksel, and the command will work.

  • Vangelis

    you can also try: sudo tasksel
    Then choose LAMP Server 🙂

  • Angel S Moreno

    Would be more complete if you added how to add virtual hosts..or would that be another tutorial?

  • mattr

    phpmyadmin did not install

  • Morshedul Arefin

    I applied this method and all things are successfully installed. Thanks for this great and perfect tutorial.

  • simbatig

    Sheese…This server Sucks! I even took a class in Linux for Ubuntu/Linux, which I got around fine, pre-learned from Fedora, Kubuntu, Open Suse, Lubuntu and such! I’ll just stick with my Windows 2008 Enterprise config’d for AD DS and WinXP/7/8 dual boots Non-VM, until Open Source grows up a bit! Too much work to get anything done, if at all!

    • Vince

      i never took a class in linux and i think building a home server by myself with ssh, vsftpd, samba, squid, plex, mail server, web server, and later playing with dhcp, dns and permission is very exciting and quite easy to learn if you look arround and find easy and explained tutorial. I think you should just learn patience and you will be rewarded. If you just dont like playing with computers you should consider find yourself a new hobby.

  • jagpreet

    sudo command not found…

Must read×