Ubuntu 14.04 Server Installation Guide and Setup LAMP (Linux, Apache, MySQL, PHP)

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Linux BASH Programming Cookbook
Getting Started with Ubuntu 16.04
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

22 Responses

  1. Puneet Mishra says:

    A wonderful guide.. i just installed my server with lamp stack.. tanks a lot..

  2. Paris says:

    Thank you very much for this.. great article

  3. appreciative says:

    Thank you Matei for writing this. Just some suggestions —

    # sudo service ssh restart

    # sudo /etc/init.d/ service_name start|stop|restart|status

    What does the 2nd line “# sudo /etc/init.d/ service_name start|stop|restart|status” mean? Is it meant to a comment? If so, please make it clear that it is a comment. Otherwise, it looks like a command! Very confusing to a newbie. I’m not a newbie but I almost wanted to stop reading after seeing this line. It does not reflect well on the author’s intelligence to present it this way.

    $ ps aux | grep service-name
    $ sudo netstat –tulpn
    $ sudo lsof -i

    Same – I suppose you wanted to write ps aux | grep ssh or ps aux | grep httpd — that is, you meant to say replace the service-name with the name of the service. If so, please say so! Otherwise this appears like Ubuntu can grep and list all the services in the ps listing — which isn’t possible with other Linux distro and Freebsd.

    Thank you.

  4. Jon Webb says:

    Best writeup i’ve found online. Big big Thankyou.
    especially step 8 “press goback at enter hostname, and enter static ip” – such a timesaver. Typical linux documentation not mentioning this ‘very’ important step. Again big thanks :)

    I’d like to add a few notes if i may, that i came across doing a Ubuntu LAMP installation…
    April 2015. Ubuntu v14.10. Bootable usb stick. An old BIOS server not uEFI, with multiple OSs and HDDs

    choosing Install Ubuntu Server is much much faster than choosing Advanced Install. For some unknown reason the progress bars fly by compared to crawling by with that second option. very odd!

    1) i always get asked if i first want to unmount “sdb” (which is the drive i’m going to install to) sometimes i’ve said no, othertimes yes. it doesnt appear to make a difference.
    2) disabling (turning off) hdd’s in bios, does ‘not’ stop them showing up in the partition manager, or GRUB configuration. so careful!
    3) if using LVM, create a small /boot partition outside of any logical Group. A real ‘gotchya’.

    Partitioning Example (not uefi)
    so, i selected Manual partitioning, then the disk to use “sdb”, then the (40GB) freespace on said disk, then
    Create a partition: 1GB, primary, at beginning, /boot, ext4, bootflag=on
    Use LVM and create a Volume Group “LinuxPartitions” using (39GB) freespace
    – still in LVM create Logical Volume “root” 35GB and “swap” 4GB. exit LVM
    Back in partition manager, select LV Root and set UseAs=ext4, /, “root”.
    – select LV Swap and set UseAs=swap.
    Done, finished, write, continue…

    Problems with GRUB
    “other operating systems found” on ‘disabled’ disks !!!!!!! “Install GRUB to MBR…” choose: No! It’ll cause a Fatal Error trying to write to some disable disk. When asked, type the correct location: /dev/sdb in my case.

    Finished, reboot, login
    –failed to start unit user1000…
    –failed to start user service…
    these are known bugs apparently.

    Again Thanks a lot. I hope my input helps others learning all this.

  5. Jairu says:

    Hello Matei,

    I believe the tutorial has a small typo on the step [28]

    I believe you wanted to run the command: sudo lsof -i

    Thank you for the great work.

  6. Nunya says:

    This is crap!!! Quite a number of errors. Just more misinformation on the great information superhighway.

    • Ravi Saive says:

      We are very sorry for the errors if any you find on the article, it would be great if you could tell us so that we can correct it. thanks in advance.

  7. Wonderful article! We are linking to this particularly great
    post on our website. Keep up the great writing.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?