如何在 Windows XP 上安装 WordPress 本地测试
June 25th, 2007 at 03:37pm 剑指天下 浏览: 13,581
文章翻译自 Installing WordPress Locally Under Windows XP 由 剑指天下 测试并校订。
近几周,Denis 给大家分享了不少如何创建属于自己的 WordPress 主题,但是我们大部分用户都是在网络上的 BLOG 上来做测试,速度相对来说很慢,而且也不容易修改代码。这里给大家简单的讲一下如何在 Windows XP 系统上安装 WordPress 来做本地测试。
首先,你必须有一个基于Apache、MySQL、PHP的编程调试环境。我们推荐使用 XAMPP LITE,可以从下面的链接下载。
下载 XAMPP LITE
将 XAMPP LITE 安装好以后,打开服务器,将 Apache 和 MySql 两个服务打开。如下图所示。

下载最新版的 WordPress ZIP 文件夹,解压并存放在 C:\xampp\htdocs 目录下。
当你第一次使用 WordPress 的时候由于你并没有创建与 BLOG 相配套的数据库,所以会产生错误。我们所需要做的就是在浏览器上输入:http://localhost/phpmyadmin/。进入数据库管理界面。选择 utf8_unicode_ci 和 utf8_general_ci 作为数据库格式,数据库名可以自定义。
在网页上打开 http://localhost/wordpress/。当你第一次使用 WordPress 的时候由于你并没有创建与 BLOG 相配套的数据库,所以会产生错误,我们所要做的就是点击 create a wp-config.php file 链接,然后根据后面的步骤继续创建数据库。
创建好 CONFIG 文件以后,你可以继续输入 BLOG 的名称和自己的 EMAIL 地址,随后系统会自动为默认的 BLOG 管理员 ADMIN 分配一个初始密码。用户登录以后可以自行修改。
至此,您的 WORDPRESS 个人 BLOG 创建成功了,接下来的就是您自己体验 WORDPRESS 了。
作者:剑指天下
原文链接:如何在 Windows XP 上安装 WordPress 本地测试
我爱水煮鱼版权所有,转载时必须以链接形式注明作者和原始出处及本声明。
65 条评论 添加你的评论
Trackbacks / Pingbacks
- 本机安装wordpress程序 | 内心世界是孤寂的荒野
- [转载] WP Theme 教程 #3:开始 Index.php 于 A9EX
- 修改主题 | 乱世浮生
- 行者无疆-UUCC.CC » 本地备份博客全部数据(wordpress2.5)





