个人工具

UbuntuHelp:PhpBB2

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月13日 (日) 11:24的版本 (New page: {{From|https://help.ubuntu.com/community/PhpBB2}} {{Languages|php5}} === PhpBB2 === PhpBB2 is a web forum application which runs on apache, mysql and php. With it, you can host your ow...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索


PhpBB2

PhpBB2 is a web forum application which runs on apache, mysql and php. With it, you can host your own forum site.

Follow these instructions to install PhpBB2 on Ubuntu 6.06 (Dapper Drake).


LAMP Installation

Use any method to install the LAMP stack packages:

 
apache2 php5-mysql libapache2-mod-php5 mysql-server
</code>

Set a mysql-root password (not the same as a root password, but a password for mysql)

<pre>
mysql -u root

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

You should now have a functional LAMP stack.

Visit [[UbuntuHelp:ApacheMySQLPHP|Apache PHP MySQL]] for more information on LAMP.

=== Enable the Universe repository ===

* [[UbuntuHelp:Repositories/CommandLine| I am using Ubuntu server (command line)]]
* [[UbuntuHelp:AddingRepositoriesHowto| I am using a desktop]]

=== Install Phpbb2 ===

Use [[UbuntuHelp:InstallingSoftware| any method]] to install the following package:

<pre>
phpbb2-conf-mysql 
</code>

The installation of that package will also install the phpbb2 package and perform all the database configuration for you.  You will be prompted for the mysql root user password (not the same as the root user, but the mysql's user named root)

 attachment:phpbb1a.jpg

 attachment:phpbb2.jpg

Run this command to make the forum accessible through the web server
<pre>
sudo ln -s /usr/share/phpbb2/site /var/www/phpbb 
</code>

Please read /usr/share/doc/phpbb2/README.Debian for more details.

You may need to reload apache's configuration if you have not done so since installing LAMP.  Do this if you get a message about the PHP environment not having support for a database.

<pre>
sudo /etc/init.d/apache2 restart
</code>

=== Configuration ===

Everything should now be installed and ready to go.

* Launch your web browser and type in: 
<pre>
http://localhost/phpbb
</code>

The PHPBB2 webpage should display that the forum is disabled.

* Click Log in.
 attachment:phpbb3.jpg

* Use the default username and password:
<pre>
username = admin
password = admin
</code>

* Click on the small link at the bottom of the page - '''GotoAdministrationPanel'''
 attachment:phpbb4.jpg

* Select the '''configuration''' link which is located under the sub heading '''General Admin''' on the lefthand side of the page.

* Set the option '''Disable Forum''' to '''No''' and click '''Submit''' at the bottom of the page.

Note: Also, don't forget to change the admin password as well.

=== Languages ===

There are 53 additional languages available for your forum.  The english language pack is already included in the phpbb2 package itself.  

To install all the other languages, use [[UbuntuHelp:InstallingSoftware| any method]] to install the following package:
<pre>
phpbb2-languages
</code>

[[category:UbuntuHelp]]