0%

WordPress搭建

WordPress搭建

debian下搭建WordPress

安装Apache2

参考Apache服务器安装,配置HTTPS

安装Mariadb

# apt install mariadb-server

# mysql_secure_installation

安装PHP

# apt install php

安装WordPress

下载

$ wget https://wordpress.org/latest.tar.gz

解压

$ tar -zxvf ./lastest.tar.gz

复制到Web目录

$ cp -R ./wordpress/* /var/www/html/

安装

访问 https://yourdomain/wp-admin/install.php`

WordPress安装至此已完成。

后续步骤:

安装PHP插件

访问站点健康页,可以看到缺少的php插件。

通过$ apt install php-插件名 进行安装

配置SMTP

访问插件页 https://yourdomain/wp-admin/plugins.php

安装并启用WP Mail SMTP插件

按照向导配置SMTP,邮箱密码可能需要生成应用专用密码。

允许上传头像

安装Simple Local Avatars插件。

禁用图片压缩

安装Disable “BIG image” Threshold插件。