EC2 인스턴스
Amazon Linux 2 AMI (HVM), SSD Volume Type - 64bit(x86)
Port : 22, 80
내부 ROOT 폴더
/data/subs_admin
# mkdir /data/ # mkdir /data/subs_admin # chown ec2-user:ec2-user /data/subs_admin/ |
apache + php 설치
yum -y update sudo amazon-linux-extras install php7.3 sudo yum install -y httpd systemctl enable httpd |
apache + php 연동
vi /etc/httpd/conf/httpd.conf
1.
163 <IfModule dir_module> 164 DirectoryIndex index.html index.php 165 </IfModule> |
2.
해당 버전 오류가 발생함
|
apache + CI 연동
vi /etc/httpd/conf/httpd.conf
119 DocumentRoot "/data/subs_admin" 124 <VirtualHost *:80> 125 DocumentRoot /data/subs_admin 126 ServerName adm.com 127 </VirtualHost> 128 <Directory "/data/subs_admin"> 129 Options FollowSymLinks 130 AllowOverride All 131 #Require all denied 132 Require all granted 133 </Directory> 134 <Directory /data/subs_admin/uploads/> 135 LimitRequestBody 1000000000 136 </Directory> |
vi /etc/php.ini
197 short_open_tag = On |
서버 재시작
댓글