[Ubuntu]
apache2 설치
1. sudo apt-get install apache2
2. apache2 -v
3. netstat -ntlp
- 80 포트 확인
php 설치
1. sudo apt-get install php php-pear php-fpm php-cli php-gd php-curl libapache2-mod-php php-json -y
========================================================================================
[Rocky Linux]
1. yum install httpd
2. httpd -v
3. 방화벽
firewall-cmd --permanent --add-port=80/tcp
firewall-cmd --permanent --add-port=443/tcp
firewall-cmd --reload
firewall-cmd --list-all
4. 확인
systemctl restart httpd
5. php
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf -y install yum-utils
dnf module reset php
dnf module install php:remi-8.3
dnf module install php:remi-8.3
dnf update
'PHP' 카테고리의 다른 글
[PHP] phpinfo 코드가 주석처리되어 함수실행이 되지 않을 때 (0) | 2023.05.22 |
---|