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.pl index.xhtml index.htm
    </IfModule>

    Save and done

    Restart Apache

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