SH1R0_HACKER
[우분투 서버 - 웹 개발] 2-1. Ubuntu 20.04 LTS에 APM 설치 (요약) 본문
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
'Web > 웹 서버 개발' 카테고리의 다른 글
[우분투 서버 - 웹 개발] 1. Ubuntu 18.04 LTS + APM 설치 (0) | 2021.01.11 |
---|---|
[우분투 서버 - 웹 개발] 2. Ubuntu 20.04 LTS에 APM 설치 (0) | 2021.01.09 |
[우분투 서버 - 웹 개발] 1. Ubuntu 20.04 LTS 설치하기 (0) | 2021.01.09 |