LAMP 架构实现

14课时
447学过
8分

2. 实例:LAMP 搭建 PhpMyAdmin

3. 实例:CentOS7 编译 Php-xcache

4. 实例:LAMP 搭建 wordpress

5. 实验:centos7 上源码编译安装 LAMP 的多虚拟主机 wordpress,discuz

课程评价 (0)

请对课程作出评价:
0/300

学员评价

暂无精选评价
1分钟

前期准备

操作系统版本:CentOS7.5

PHP版本为:5.4.16

Httpd版本为:Apache2.4.6

数据库版本:mariadb-server-5.5.56

配置环境:

yum install httpd php mariadb-server php-mysql -y

启动相应服务

systemctl start httpd mariadb

为数据库设置root账号密码

mysqladmin -u root password “XXXXXXXX”

创建一个名为wordpress的数据库

mysql> create database wordpress;

下载wordpress

wget http://wordpress.org/latest.tar.gz

解压安装包

tar –zxf latest.tar.gz -C /var/www/html

注意wordpress目录权限

setfacl -R -m u:apache:rwx /var/www/html/wordpress

重启httpd服务

systemctl restart httpd

浏览器打开:http://192.168.30.10/wordpress

简单的进行一些配置,即可完成wordpress的搭建