记录阿里云ECS搭建Wordpress(Centos7+LAMP)

 

 

占位

改变wordpress文件夹属主属组

cd /var/www/html
chown -R apache:apache wordpress

  

<VirtualHost *:80>
DocumentRoot "/var/www/wordpress"
ServerName      www.mywordpress.com
        <Directory "/var/www/wordpress">
        AllowOverride None
        Require all granted
        </Directory>
</VirtualHost>

设置mysql

# 登录数据库
mysql -u root -p
# 创建数据库
CREATE DATABASE wordpress;
# 创建数据库用户和密码
CREATE USER wpuser@localhost IDENTIFIED BY 'wordress_password';
# 设置wordpressuser访问wordpress数据库权限
GRANT ALL PRIVILEGES ON wordpress.* TO wpuser@localhost IDENTIFIED BY 'wordress_password';
# 刷新数据库设置
FLUSH PRIVILEGES;
# 退出数据库
exit

 

https://blog.csdn.net/qq_35723367/article/details/79544001

 

posted @ 2019-08-08 01:02  豆浆D  阅读(412)  评论(0编辑  收藏  举报