个人工具

“UbuntuHelp:PunBB”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示2个用户的6个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/PunBB}}
 
{{From|https://help.ubuntu.com/community/PunBB}}
 
{{Languages|UbuntuHelp:PunBB}}
 
{{Languages|UbuntuHelp:PunBB}}
 
 
 
[http://www.punbb.org/ PunBB] is a fast and lightweight PHP-powered discussion board.
 
[http://www.punbb.org/ PunBB] is a fast and lightweight PHP-powered discussion board.
 
 
Follow these instructions to install PunBB on Ubuntu 6.06 (Dapper Drake).
 
Follow these instructions to install PunBB on Ubuntu 6.06 (Dapper Drake).
 
 
=== LAMP Installation ===
 
=== LAMP Installation ===
 
 
PunBB runs on the LAMP ([[UbuntuHelp:ApacheMySQLPHP|Linux, Apache, MySQL, PHP]]) stack of applications.
 
PunBB runs on the LAMP ([[UbuntuHelp:ApacheMySQLPHP|Linux, Apache, MySQL, PHP]]) stack of applications.
 
 
Use [[UbuntuHelp:InstallingSoftware| any method]] to install the LAMP stack packages:
 
Use [[UbuntuHelp:InstallingSoftware| any method]] to install the LAMP stack packages:
 
<pre><nowiki>  
 
<pre><nowiki>  
 
apache2 php5-mysql libapache2-mod-php5 mysql-server
 
apache2 php5-mysql libapache2-mod-php5 mysql-server
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Set a MySQL root password.  This is for the root database user, not the root system user.
 
Set a MySQL root password.  This is for the root database user, not the root system user.
 
 
<pre><nowiki>
 
<pre><nowiki>
 
mysql -u root
 
mysql -u root
第23行: 第15行:
 
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
 
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Create a database for punBB.  Also, create a user other than the mysql root user with neccessary privileges.  Below, "punbbdata" is the database, "punbb" is the username and "punpass" is the password.  You may pick a different database name, username and password, of course.
 
Create a database for punBB.  Also, create a user other than the mysql root user with neccessary privileges.  Below, "punbbdata" is the database, "punbb" is the username and "punpass" is the password.  You may pick a different database name, username and password, of course.
 
 
<pre><nowiki>
 
<pre><nowiki>
 
mysql> CREATE DATABASE punbbdata;
 
mysql> CREATE DATABASE punbbdata;
第33行: 第23行:
 
mysql> FLUSH PRIVILEGES;
 
mysql> FLUSH PRIVILEGES;
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Quit MySQL:
 
Quit MySQL:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
mysql> \q
 
mysql> \q
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Install PunBB ===
 
=== Install PunBB ===
 
 
Download the latest version from [http://www.punbb.org/downloads.php 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.
 
Download the latest version from [http://www.punbb.org/downloads.php 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.
 
 
<pre><nowiki>
 
<pre><nowiki>
 
wget http://www.punbb.org/download/punbb-1.2.12.tar.gz
 
wget http://www.punbb.org/download/punbb-1.2.12.tar.gz
第55行: 第40行:
 
sudo chown -R www-data:www-data /var/www/forums/cache/ /var/www/forums/img/avatars/
 
sudo chown -R www-data:www-data /var/www/forums/cache/ /var/www/forums/img/avatars/
 
</nowiki></pre>
 
</nowiki></pre>
 
 
If you have not restarted Apache2 since you install LAMP, you need to do so
 
If you have not restarted Apache2 since you install LAMP, you need to do so
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo /etc/init.d/apache2 restart
 
sudo /etc/init.d/apache2 restart
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Otherwise you get this:  
 
Otherwise you get this:  
https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen1.jpg
+
https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen1.jpg
 
+
 
Now, browse to "http://localhost/forums" in your browser and click on the "install.php" link.   
 
Now, browse to "http://localhost/forums" in your browser and click on the "install.php" link.   
https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen2.jpg  
+
https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen2.jpg  
 
+
 
You will be asked the information regarding the database.  You will need to enter the mysql database name, username, and password.
 
You will be asked the information regarding the database.  You will need to enter the mysql database name, username, and password.
https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen3.jpg   
+
https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen3.jpg   
 
+
 
You will then need to cut and paste the text into a file named config.php.
 
You will then need to cut and paste the text into a file named config.php.
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo nano /var/www/forums/config.php
 
sudo nano /var/www/forums/config.php
 
</nowiki></pre>
 
</nowiki></pre>
 
+
https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen4.jpg  
https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen4.jpg  
+
 
+
 
And then log into your new forum:
 
And then log into your new forum:
 
+
https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen5.jpg  
https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen5.jpg  
+
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年10月20日 (一) 00:24的最新版本

PunBB is a fast and lightweight PHP-powered discussion board. Follow these instructions to install PunBB on Ubuntu 6.06 (Dapper Drake).

LAMP Installation

PunBB runs on the LAMP (Linux, Apache, MySQL, PHP) stack of applications. Use any method to install the LAMP stack packages:

 
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 -u root

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');

Create a database for punBB. Also, create a user other than the mysql root user with neccessary privileges. Below, "punbbdata" is the database, "punbb" is the username and "punpass" is the password. You may pick a different database name, username and password, of course.

mysql> CREATE DATABASE punbbdata;

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON punbbdata.* TO 'punbb'@'localhost' IDENTIFIED BY 'punpass';

mysql> FLUSH PRIVILEGES;

Quit MySQL:

mysql> \q

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.

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/cache/ /var/www/forums/img/avatars/

If you have not restarted Apache2 since you install LAMP, you need to do so

sudo /etc/init.d/apache2 restart

Otherwise you get this: PunBB?action=AttachFile&do=get&target=screen1.jpg Now, browse to "http://localhost/forums" in your browser and click on the "install.php" link. PunBB?action=AttachFile&do=get&target=screen2.jpg You will be asked the information regarding the database. You will need to enter the mysql database name, username, and password. PunBB?action=AttachFile&do=get&target=screen3.jpg You will then need to cut and paste the text into a file named config.php.

sudo nano /var/www/forums/config.php

PunBB?action=AttachFile&do=get&target=screen4.jpg And then log into your new forum: PunBB?action=AttachFile&do=get&target=screen5.jpg