How to install LAMP Linux Apache Mysql PHP on ubuntu 14.04 LTS

    To Install LAMP on Ubuntu 14.04 LTS Simply Type these commands
    Install Apache

    $: sudo apt-get update
    $: sudo apt-get install apache2

    Install Mysql

    $: sudo apt-get install mysql-server php5-mysql

    Secure mysql

    $: sudo mysql_install_db

    $: sudo mysql_secure_installation

    Choose options whatever you need

    Install PHP

    $: sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

    PHP File Configuration to select from directory

    $: sudo vi /etc/apache2/mods-enabled/dir.conf

    and paste

    <IfModule mod_dir.c>
        DirectoryIndex index.php index.html index.cgi index.xhtml index.htm

    Save and done

    Restart Apache

    $: sudo service apache2 restart
    No theory simple commands easy :)
    Average: 5 (1 vote)