个人工具
登录
查看“UbuntuHelp:PunBB”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:PunBB”的源代码
来自Ubuntu中文
←
UbuntuHelp:PunBB
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/PunBB}} {{Languages|UbuntuHelp:PunBB}} [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). === LAMP Installation === 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: <pre><nowiki> apache2 php5-mysql libapache2-mod-php5 mysql-server </nowiki></pre> Set a MySQL root password. This is for the root database user, not the root system user. <pre><nowiki> mysql -u root mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword'); </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. <pre><nowiki> 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; </nowiki></pre> Quit MySQL: <pre><nowiki> mysql> \q </nowiki></pre> === 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. <pre><nowiki> 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/ </nowiki></pre> If you have not restarted Apache2 since you install LAMP, you need to do so <pre><nowiki> sudo /etc/init.d/apache2 restart </nowiki></pre> Otherwise you get this: 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. 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. 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. <pre><nowiki> sudo nano /var/www/forums/config.php </nowiki></pre> https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen4.jpg And then log into your new forum: https://help.ubuntu.com/community/PunBB?action=AttachFile&do=get&target=screen5.jpg [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:PunBB
。