1. 雪山飞猪 | June 25th, 2007 at 4:03 pm
帮你补充一点:
phpMyAdmin(简称PMA)是一个用PHP编写的,可以通过互联网在线控制和操作MySQL。他是众多MySQL管理员和网站管理员的首选数据库维护工具,通过phpMyAdmin可以完全对MySQL数据库进行操作。
[回复该留言]
2. 剑指天下 | June 25th, 2007 at 4:05 pm
谢谢 Denis !
[回复该留言]
3. Andor | June 25th, 2007 at 4:05 pm
不如easyphp好用
[回复该留言]
4. chenchen | August 4th, 2007 at 6:13 pm
不知道爲什麽,就是不能運行apache,刪了重裝也不行。知道可能的障礙是什麽嗎?
[回复该留言]
433或80 端口 占用,
你是不是启动了迅雷,关了就好了
[回复该留言]
我关了,它也run不起来..
[回复该留言]
5. 雪山飞猪 | August 5th, 2007 at 3:02 pm
to chenchen
请安装 XAMPP 完整版。我装的是这个版本
[回复该留言]
6. chenchen | August 5th, 2007 at 3:09 pm
完整版是什麽意思。不是你上面文章中給出的那個鏈接版本嗎?
如果這樣,我看看先。
謝謝。^^
[回复该留言]
7. 雪山飞猪 | August 5th, 2007 at 3:10 pm
上面说的是 XAMPP LITE 版本
[回复该留言]
8. Jacky | August 5th, 2007 at 10:26 pm
网站上有一个叫Add-Ons的版本是什么意思?
[回复该留言]
9. 雪山飞猪 | August 5th, 2007 at 10:34 pm
Add-ons 是附加的意思
这里就是 XAMPP 附件的意思,和 WordPress 一样是插件的意思!
[回复该留言]
10. lyons | August 17th, 2007 at 2:34 pm
但我无法进入http://localhost/phpmyadmin/,显示“无法载入 mysql 扩展,请检查 PHP 配置”
[回复该留言]
11. 雪山飞猪 | August 17th, 2007 at 2:39 pm
hoho,你是怎么安装的?
[回复该留言]
12. lyons | August 17th, 2007 at 2:42 pm
1.将 XAMPP LITE 安装好以后,打开服务器,将 Apache 和 MySql 两个服务打开
2.下载WordPress ZIP 文件夹,解压并存放在 C:\xampp\htdocs 目录下
[回复该留言]
13. 雪山飞猪 | August 17th, 2007 at 2:54 pm
安装完全版吧!
[回复该留言]
14. lyons | August 17th, 2007 at 2:57 pm
好的,谢谢!我试试
[回复该留言]
15. rink | August 26th, 2007 at 12:46 pm
我在安装的时候,出现这个问题:
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\wordpress\wp-admin\setup-config.php:23) in C:\xampp\htdocs\wordpress\wp-includes\wp-db.php on line 373
怎么回事呢?
[回复该留言]
16. 雪山飞猪 | August 26th, 2007 at 1:01 pm
第一数据库的帐号,密码和地址对吗?
还有你是不是手工修改 wp-config.php 文件了?
[回复该留言]
17. rink | August 26th, 2007 at 1:14 pm
第一数据库的帐号,密码和地址对吗?
怎么理解? 我是先设置帐号、密码、地址,然后点下一步就出现那样的提示。
我的qq 18733111
[回复该留言]
18. 雪山飞猪 | August 26th, 2007 at 1:19 pm
如果也是用 XAMPP 整合的话,没有修改过 MySQL 帐号和密码,默认的情况是 帐号:root 密码为空,地址为:localhost,这里不是教你去设置,还是要你根据你数据库实际的情况来填!
[回复该留言]
19. rink | August 26th, 2007 at 1:48 pm
按照你说的,弄好了。谢谢!
[回复该留言]
20. 雪山飞猪 | August 26th, 2007 at 1:55 pm
不用谢,有问题可以给我们留言,也欢迎你订阅我们的博客!嘻嘻
[回复该留言]
21. Laowu | August 31st, 2007 at 10:53 am
只能设置数据库用户为root,密码为空,才不报错。
[回复该留言]
22. this | September 18th, 2007 at 10:04 pm
你好~我请教一下,我装了xampp lite之后,Mysql可以running但是Apache后面没显示running,下面提示Apache started,busy…然后再地址栏输入localhost也无法显示网页,不知为何。另外在没有运行Mysql和Apache之前,打开control panel下面就提示warning:directory mismatch,我是把它装在c盘根目录之下。恳求解答~谢谢~~~
[回复该留言]
23. this | September 18th, 2007 at 10:06 pm
我安装的是xampp lite,在controll panel 里打开之后就看到下面写道warning:directory mismatch,然后我把Apache和Mysql都start了,Mysql后面写了running,也提示了Apache started了,但是之后我打开localhost都不行,以至于不能进一步设置wordpress,请教!
在Apache之后没有写running,是否是这个原因造成的?我点了它后面的start但是有时无反应,只是在下面提示Apache
started Busy。。。有时apache后面出现了一下子running又很快消失。
[回复该留言]
24. this | September 18th, 2007 at 10:09 pm
不好意思……重发了一遍……
[回复该留言]
25. 雪山飞猪 | September 18th, 2007 at 10:39 pm
@ this,碰到这样的问题,安装完全版本就可以了!
[回复该留言]
26. mini_at | September 28th, 2007 at 10:08 pm
http://localhost/wordpress
这个打不开了,怎么办
[回复该留言]
你没启动apache 吧~
[回复该留言]
27. Persehone | November 26th, 2007 at 12:05 pm
还是不会设置数据库!
datebasename
User Name
Password
Datebase Host
Table prefix
这些都是自己设定的吗?为什么不对呢?
[回复该留言]
28. Persehone | November 26th, 2007 at 12:15 pm
呵呵,刚刚解决了自己的问题,所以自问自答吧,免得那么小儿科的问题都来麻烦高手,有点汗颜哦!
datebasename:可以自定义的名字
User Name:root
Password:密码为空,看到楼上有人这么说,正是指这里
Datebase Host:localhost
Table prefix:wp_
基本上除了前三项要修改,后两项都是默认的!
[回复该留言]
29. We | December 21st, 2007 at 1:05 am
文章里面那个不是完整版本吗?
[回复该留言]
30. We | December 21st, 2007 at 3:42 am
安装的时候告诉我80或者443端口已经被使用了,无法启动Apache服务,请问怎么更改默认端口?
[回复该留言]
关了就可以了
[回复该留言]
31. We | December 21st, 2007 at 3:58 am
我知道怎么改端口了,可是改完端口之后点strat还是显示busy,还是无法启动。请问我该怎么办?
[回复该留言]
32. We | December 21st, 2007 at 4:06 am
顺便补充一下,我的系统是家庭版本的XP,不知道有没有关系,下面是error.log里面的内容,站长如果有空的话请帮忙看一下,不胜感激!
[Fri Dec 21 03:45:02 2007] [notice] Apache/2.2.6 (Win32) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.4 configured — resuming normal operations
[Fri Dec 21 03:45:03 2007] [notice] Server built: Sep 21 2007 00:29:38
[Fri Dec 21 03:45:03 2007] [notice] Parent: Created child process 3912
[Fri Dec 21 03:45:04 2007] [notice] Child 3912: Child process is running
[Fri Dec 21 03:45:04 2007] [notice] Child 3912: Acquired the start mutex.
[Fri Dec 21 03:45:04 2007] [notice] Child 3912: Starting 250 worker threads.
[Fri Dec 21 03:45:04 2007] [notice] Child 3912: Starting thread to listen on port 443.
[Fri Dec 21 03:45:04 2007] [notice] Child 3912: Starting thread to listen on port 8080.
[Fri Dec 21 03:47:17 2007] [notice] Parent: Received shutdown signal — Shutting down the server.
[Fri Dec 21 03:47:17 2007] [notice] Child 3912: Exit event signaled. Child process is ending.
[Fri Dec 21 03:47:18 2007] [notice] Child 3912: Released the start mutex
[Fri Dec 21 03:47:19 2007] [notice] Child 3912: Waiting for 250 worker threads to exit.
[Fri Dec 21 03:47:19 2007] [notice] Child 3912: All worker threads have exited.
[Fri Dec 21 03:47:19 2007] [notice] Child 3912: Child process is exiting
[Fri Dec 21 03:47:19 2007] [notice] Parent: Child process exited successfully.
[Fri Dec 21 03:47:21 2007] [notice] Apache/2.2.6 (Win32) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.4 configured — resuming normal operations
[Fri Dec 21 03:47:21 2007] [notice] Server built: Sep 21 2007 00:29:38
[Fri Dec 21 03:47:21 2007] [notice] Parent: Created child process 2660
[Fri Dec 21 03:47:22 2007] [notice] Child 2660: Child process is running
[Fri Dec 21 03:47:22 2007] [notice] Child 2660: Acquired the start mutex.
[Fri Dec 21 03:47:22 2007] [notice] Child 2660: Starting 250 worker threads.
[Fri Dec 21 03:47:22 2007] [notice] Child 2660: Starting thread to listen on port 443.
[Fri Dec 21 03:47:22 2007] [notice] Child 2660: Starting thread to listen on port 8080.
[回复该留言]
33. We | December 21st, 2007 at 4:22 am
奇怪的东西,我刚刚在进程里面发现了Apache,强制结束进程树之后,再启动XAMPP就可以正常启动了。还有我的MYSQL管理页面必须进入https://localhost/phpmyadmin/index.php才能正常打开,不小的为什么。
不好意思占用了站长的这几楼,如果可以的话请删掉这及楼吧,实在抱歉!
[回复该留言]
34. 王玉明 | January 3rd, 2008 at 6:33 pm
Hi,真谢谢了,如果不是看了你的博客,现在我还在着急呢。我想用wordpress写英文博客,但我想先在本地学习好了wordpress去做,不然买了空间不会弄就更上火了。
我没什么事了,我以后会常来的。
[回复该留言]
35. jason | February 18th, 2008 at 8:22 pm
请问下,XAMPP只支持32位的么。。。那64位的不是没法用- -|||
[回复该留言]
应该有64位的版本,你自己去官方网站找下了!
[回复该留言]
36. SeanCHEN | February 29th, 2008 at 6:20 pm
非常感谢啊,这篇文章真的是帮了我大忙。制作自己的主题的时候,有了XAMPP LITE可真是方便多了
[回复该留言]
37. ciara | March 7th, 2008 at 3:59 pm
http://localhost/wordpress
这个打不开
[回复该留言]
38. 颦儿 | March 18th, 2008 at 4:31 pm
谢谢啊,这课也算是顺利过关
[回复该留言]
39. Peddy | April 20th, 2008 at 6:57 pm
create a wp-config.php file 链接
请问这个怎么创见?是在数据库内创见吗??

