## Server:192.168.1.211
```
yum -y install httpd mariadb mariadb-server php php-cli php-pear php-pdo php-mysqlnd php-gd php-mbstring php-mcrypt php-xml
```
php-mysqlnd 是 PHP 源码提供的 MySQL 驱动连接库,从 PHP 5.3 开始替换了之前的 php-mysql 库
php-pdo 是提供应用程序层的 API 接口库文件
php-cli php-pear php-gd php-mbstring php-mcrypt php-xml 等都是 PHP 环境经常使用和依赖的库文件
安装完成后,在 /usr/lib64/httpd/modules 目录下生成 libphp5.so 模块,在 Apache 的配置文件目录中自动创建虚拟主机配置文件 /etc/httpd/conf.d/php.conf 和模块配置文件 /etc/httpd/conf.modules.d/10-php.conf
update user set password=PASSWORD("lamp")where user='root';
[root@server ~]# yum -y install httpd mariadb mariadb-server php php-mysql
[root@server ~]# systemctl stop firewalld
[root@server ~]# setenforce 0
[root@server ~]# systemctl start httpd mariadb
[root@server ~]# mysql_secure_installation
[root@server ~]# mysql -uroot -predhat
MariaDB [(none)]> create database discuz ;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> exit
Bye
[root@server ~]# cp -r DiscuzX/upload/* /var/www/html/
[root@server ~]# chown -R apache /var/www/html
- Linux Server
- 实用命令
- services
- Samba
- /etc/samba/smb.conf
- NFS
- Http
- httpd.conf
- lamp
- FTP
- /etc/vsftpd/vsftpd.conf
- ftp实例
- iSCSI
- SElinux
- DNS
- master
- slave
- subdomain
- 相关配置文件
- /etc/hosts
- /etc/resolv.conf
- /etc/named.conf
- /var/named/named.ca
- /var/named/named.localhost&named.loopback
- DHCP
- /etc/dhcp/dhcpd.conf
- mysql
- Redis
- Git
- HAProxy
- haproxy
- openssl
- nodejs