﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-一叶笑天-随笔分类-网站技术</title><link>http://www.blogjava.net/zjrstar/category/32632.html</link><description> 雄关漫道真如铁,
 而今迈步从头越。
 从头越,
 苍山如海,
 残阳如血。 </description><language>zh-cn</language><lastBuildDate>Thu, 08 Jan 2009 20:38:20 GMT</lastBuildDate><pubDate>Thu, 08 Jan 2009 20:38:20 GMT</pubDate><ttl>60</ttl><item><title>PHPBB3安装上路</title><link>http://www.blogjava.net/zjrstar/archive/2008/06/29/211465.html</link><dc:creator>一叶笑天</dc:creator><author>一叶笑天</author><pubDate>Sun, 29 Jun 2008 05:31:00 GMT</pubDate><guid>http://www.blogjava.net/zjrstar/archive/2008/06/29/211465.html</guid><description><![CDATA[PHPBB是一套开源的PHP语言编写的功能强大的论坛程序，在业界享有盛誉。<br />
必须组建：<br />
<a href="http://apache.mirrors.hoobly.com/httpd/binaries/win32/apache_2.2.9-win32-x86-no_ssl-r2.msi">apache_2.2.9-win32-x86-no_ssl-r2.msi</a>，网址是：<a href="http://httpd.apache.org/download.cgi">http://httpd.apache.org/download.cgi</a><br />
php-5.2.6-Win32.zip 下载网址是：<a href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a><br />
<code>mysql-5.0.51b-win32.zip</code> 下载网址是：http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.51b-win32.zip/from/pick<br />
phpbb3.0.1_zh_phpbbchina.zip 下载网址是：http://cnc.phpbbchina.com/forum/viewtopic.php?f=8&amp;t=2898&amp;sid=2d3da334475afd30bd708b60d01c0139<br />
<br />
<span class="hilite2">1.安装</span>apache配置支持PHP <br />
点击<span class="hilite2">安装</span>文件apache_2.0.61-win32-x86-no_ssl.msi将apache<span class="hilite2">安装</span>在 D:\Apache2.2目录，将php-5.0.0-Win32.zip 里内容解压到 D:\PHP.5.2.6 里，找到php目录里的php.ini-dist重命名为 php.ini，再将php目录里的 php5ts.dll,libmysql.dll 拷到系统目录(system/system32) 如我的是D:\windows\system里 <br />
配置apache里的httpd.conf <br />
打开 D:\Apache2.2\conf\httpd.conf：&nbsp;&nbsp;<br />
(1) DocumentRoot "D:/Apache2/htdocs" 将其改为你的WEB目录（可不改）如我的为 DocumentRoot "D:/PHPBB3.0.1"<br />
(2) &nbsp;DirectoryIndex index.html index.html.var 在后面加入 index.htm index.php <br />
(3)找到 #LoadModule ssl_module modules/mod_ssl.so 这行，在此行后加入一行<br />
LoadModule php5_module d:/PHP.5.2.6/php5apache2_2.dll<br />
# configure the path to php.ini<br />
PHPIniDir "d:/PHP.5.2.6"<br />
<br />
其中d:/PHP.5.2.6/php5apache2_2.dll为你php目录中php5apache2_2.dll所在的位置,为了让<a href="http://apache.mirrors.hoobly.com/httpd/binaries/win32/apache_2.2.9-win32-x86-no_ssl-r2.msi">apache2支持PHP,</a>必须使用php5apache2_2.dll，而不能用php5apache2.dll<br />
(4)找到 AddType application/x-gzip .gz .tgz 这行，在此行后加入一行&nbsp;<br />
&nbsp;ScriptAlias /php/ "d:/PHP.5.2.6/"<br />
AddType application/x-httpd-php .php&nbsp;<br />
Action application/x-httpd-php "/php/php-cgi.exe" <br />
2.配置PHPBB站点<br />
打开 D:\Apache2.2\conf\httpd.conf在文件最后加入如下代码：<br />
&lt;VirtualHost *:80&gt;<br />
&lt;Directory "D:/PHPBB3.0.1/"&gt;<br />
Order&nbsp; allow,deny<br />
Allow&nbsp; from all<br />
&lt;/Directory&gt; <br />
ServerAdmin test@test.com<br />
DocumentRoot "D:/PHPBB3.0.1/"<br />
ServerName bbs<br />
DirectoryIndex index.html index.php index.htm index.php3 <br />
# ErrorLog logs/bbs.com-error_log<br />
# CustomLog logs/bbs.com-access_log common<br />
&lt;/VirtualHost&gt;<br />
然后在C:\WINDOWS\system32\drivers\etc\hosts文件末尾加入：<br />
127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bbs<br />
然后重新启动Apache服务器，OK<br />
3.<span class="hilite2">安装</span>mysql ，略 <br />
4.配置D:\PHP.5.2.6\php.ini并测试mysql<br />
&nbsp; (1)extension_dir = "./" 改为 extension_dir = "D:/PHP.5.2.6/ext" <br />
&nbsp; (2);extension=php_mysql.dll 将';'去掉改为extension=php_mysql.dll <br />
&nbsp; (3);session.save_path = "/tmp" 将';'去掉设置你保存session的目录,session.save_path = "D:/PHP.5.2.6/session_temp"<br />
重启apache服务.<br />
<br />
5.<span class="hilite2">安装</span><span class="hilite1">phpbb</span>3<br />
解压缩<span class="hilite1">phpbb</span>3.0.1_zh_<span class="hilite1">phpbb</span>china.zip到你指定的存放论坛文件的目录(例如：D:/<span class="hilite1">PHPBB3.0.1</span>)。<br />
重起apache。用浏览器打开<a href="http://localhost/install/install.php" target="_blank">http://bbs/install/index.php</a>这时进入<span class="hilite1">PHPBB</span>的<span class="hilite2">安装</span>界面。<br />
安装完成后，最好删除或者重命名install目录。打开管理员界面就可以编辑自己的论坛了！<br />
<span class="hilite1"><img alt="" src="http://www.blogjava.net/images/blogjava_net/zjrstar/admin.JPG" border="0" /><br />
phpbb</span>提供了许多可选的风格，可以到<a href="http://www.phpbbstyles.com/" target="_blank">http://www.<span class="hilite1">phpbb</span>styles.com</a>下载你喜欢的风格包，在<a href="http://www.phpbbstyles.com/" target="_blank">http://www.<span class="hilite1">phpbb</span>styles.com</a>也有不少关于<span class="hilite1">phpbb</span>好文章。&nbsp;<br />
秀一下我自己的一个还未换成的论坛：<br />
<img alt="" src="http://www.blogjava.net/images/blogjava_net/zjrstar/phpbb.JPG" border="0" /><br />
&nbsp;<br />
<br />
 <img src ="http://www.blogjava.net/zjrstar/aggbug/211465.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zjrstar/" target="_blank">一叶笑天</a> 2008-06-29 13:31 <a href="http://www.blogjava.net/zjrstar/archive/2008/06/29/211465.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>