WordPress 源代码,主题及插件如何安装?

WordPress 源代码,主题及插件如何安装?

备注: 第5步,第7步特别重要,否则容易失败

1. 把源代码上传到网站根目录并解压

null

2. 创建后台登陆账户

null

3. 安装主题

null
null

4. 出现FTP验证错误

null

5. 解决FTP验证错误

1
vi wp-config.php
1
2
3
4
if(is_admin()) {
    add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
    define( 'FS_CHMOD_DIR', 0751 );
}

null

6. 出现无权限错误

1
Unable to create directory wp-content/uploads/2023/04. Is its parent directory writable by the server?

null

7. 解决无权限错误

1
2
chmod -R 777 /home/wwwroot/default/zls/wp-content
chmod -R 777 /home/wwwroot/default/zls/wp-content/themes

null

8. 主题安装成功并激活

null
null

9.安装插件

null
null

备注:

1. 插件codecolorer使用教程:

1
https://www.bndstone.com/909.html

2. 主题Minimize换背景图:

1
/home/wwwroot/default/zls/wp-content/themes/Minimize/images/bg.png

Leave a Reply

Your email address will not be published. Required fields are marked *