Created
October 1, 2013 19:56
-
-
Save dlamichhane/6784142 to your computer and use it in GitHub Desktop.
Install LAMP stack on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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