How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

[this post will be properly edited]

sudo apt-get update
sudo apt-get install apache2
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation # you can just say yes to all options
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
sudo nano /etc/apache2/mods-enabled/dir.conf # Add index.php to the beginning of index files
sudo service apache2 restart

Leave a Reply

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