WordPress

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(社交网络)
(插件)
第70行: 第70行:
 
==插件==
 
==插件==
 
[https://wordpress.org/plugins WordPress Plugins]
 
[https://wordpress.org/plugins WordPress Plugins]
 +
*[https://www.tipsandtricks-hq.com/list-of-the-best-and-must-use-wordpress-plugins-535 List of the Best and Must Use WordPress Plugins]
  
 
===LMS===
 
===LMS===

2021年1月17日 (日) 01:23的版本

Wordpress-90x90.png

WordPress是一个使用PHP语言开发的博客平台,用户可以在支持PHP和MySQL数据库的服务器上架设自己的博客,也可以把 WordPress 当作一个内容管理系统(CMS)来使用。

目录

简介

新闻

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 WordPress Thanks, Wikipedia.

自http://wordpress.org/news/feed/加载RSS失败或RSS源被墙

版本

WordPress Releases Roadmap

每个小版本都有分支,如:5.6 Branch、5.5 Branch、4.9 Branch、4.8 Branch ...

6.x

6.0 将于2021年12月发布

5.x

WordPress 5.6 “Simone”

4.x

WordPress 4.9.8 Maintenance Release

3.x

菜单管理
新的默认主题:"Twentyten"

WordPress 3.0“Thelonious”正式版发布

指南

创建数据库

mysqladmin -u root -p create wordpress 或
mysql>create database wordpress;
mysql>GRANT ALL PRIVILEGES ON wordpress.* TO wordpress@localhost IDENTIFIED BY 'wordpress';
mysql>flush privileges;

设置 wp-config.php

cp wp-config-sample.php wp-config.php
// ** MySQL settings ** //
define('DB_NAME', 'wordpress');     // The name of the database
define('DB_USER', 'wordpress');     // Your MySQL username
define('DB_PASSWORD', 'wordpress'); // ...and password
define('DB_HOST', 'localhost');     // 99% chance you won't need to change this value
运行安装向导,完成后续安装
http://localhost/wordpress/wp-admin/install.php

在线演示

前端:http://demo.huihoo.com/wordpress/
后台:http://demo.huihoo.com/wordpress/wp-login.php
普通用户: guest/guest
管理员: admin/admin

安装多个WordPress实例

新建一个管理员, 参考User Levels

INSERT INTO `wordpress`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`,
`user_activation_key`, `user_status`, `display_name`) VALUES ('2', 'admin', MD5('admin'), 'admin', '[email protected]', 
'http://www.huihoo.com/', '2020-06-07 00:00:00', , '0', 'admin');
INSERT INTO `wordpress`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '2', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');
INSERT INTO `wordpress`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '2', 'wp_user_level', '10');

Nginx

Nginx Configure Nginx How to Install WordPress with Nginx on Debian 10

Apache2

How to Install WordPress with Apache2 and Let’s Encrypt SSL/TLS Certificates on Ubuntu 16.04 | 18.04

Lighttpd

wp rewrite

插件

WordPress Plugins

LMS

电子商务

支付

ERP/CRM

论坛

社交网络

At BuddyDev We help you build Great Communities with WordPress & BuddyPress!

社交集成

Social Share, Social Login and Social Comments

媒体管理

文档知识库

编辑器

block-based editor、网站构建

营销类

订阅/邮件

系统/安全

SaaS/Cloud

WordPress cloud 多租户、备份、存储和安全是主要形式

维护

因为 WordPress 会被很多拉圾 comment 侵袭, 所以要定期情理一下数据库, 但一定要小心操作.

delete from wp_comments where comment_post_ID = 33;    
delete from wp_comments where comment_post_ID = 33 and comment_ID ! = 20; 
delete from wp_comments where comment_post_ID = 60 and comment_ID != 20 and comment_ID !=21;

wordpress/wp-content/uploads/php.log 会不断产生日志,我 echo > php.log 后,回收了近1.4G的空间。 (2012.06.13)

升级

升级到 2.1
For all upgrade paths, such as 1.5.2 to 2.1, or 2.0, 2.0.1, 2.0.2, or 2.0.3, 2.0.4, 2.0.5, 2.06, and  2.0.7 to 2.1, 
http://codex.wordpress.org/Upgrading_WordPress#How_to_Upgrade_in_Five_Steps
Step 1: Backup Database Tables and Files including .htaccess
Step 2: Deactivate Plugins
Step 3: Overwrite Files
这一步我们没有采用删除文件的方式,而是采用安装新版 WordPress 的方式, 将老版本的 wp-config.php copy过来,
Step 4: Run the upgrade script
然后运行新版本的update, 完成升级。这样做的风险比较小。老版本也能运行,这样可以在新版本上根据老版本一点点修改。
Step 5: Reactivate Plugins one by one

升级出错:

WordPress database error: [Unknown column 'user_nickname' in 'field list']
SELECT ID, user_nickname, user_nicename FROM wp_users

处理方式:

alter table wp_users add column user_nickname varchar(250);

Fatal error: Cannot access empty property in wordpress/wp-admin/upgrade-functions.php on line 646

Edit wp-admin/upgrade-functions.php, and edit this line (around line 646):

$all_options->{$option->option_name} = stripslashes($option->option_value);
To read:
if ($option->option_name) $all_options->{$option->option_name} = stripslashes($option->option_value);

返回可登录进入Admin, 也可能包含以下错误:

WordPress database error: [Table 'wordpress.wp_linkcategories' doesn't exist] SELECT cat_id, cat_name FROM wp_linkcategories

2.5到2.8.2

准备从2.5 Update to 2.8.2

还是采用逐步升级的方式:

2.5.1 -> 2.6

2.6 -> 2.7

2.7 -> 2.8.2

2.1到2.5

从2.1升级到2.5, 目前 http://blogs.huihoo.com 使用的是2.1的wordpress, 而最新版是2.5,中间有2.1.1, 2.1.2, 2.1.3, 2.2, 2.2.1, 2.2.2, 2.2.3, 2.3, 2.3.1, 2.3.2, 2.3.3 版本,我们将采取覆盖老版本、逐步升级的策略。

2.1 -> 2.1.3 OK:)

2.1.3 -> 2.2 OK:)

2.2 -> 2.2.3 OK:)

2.2.3-> 2.3 OK:)

2.3 -> 2.3.3 OK:)

2.3.3 -> 2.5 OK:)

终于从 2.1 升级到 2.5

WordPress MU

Wikipedia-35x35.png 您还可以在维基百科上了解到此条目的中文信息 WordPress 感谢, 维基百科.

WordPress MU : WordPress的多用户版

安装完成后,用 admin登录,

可打开数据库,修改 admin 的密码
update wp_users set user_pass="1a1dc91c907325c69271ddf0c944bc72" where ID=1;
这个是pass的md5值,因此
用 admin/pass 就可以登录成功 :)

WordPress MU on Lighttpd

WordPress MU 会为每个用户建立单独使用的一套表,如 id=1, id=2 的用户

| wp_1_categories     |
| wp_1_comments       |
| wp_1_link2cat       |
| wp_1_links          |
| wp_1_options        |
| wp_1_post2cat       |
| wp_1_postmeta       |
| wp_1_posts          |
| wp_2_categories     |
| wp_2_comments       |
| wp_2_link2cat       |
| wp_2_links          |
| wp_2_options        |
| wp_2_post2cat       |
| wp_2_postmeta       |
| wp_2_posts          |

项目

开发者

Current Team Reps

服务商

  • WPEngine The world’s #1 managed WordPress hosting platform.
  • BuddyDev We help you build Great Communities with WordPress & BuddyPress!

书籍

WordPress 2 Visual Quickstart Guide.jpg

Paperback: 304 pages

Publisher: Peachpit Press; 1ST edition (June 29, 2006)

Language: English

ISBN: 0321450191

案例

WordPress Website Showcase

图集

链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