dnf update -y
dnf install -y httpd
systemctl start httpd
systemctl enable httpd
systemctl status httpd
なお 設定ファイルは /etc/httpd/conf/httpd.conf にあります。
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
firewall-cmd --list-all
dnf module list php
dnf -y install epel-release
dnf -y install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
dnf clean all && dnf -y makecache
dnf -y module reset php && dnf -y module enable php:remi-8.2
dnf -y install php php-cli php-fpm php-devel php-pear php-curl php-mysqlnd php-gd php-opcache php-zip php-intl php-common php-bcmath php-imagick php-xmlrpc php-json php-readline php-memcached php-redis php-mbstring php-apcu php-xml php-dom php-redis php-memcached php-memcache php-process
vi /var/www/html/p.php
<?php
phpinfo();
?>
http://192.168.1.28/p.php などにアクセスして正しく表示されることを確認します。
dnf -y install mysql-server mysql
systemctl start mysqld
systemctl enable mysqld
systemctl status mysqld
ifconfig をインストールする
dnf install net-tools
ifconfig
SSH接続する
ssh root@<IPアドレス>