文章关键字 ‘Tomcat’

在Apache Tomcat上安装Wordpress 2.3

2007年10月22日,星期一

在Apache Tomcat上安装Wordpress 2.3

借助quercus这个纯Java PHP引擎,我们可以在Tomcat上安装Wordpress.

1.首先下载

JDK: jdk-6u3-windows-i586-p.exe http://www.mnidc.net/software/java_se/jdk-6u3-windows-i586-p.exe

mysql 5.0.45: http://ftp.ntu.edu.tw/pub/MySQL/Downloads/MySQL-5.0/mysql-noinstall-5.0.45-win32.zip

Tomcat 6.0.14: http://www.apache.org/dist/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.zip

quercus 3.1.3: http://quercus.caucho.com/download/quercus-3.1.3.war

Wordpress 2.3: http://wordpress.org/latest.zip

Wordpress 2.3 简体中文语言包 第二版: http://wpcn.googlecode.com/files/wordpress-2-3-zh_CN-po-mo.zip

mysql jdbc: http://ftp.ntu.edu.tw/pub/MySQL/Downloads/Connector-J/mysql-connector-java-5.1.0.zip

javamail

2.安装:
运行jdk-6u3-windows-i586-p.exe安装 JDK 到D:\Java\jdk1.6.0_03
配置环境变量JAVA_HOME=D:\Java\jdk1.6.0_03
环境变量Path中加入D:\Java\jdk1.6.0_03\bin;

解压mysql-noinstall-5.0.45-win32.zip为:E:\mysql-5.0.45-win32

解压pache-tomcat-6.0.14.zip到为:D:\Java\apache-tomcat-6.0.14

解压quercus-3.1.3.war为:D:\Java\apache-tomcat-6.0.14\webapps\quercus

解压latest.zip为D:\Java\apache-tomcat-6.0.14\webapps\quercus\wordpress

解压wordpress-2-3-zh_CN-po-mo.zip到 D:\Java\apache-tomcat-6.0.14\webapps\quercus\wordpress\wp-content\language

解压mysql-connector-java-5.1.0.zip得到mysql-connector-java-5.1.0.jar,将其复制到D:\Java\apache-tomcat-6.0.14\webapps\quercus\WEB-INF\lib

将activation.jar和mail.jar复制到D:\Java\apache-tomcat-6.0.14\webapps\quercus\WEB-INF\lib。

4.配置:

将 D:\Java\apache-tomcat-6.0.14\webapps\quercus\wordpress\下的wp-config-sample.php重命名为wp-config.php
编辑后的wp-config.php的内容如下:

<?php
// ** MySQL settings ** //
define(‘DB_NAME’, ‘wordpress’); // The name of the database
define(‘DB_USER’, ‘root’); // Your MySQL username
define(‘DB_PASSWORD’, ”); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
define(‘DB_CHARSET’, ‘utf8′);
define(‘DB_COLLATE’, ”);

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!

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

/* That’s all, stop editing! Happy blogging. */

define(‘ABSPATH’, dirname(__FILE__).’/');
require_once(ABSPATH.’wp-settings.php’);
?>

5.启动:

运行E:\mysql-5.0.45-win32\bin\mysqld.exe
运行D:\Java\apache-tomcat-6.0.14\bin\startup.bat

6.安装设置Wordpress

打开浏览器,访问 http://localhost:8080/quercus/wordpress/wp-admin/install.php

进行安装。

(Tomcat后台此时会报很多异常,这是因为wordpress在检测相关的表是否已经创建)

7.访问

http://localhost:8080/quercus/wordpress/ 可以看到内容显示正常。

(全文…)

Tags: mysql, php, quercus, Tomcat, Wordpress

Related posts

开张了。

2007年10月15日,星期一

测试一下,首篇开张, apache ,Tomcat,Squid,Tomcat,Lighttpd,resin,memcached,ngnix,Linux,Mina等等。

Tags: Lighttpd, Linux, nginx, Resin, Squid, Tomcat, Web Server, 数据库

Related posts