연구하는 인생/♣COMPUTER

lamp 설치

hanngill 2015. 4. 13. 17:51

http://howtoubuntu.org/how-to-install-lamp-on-ubuntu


sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php5 libapache2-mod-php5

sudo /etc/init.d/apache2 restart

Open a web browser and navigate to http://localhost/. You should see a message saying It works!


php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'


http://ubuntuserverguide.com/2014/06/how-to-install-lamp-in-ubuntu-server-14-04-lts.html

 

sudo apt-get update;

sudo apt-get install apache2;

sudo apt-get install libapache2-mod-auth-mysql

sudo apt-get install mysql-server mysql-client

sudo apt-get install php5-common php5 libapache2-mod-php5

sudo apt-get install php5-mysql

sudo /etc/init.d/apache2 restart

sudo /etc/init.d/mysql restart

(sudo reboot)
sudo gedit /var/www/phpinfo.php

sudo nano /var/www/phpinfo.php

<?php
phpinfo();
?>


firefox
http://localhost/phpinfo.php

확인
mysql -uroot -p