Skip to content

Instantly share code, notes, and snippets.

@theamith
Created February 28, 2013 12:16
Show Gist options
  • Save theamith/5056338 to your computer and use it in GitHub Desktop.
Save theamith/5056338 to your computer and use it in GitHub Desktop.
Install LAMP in ubuntu
1. sudo apt-get install tasksel
2. sudo tasksel
3. Select LAMP Server and Click OK.
4. Enter mysql root password (say admin)
5. sudo vi /var/www/info.php --> Open info.php in vi editor
6. Add the following content to info.php file and save and exit:
<?php
phpinfo();
?>
7. sudo /etc/init.d/apache2 restart --> restart Apache
8. Open http://ip/info.php or http://localhost/info.php in browser.
9. sudo apt-get install phpmyadmin --> to install php myadmin.
10. Open http://ip/phpmyadmin or http://localhost/phpmyadmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment