PunBB
出自Ubuntu中文
UbuntuChinaTemplate
原文出处:[1]
原文作者:
授权许可:创作共用协议
翻译人员:Huan Zhang
校对人员:
贡献者:
适用版本: 文章状态:等待校对
PunBB is a fast and lightweight PHP-powered discussion board.
PunBB 是一款基于PHP开发的快速的轻重量级的论坛系统.
Follow these instructions to install PunBB on Ubuntu 6.06 (Dapper Drake).
按照下面的指令安装 PunBB 到 Ubuntu 6.06 (Dapper Drake).
LAMP 安装 (LAMP Installation)
PunBB runs on the LAMP (Linux, Apache, MySQL, PHP) stack of applications.
PunBB 运行于 LAMP (Linux, Apache, MySQL, PHP) 应用软件集.
Use any method to install the LAMP stack packages:
使用 任何方法 安装 LAMP 应用软件集:
apache2 php5-mysql libapache2-mod-php5 mysql-server
Set a MySQL root password. This is for the root database user, not the root system user.
设置一个 MySQL 管理员口令. 这一口令用于数据库管理员, 而不是操作系统管理员.
mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
Create a user other than the mysql root user with neccessary privileges. Below, "punbb" is the username and "password" is the password. You may pick a different username and password, of course.
为 mysql 建立一个具有所需权限的管理员以外的用户. 下面的指令建立了一个名为 "punbb" 口令为 "password" 的用户. 当然, 您也可以使用不同的用户名和口令.
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON *.* TO 'punbb'@'localhost' IDENTIFIED BY 'password'; mysql> FLUSH PRIVILEGES;
Quit MySQL:
退出 MySQL:
mysql> \q
安装 PunBB (Install PunBB)
Download the latest version from here. These instructions will install PunBB in the /forums directory of your default web site. To put it somewhere else, alter these commands to suit.
从 这里 下载最新版本. 以下指令将 PunBB 安装到您的默认网站的 /forums 目录下. 如果您需要将它安装到另外的目录, 请适当改变相应的指令.
wget http://www.punbb.org/download/punbb-1.2.12.tar.gz tar xvzf punbb-1.2.12.tar.gz cd punbb-1.2.12 sudo cp -R ./upload/ /var/www/forums sudo chown -R www-data:www-data /var/www/forums/
If you have not restarted Apache2 since you install LAMP, you need to do so
如果您安装 LAMP 应用软件集后尚未重新启动过 Apache2, 请您将它按下面指令重新启动一次:
sudo /etc/init.d/apache2 restart
Now, browse to "http://localhost/forums" in your browser and click on the "install.php" link. You will be asked the information regarding the database. You will need to enter the mysql database name, username, and password.
用您的浏览器访问 "http://localhost/forums", 然后点击链接 "install.php". 您将被询问一些和数据库相关的问题. 您需要输入 mysql 数据库名, 用户名和口令.
You will then need to cut and paste the text into a file named config.php.
然后您还需要剪切并粘帖相应内容到名为 config.php 的文件.
sudo nano /var/www/forums/config.php
