首先安装LAMP
Centos 7 安装LAMP并配置event MPM和FastCGI
[/centos-7-an-zhuang-lampbing-pei-zhi-event-mpmhe-fastcgi/]
以下假设wordpress安装在/opt/wordpress下
创建安装文件夹
sudo mkdir /opt/wordpress
sudo chown -R `whoami`:`whoami` /opt/wordpress
准备数据库
mysql -u root -p
输入MySQL的ROOT密码
CREATE DATABASE 数据库名;
CREATE USER 用户名@localhost IDENTIFIED BY '用户密码';
GRANT ALL PRIVILEGES ON 数据库名.* TO 用户名@localhost IDENTIFIED BY '用户密码';
FLUSH PRIVILEGES;