Skip to content

Instantly share code, notes, and snippets.

@dlamichhane
Created October 1, 2013 19:56
Show Gist options
  • Save dlamichhane/6784142 to your computer and use it in GitHub Desktop.
Save dlamichhane/6784142 to your computer and use it in GitHub Desktop.
Install LAMP stack on Ubuntu
Install LAMP stack on unix
Followed this steps: http://www.howtoforge.com/ubuntu_lamp_for_newbies
Install Apache
1) sudo apt-get install apache2
Install php5
1) sudo apt-get install php5 libapache2-mod-php5
2) sudo /etc/init.d/apache2 restart
Install mysql
1) sudo apt-get install mysql-server
Install phpmyadmin
1) sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
To enable mysql in php
1) Go to /etc/php5/apache2/php.ini
2) Enable ;extension=mysql.so by doing extension=mysql.so
In the end restart apache2
1) sudo /etc/init.d/apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment