SH1R0_HACKER

[우분투 서버 - 웹 개발] 2-1. Ubuntu 20.04 LTS에 APM 설치 (요약) 본문

Web/웹 서버 개발

[우분투 서버 - 웹 개발] 2-1. Ubuntu 20.04 LTS에 APM 설치 (요약)

SH1R0_HACKER 2021. 1. 10. 18:33

sudo apt update

sudo apt upgrade


sudo apt install apache2

sudo systemctl enable apache2

apache2 -v


sudo chown www-data:www-data /var/www/html/ -R


sudo apt update

sudo apt install vsftpd

sudo gedit /etc/vsftpd.conf

 

 

anonymous_enable=NO

local_enable=YES

write_enable=YES (주석 해제)

local_umask = 022

dirmessage_enable=YES

chroot_local_user=YES

 

sudo service vsftpd restart


sudo apt install mariadb-server

systemctl status mariadb

sudo systemctl enable mariadb

sudo mysql_secure_installation

 

sudo mariadb -u root

exit;

mariadb --version


sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline

 

sudo systemctl restart apache2

php --version

 

sudo vi /var/www/html/phpinfo.php

<? php phpinfo (); ?> 입력하고 저장

 

sudo rm /var/www/html/phpinfo.php


sudo chown -R {소유권자}:{그룹식별자} /var/www