1.安装Apache
切换到root用户:su
dnf install httpd -y启动httpd服务,以在每次系统启动服务:
systemctl enable httpd使用以下命令来启动httpd服务:
systemctl start httpd
2.安装 MariaDB
dnf install mariadb mariadb-server -y随系统自动启动命令:
systemctl enable mariadb启动数据库服务器:
systemctl start mariadb
3.安装php
dnf install php -y
重启 Http 服务:
systemctl restart httpd
4.安装php模块
搜索模块:
dnf search php安装模块:
dnf install 【模块名】 -y

 
  
  
  
 
 
  
 
 
 