[回复该留言]
原来是我的密码没有留空,。。。。问题已经解决了!

[回复该留言]
40. keke | April 24th, 2008 at 3:26 pm
你好,我想在自己的系统(Windows 2003)上装个wordpress博客系统,还希望可以通过花生壳把它映射出去,我查了很多资料始终都没有成功……希望站长有时间能够详细的把这些资料弄成图文的方式公布在你的博客中供我们大家学习……谢谢,详细一点啊
iis6.0+php+mysql+wordpress+phpmyadmin+花生壳
[回复该留言]
41. deseza | April 25th, 2008 at 9:03 pm
测试以后,该怎么清空数据库,需要清空哪些数据?才能做新的网站的测试。
[回复该留言]
42. laibin | May 12th, 2008 at 9:44 am
输入http://localhost/phpmyadmin/显示:
错误
MySQL 返回:
#2003 - 服务器没有响应
什么问题呢?谢谢
[回复该留言]
43. Kevin | May 14th, 2008 at 9:51 am
感谢分享。
已经成功在本机安装WordPress。准备更换一个主题,然后看一看代码。
谢谢推荐好软件
[回复该留言]
44. 狂舞网络 | May 25th, 2008 at 1:20 pm
我水平有限,都是上传到空间里调试的…
[回复该留言]
45. Eazen | May 26th, 2008 at 10:12 pm
谢谢,已经成功安装.
[回复该留言]
46. BlueDrifter | May 27th, 2008 at 10:57 am
弱弱的问句,是否可以装在C盘以外的地方?因为我经常重装C盘系统……
[回复该留言]
没问题的,我就是在D盘
[回复该留言]
47. opop | June 10th, 2008 at 12:41 pm
http://localhost/wordpress/blog
然后就出错了,登录不上http://localhost/wordpress/wp-admin/ 了
我把Xampp重装了也不行,咋办啊
[回复该留言]
我估计重新安装wp了
[回复该留言]
48. yavg | June 15th, 2008 at 1:11 pm
连接不上数据库
[回复该留言]
49. 冷色调 | July 14th, 2008 at 2:33 pm
只适用于NT系统………可惜我用的是2003和vista..
[回复该留言]
50. 老式汽車 | August 12th, 2008 at 5:12 pm
学习一下
[回复该留言]
51. bc | August 16th, 2008 at 2:38 pm
请问启动apache ,是不是就是启动XAMPP

然后按下apache和mysql的start,如果是,怎么我也打不开http://localhost/wordpress/
而且,我是安装的完全版xampp
[回复该留言]
52. wonsore | August 17th, 2008 at 8:36 am
請教
在XP SP2系統上一切正常
升級到XP SP3后
APACHE服務總是打不開
MYSQL可以打開
為什么呢?
[回复该留言]
53. Wendy | September 13th, 2008 at 7:33 pm
请教一个问题
我的APACHE可以打开
MYSQL打不开
為什么呢?
[回复该留言]