汶川大地震抗震救灾 - 我们与你在一起
热忱欢迎广大读者和新老客户光临·Sincere welcome to my site
祝福大家身体健康,家庭和睦,生意兴隆
We best wish you health, family each love friendly, business easy

试玩wordpress成功--oNthEWay

受不了donews成天出错,今天挪窝到mydonews。

mydonews用的是wordpress,试了一下,模板都挺漂亮,用zoundry发布也一切正常,不错。

看到网上吵wordpress挺火的,有心试一下,玩BLOG还是要研究滴。

于是动手下载,要的东西还真不少,好长时间没玩了,唉。

apache_2.0.50-win32-x86-no_ssl.msi
php-5.0.0-Win32.zip
mysql-4.0.20d-win.zip
phpMyAdmin-2.5.7.zip

可以到这几个链接去下载最新的版本,上面的链接只是参考。我的是以下配置:

PHP5.1.4

MYSQL5.0(机器上已经装了)

APACHE2.2.2

安装APACHE,安装PHP,在MYSQL中创建新数据库WORDPRESS。

接下来要配置APACHE、PHP以及MYSQL,以使他们能够在一起很好地工作。

完成后启动APACHE,服务无法启动,到命令行手动启,提示没有邮件地址,打开D:\Program Files\Apache Software Foundation\Apache2.2\conf\编辑hpptd.conf,在这里

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
ServerAdmin jianpingan@gmail.com

把邮件地址加上,再启动,OK。

接下来配置PHP,安装完成后要拷贝几个文件:

php.ini-dist=》c:\windows目录下并更名为php.ini

再将php目录里的 php5ts.dll,libmysql.dll 拷到 系统目录(system/system32)

配置apache里的httpd.conf
打开 D:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf 这个文件
找到 AddDefaultCharset ISO-8859-1 将其改为 AddDefaultCharset GB2312 (让默认语言编码为简体中文)<=我没有找到这一行,直接添加
找到 DocumentRoot “D:/Apache2/htdocs” 将其改为你的WEB目录(可不改)如我的为 DocumentRoot “D:/website”
找到 DirectoryIndex index.html 在后面加入 index.htm index.php

选择安装模式: 模块化模式安装 或 CGI模式安装 (选一样即可)

————–模块化安装配置————————————
找到 #LoadModule ssl_module modules/mod_ssl.so 这行,在此行后加入一行
LoadModule php5_module d:/php/php5apache2.dll <=这里要注意,后面会出错
其中d:/php/php5apache2.dll 为你php目录中php5apache2.dll所在的位置
找到 AddType application/x-gzip .gz .tgz 这行,在此行后加入一行
AddType application/x-httpd-php .php
—————————————————————

————–CGI安装配置————————————–
找到 AddType application/x-gzip .gz .tgz 这行,加入如下即可
ScriptAlias /php/ “d:/php/”
AddType application/x-httpd-php .php
Action application/x-httpd-php “/php/php-cgi.exe”
—————————————————————

