httpdの有効化
sudo systemctl start httpd.service sudo systemctl enable httpd.service
Firewallに穴を空ける
sudo firewall-cmd --add-service=http --zone=public --permanent sudo firewall-cmd --add-service=https --zone=public --permanent sudo firewall-cmd --reload
httpd設定
sudo nano /etc/httpd/conf/httpd.conf
Options All -Indexes +SymLinksIfOwnerMatch -FollowSymLinks AllowOverride AuthConfig FileInfo Indexes Limit Options=MultiViews,Ind
PHP7.4インストール
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo yum install https://rpms.remirepo.net/enterprise/remi-release-8.rpm sudo dnf install dnf-utils sudo dnf module install php:remi-7.4 sudo nano /var/www/html/test.php
<?php phpinfo(); ?>
Webブラウザで確認しておく。
コメントを残す