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

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

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. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  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.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

24 Responses

  1. gaurav says:

    I am trying to install ububtu server. I am not connected to Internet yet. While installing, I am asked to select Ubuntu archived mirror. You have not mentioned this step.

    What to do now? If i proceed, bad mirror error comes.

    Plz help. Thanks

    • Matei Cezar says:

      If you don’t have some kind of local apt-mirror setup at your premises then you cannot install Ubuntu without an internet connection. The procedure for offline installation without an apt mirror is very complicated, does not guarantee that security patches or up-to-date packages will be installed and prone to errors, so the bast way to install Ubuntu is to connect the machine to internet while performing the installation procedure. After the installation install all the required software and then you can plug the machine into your local offline network.

  2. Puneet Mishra says:

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

  3. Paris says:

    Thank you very much for this.. great article

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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 *

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