How to install LAMP on Ubuntu

  1. Install Apache webserver: sudo apt-get install apache2
  2. Install MySQL database server: sudo apt-get install mysql-server
  3. Install PHP: sudo apt-get install php5 libapache2-mod-php5 php5-mysql
  4. Install phpmyadmin: sudo apt-get install phpmyadmin
  5. Turn on the Apache module rewrite: sudo a2enmod rewrite
  6. Edit /etc/apache2/sites-available/default to enable .htaccess processing (set AllowOverride to All)
  7. Restart Apache: sudo /etc/init.d/apache2 restart
  8. sudo apt-get install ufw
  9. sudo ufw allow 22
  10. sudo ufw allow 80
  11. sudo ufw enable


Popular posts from this blog

How to get Active Transactions and Locks from MySQL

Example of a PAC file