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
  1. How to Install ownCloud 4 in Ubuntu Server 12.04 LTS « Linux « Technology « Theory Report3 years ago

    […] apt-get implement apache2 php5 php5-json php-xml php-mbstring php5-zip php5-gd php5-sqlite twist libcurl3 libcurl3-dev php5-curl […]

  2. author

    Guimalufb3 years ago

    i couldnt find the lamp-server package.

    • author

      ncode3 years ago

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

    • author

      Mitchell Monahan3 years ago

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

  3. author

    Paco Rosales3 years ago

    great and accurate tutorial, thanks a lot

  4. author

    johnAnon3 years ago

    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?

  5. author

    Mitali Acharya3 years ago

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

    • author

      Chris Betti2 years ago

      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.

  6. author

    Vangelis2 years ago

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

  7. author

    Angel S Moreno2 years ago

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

  8. author

    mattr2 years ago

    phpmyadmin did not install

  9. author

    Morshedul Arefin2 years ago

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

  10. author

    simbatig2 years ago

    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!

    • author

      Vince2 years ago

      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.

  11. author

    jagpreet1 year ago

    sudo command not found…


Leave a reply "How To Install LAMP Server in Ubuntu Server 12.04 LTS"

Must read×