certbot instructions
참고 사이트 : https://certbot.eff.org/instructions
For Apache on CentOS 7
[root@localhost ~]# yum install snapd [root@localhost ~]# systemctl start snapd [root@localhost ~]# snap install core; snap refresh core [root@localhost ~]# systemctl status snapd ● snapd.service - Snap Daemon Loaded: loaded (/usr/lib/systemd/system/snapd.service; disabled; vendor preset: disabled) Active: active (running) since 수 2023-03-15 17:58:59 KST; 6min ago [root@localhost ~]# systemctl restart snapd [root@localhost ~]# snap install --classic certbot error: cannot install "certbot": classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap [root@localhost ~]# ln -s /var/lib/snapd/snap /snap [root@localhost ~]# snap install --classic certbot Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you've not restarted your session since you installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469 for more details. certbot 2.4.0 from Certbot Project (certbot-eff✓) installed
Apache, MariaDB, PHP 설치
[root@localhost ~]# yum install httpd [root@localhost ~]# yum install libjpeg* libpng* freetype* gd-* gdbm-devel libtermcap-devel pcre-devel mod_ssl MPM 유형 확인 [root@localhost ~]# apachectl -V | grep MPM [root@localhost ~]# vi /etc/httpd/conf.modules.d/00-mpm.conf # MPM 유형 이벤트 모듈로 변경 LoadModule mpm_event_module modules/mod_mpm_event.so [root@localhost ~]# apachectl -V | grep MPM Server MPM: event [root@localhost ~]# httpd -v Server version: Apache/2.4.6 (CentOS) Server built: Jan 27 2023 17:36:29 [root@localhost ~]# firewall-cmd --permanent --zone=public --add-service=http [root@localhost ~]# firewall-cmd --permanent --zone=public --add-service=https [root@localhost ~]# firewall-cmd --reload [root@localhost ~]# systemctl start httpd [root@localhost ~]# systemctl status httpd [root@localhost ~]# systemctl enable httpd [root@localhost ~]# vi /etc/yum.repos.d/MariaDB.repo # MariaDB 10.11 CentOS repository list - created 2023-03-15 08:21 UTC # https://mariadb.org/download/ [mariadb] name = MariaDB # rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details. # baseurl = https://rpm.mariadb.org/10.11/centos/$releasever/$basearch baseurl = https://tw1.mirror.blendbyte.net/mariadb/yum/10.11/centos/$releasever/$basearch module_hotfixes = 1 # gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB gpgkey = https://tw1.mirror.blendbyte.net/mariadb/yum/RPM-GPG-KEY-MariaDB gpgcheck = 1 [root@localhost ~]# chcon system_u:object_r:system_conf_t:s0 /etc/yum.repos.d/MariaDB.repo [root@localhost ~]# yum list | grep Maria [root@localhost ~]# yum install MariaDB-server MariaDB-client