(这部分内容来自这里http://www.21php.com/tutorial/tutorial.php?tid=99)

按照刘韧网站上这篇文章 ,

在wp-config-sample.php文件的头部,你会发现类似如下的代码:

define(’DB_NAME’, ‘wordpress’); // 把wordpress用你的MySQL数据库名字代替
define(’DB_USER’, ‘username’); // 用你的MySQL数据库用户名代替username
define(’DB_PASSWORD’, ‘password’); // password即你的MySQL数据库密码
define(’DB_HOST’, ‘localhost’); // 一般来说,这一行就不需要修改了
按照我文中所说的要求,填写相关的信息即可。以”另存为”的方式将wp-config-sample.php文件改名为wp-config.php保存。

到了这一步,配置基本上完成了,启动APACHE,无法启动

错误信息如下:php/php5apache2.dll is garbled - perhaps this is not an Apache module DSO?

google之,国内网站居然没有搜到,打开这里,原来是这样解决的:

FYI, I got Apache 2.2.2 and PHP 5.1.4 manually installed and working on Windows XP SP2. You’ll need to download 3 things.

Apache 2.2.2 (MSI Installer)
PHP 5.1.4 (Zip Package)
php5apache2.dll-php5.1.x.zip (New Module Binary)
Install and configure Apache as normal.
Extract PHP and configure INI as normal.
Replace php5apache2.dll with new one
Copy httpd.exe.manifest to apache2/bin (View Readme)
Add PHP to the Apache config
Restart Apache, Done!
Let me know if you still have troubles, I could go into further details. Basically, all you need to do is replace the php5apache2.dll.

还是老外专业,不服不行,我们的那些人才都去哪里了?

重新启动APACHE,打开浏览器,输入http://localhost/wordpress,出错了,汗~

google了半天,才发现这里有解决方法,天哪,居然是这种原因,狂汗~

部分内容摘录如下:

运行/wp-admin目录里的install.php文件,却提示我”Your PHP installation appears to be missing the MySQL which is required for WordPress.” 于是我就检查mysql的DB_NAME,DB_USER,DB_PASSWORD,DB_HOST,都对啊。怎么会呢?

百思不得其解,实在没有办法了,我就一遍一遍的查PHP的文档,后来终于在FAQ里面找到了原因,原来是因为PHP5在默认情况下,不再提供mysql的支持,必须手动的设置。

方法是:在PHP.ini文件激活php_mysql.dll扩展库,此外,要将php_mysql.dll拷贝到适当的 %SYSTEMROOT% 目录中.

动手编辑PHP.ini,
去掉;extension=php_mysql.dll 前的”;”注释符号 (大概在589行),

把php_mysql.dll拷贝到c:\windows\system32目录下。

重新启动APACHE,打开浏览器,输入http://localhost/wordpress,哈哈,OK了。

页面出现下面的字样:It doesn’t look like you’ve installed WP yet. Try running install.php.

点击install.php,打开是这个页面:


Welcome to WordPress installation. We’re now going to go through a few steps to get you up and running with the latest in personal publishing platforms. You may want to peruse the ReadMe documentation at your leisure.

First Step »
WordPress, personal publishing platform.

下一步,输入

Weblog title:
Your e-mail:

出现第二步:


Second Step
Now we’re going to create the database tables and fill them with some default data.

稍候出现下面的字样:

Finished!

Now you can log in with the username “admin” and password “a30b29“.

Note that password carefully! It is a random password that was generated just for you. If you lose it, you will have to delete the tables from the database yourself, and re-install WordPress. So to review:

Username
admin
Password
a30b29
Login address
wp-login.php
Were you expecting more steps? Sorry to disappoint. All done!

至此,wordpress全部安装成功,你可以用系统给出的账号和密码登录了。

登录后一看,居然是英文的,靠

查文档,打开wp-config.php,有以下一段文字:

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’
// to enable German language support.
define (’WPLANG’, ‘’);

又开始找语言包,疯了。

发现一个BLOG,居然跟我的名字一样,晕。

到这里http://blog.jtam.org/wordpress-chinese/下载语言包,按以下说明修改,一切OK。

因为WordPress默认是英文的,通常需要加中文语言包,下载中文语言包zh_CN.mo。在”C:\AppServ\www\wp-includes”中创建”languages”文件夹,将下载到的”zh_CN.mo”文件复制到该文件夹中。
8、在”wp-config.php”中加入语言说明,将第15行左右的”define (’WPLANG’, ‘’);”
改为”define (’WPLANG’, ‘zh_CN’);”

最后再推荐两篇安装文档,希望能给大家一些帮助。

http://www.qiantu.org/index.php?p=167

http://www.xnbyte.com/index.php?option=com_content&task=view&id=3&Itemid=2

http://realfun.cnblogs.com/archive/2006/05/25/408990.html

没有评论:


游戏·上海麻将连连看·射击游戏 http://bunuoke000.blogspot.com/2007/02/blog-post_24.html

我的简介

我的照片
guangzhou, Guangdong, China
我心飞翔,万里长空任飘扬!忙得最无聊的杀手!请不要紧张啦,还只是初级阶段。
这里是“中文e讯”为大家提供的天气资讯服务,本系统的天气预报数据完全同步更新自“中国气象局”,您可以及时准确的获得全中国及全球主要城市未来24~72小时的天气预报,希望我们的气象信息服务使您的工作和生活更加便利.
123456789 0