Last active
December 26, 2015 10:19
-
-
Save tcelestino/7136219 to your computer and use it in GitHub Desktop.
install mysql, apache and php on linux
This file contains 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
#INSTALLING MYSQL | |
sudo apt-get update | |
sudo apt-get dist-upgrade | |
sudo apt-get install mysql-server mysql-client | |
#optional | |
sudo mysqladmin -u root -h localhost password 'mypassword' | |
sudo mysqladmin -u root -h myhostname password 'mypassword' | |
#install php library | |
sudo apt-get install php5-mysql | |
mysql -u root -p | |
#INSTALLING APACHE | |
sudo apt-get install apache2 | |
sudo /etc/init.d/apache2 start #start apache | |
sudo /etc/init.d/apache2 stop #stop apache | |
sudo /etc/init.d/apache2 restart #restart apache | |
sudo update-rc.d apache2 defaults #restore default config | |
vim /etc/apache2/sites-enabled/000-default #edit config | |
#INSTALLING PHP | |
sudo apt-get install php5 | |
sudo apt-get install libapache2-mod-php5 | |
sudo /etc/init.d/apache2 restart #restart apache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment