개발모음집

ubuntu에서 apache+php+mysql 설치 본문

Server

ubuntu에서 apache+php+mysql 설치

void 2018. 6. 29. 10:00

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache2
sudo apt-get upgrade
sudo apache2ctl configtest

sudo nano /etc/apache2/apache2.conf //맨 아래에 "ServerName localhost" 추가
sudo systemctl restart apache2
sudo apt-get install mysql-server
sudo mysql_secure_installation
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql php-cli php-common php-mysql
vi /var/www/html/index.php // <?php echo phpinfo() ?>
sudo vi /var/www/html/index.php

참고 : brtech