systemctl disable firewalld && systemctl stop firewalld
##selinux disabled하기
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
localectl set-locale LANG=ko_KR.utf8
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-Extras.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-HighAvailability.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-NFV.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-Plus.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-PowerTools.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-RT.repo
sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-ResilientStorage.repo
####디폴트 환경변수####
echo " " >> /etc/profile
echo "####default PATH#####" >> /etc/profile
echo "export PATH=/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin" >> /etc/profile
echo "#####################" >> /etc/profile
echo "" >> /etc/bashrc
echo "alias vi='vim'" >> /etc/bashrc
echo "" >> /etc/bashrc
dnf install -y https://repo.codeit.guru/codeit-repo-release.el8.rpm epel-release
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf install -y yum-utils
rpm -Uvh https://repo.codeit.guru/codeit-repo-release.el8.rpm
rpm -Uvh https://repo.codeit.guru/codeit.el8.repo
dnf module list httpd
dnf module list php
dnf module reset -y httpd
dnf module enable -y httpd:codeit
dnf install -y httpd*
httpd 오류 수정
sed -i "s/SSLCertificateFile \/etc\/pki\/tls\/certs\/localhost.crt/#SSLCertificateFile \/etc\/pki\/tls\/certs\/localhost.crt/g" /etc/httpd/conf.d/ssl.conf
sed -i "s/SSLCertificateKeyFile \/etc\/pki\/tls\/private\/localhost.key/#SSLCertificateKeyFile \/etc\/pki\/tls\/private\/localhost.key/g" /etc/httpd/conf.d/ssl.conf
MPM event -> prefork 로 변경하기
sed -i "s/LoadModule mpm_event_module modules\/mod_mpm_event.so/#LoadModule mpm_event_module modules\/mod_mpm_event.so/g" /etc/httpd/conf.modules.d/00-mpm.conf
sed -i "s/#LoadModule mpm_prefork_module modules\/mod_mpm_prefork.so/LoadModule mpm_prefork_module modules\/mod_mpm_prefork.so/g" /etc/httpd/conf.modules.d/00-mpm.conf
'WEB & WAS > Apache' 카테고리의 다른 글
CentOS 7 httpd 패키지 업그레이드 (0) | 2023.04.19 |
---|---|
Apache SSL 인증서 비밀번호 자동입력하기 (0) | 2023.03.26 |
Apache 파일 목록 숨기기 (0) | 2023.03.24 |
Apache 기본페이지 설정 및 디렉토리 리스팅 설정 (0) | 2023.03.12 |
Apache mod_url 설정 (0) | 2023.03.12 |
댓글