1. web서버 만들기- APM설치
2017.06.22 11:18
APM(Apache-PHP-Mysql) 설치 APM install
1. apache2 install
# sudo apt-get install apache2
# sudo apt-get upgrade
1-1. apache configtest
# sudo apache2ctl configtest
if you see the error message,
AH00558 : apache2: Could not reliably determine the server’s fully qualified domain name, using::1. Set the ‘ServerName’ directive globally to suppress this message.
Syntex OK
1-2. apache config modify
#sudo nano /etc/apache2/apache.conf
insert domain add or IP add in down of file.
ServerName lbr.kr←--임의로 넣자
and config test again
if you see only Syntax OK → you are su
<--------?
2. Mysql install
#sudo apt-get install mysql-server
#sudo mysql_secure_installation
secure enough, Would you like to setup VALIDATE PASSWORD plugin? N
Remove anonymous users?n
Disallow root login remotely? : y
Remove test database and access to it :n
reload privilege tables now? :y
3. php install
#sudo apt-get install php.libapache2-mod-php php-mcrypt php-mysql php-cli php-common php-mysql
# vi /var/www/html/index.php
insert code : <?php echo phpinfo()?>
localhost/index.html 접속