2023年2月7日火曜日

CentOS Stream9でPHP8.1, mysql8.0, apache2を入れる

sudo yum install epel-release
sudo yum install fail2ban


dnf -y install httpd
systemctl enable httpd
systemctl start httpd


dnf module list php
dnf module install php -y


yum install php-fpm php-cli php-pdo php-mysqlnd php-mbstring

systemctl enable php-fpm
systemctl start php-fpm



dnf localinstall https://dev.mysql.com/get/mysql80-community-release-el8-3.noarch.rpm -y
dnf module disable mysql
dnf install mysql-community-server -y

systemctl enable mysqld
systemctl start mysqld

#=== mysql PW check
head -n 5 /var/log/mysqld.log

mysql_secure_installation

firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --reload


0 件のコメント:

コメントを投稿