让 Wordpress 2.2 工作在 SQLite 平台
版权声明: 允许非商业性转载,但转载时必须标明原作者 fcicq、原始链接 http://www.fcicq.net/wp/?p=521 及本声明。
链接已失效, 只维护英文版本的文章.
English: Get WordPress 2.2 working with SQLite
原始(For Wordpress 2.0 Only)
源码以 GPL 协议发布.
环境要求:
运行中的 PHP 安装. 有 SQLite 支持
(暂不支持 PDO_SQLite)
运行情况:
基本上都能工作吧 ![]()
安装:
Step 1: 下载,解压.
(国内用户请翻越伟大功夫墙访问.)
Step 2: 修改 wp_config.php (已经内置)
define('DB_FILE', '/var/www/htdocs/wordpress.db'); // The full path of the database
//make sure the directory and the file is **writeable** by the web server
数据库请用绝对路径.
确认目录和文件可写(CHMOD 777)
Step 3: Have fun.
像这样的错误你可以忽略掉.
Warning: mysql_get_server_info() [function.mysql-get-server-info]: …
Warning: Cannot modify header information – headers already sent by …
已知问题:
1 blogroll 删除链接时, 提示 “Something strange happened. Try refreshing the page.”
后续版本支持:
(the patch file)
把db.php 复制到 wp-content
关闭非必须的 mysql 版本检查
文件名: wp-admin/upgrade-function.php
查找: (wp 2.2.1,in line 1103)
function wp_check_mysql_version() {
return; //加上这一行
如果有问题(如果能够工作则更好)请留言.
友情提示: 请注意文章的时效性与准确性, 作者不对文章的有效性负责.
Tags: php, sqlite
Permalink Bookmark on del.icio.us
Last Modified: April 22, 2008 at 6:54 pm
虎哥作坊 said,
September 12, 2007 @ 17:32
收下,抽空用用,没办法我的空间的php不支持mySql
cwexe said,
January 2, 2008 @ 17:37
很好~用到了~感谢^^
会更新到2.3.2的wordpress吗?
fcicq said,
January 2, 2008 @ 20:44
有空或许就会更新,不过现在不行
ben said,
February 1, 2008 @ 17:06
有人在万网II型空间上部署成功过吗?安装的时候一直Internal Server Error,郁闷
桔子 said,
April 21, 2008 @ 22:48
好东西哦,可惜穿不了墙,发到我邮箱好吗