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