tags 529707 patch thanks ******
/usr/share/doc/phpbb3/examples/config.php is quite fine for phpbb3,
maybe just change the example 'phpbb2' to 'phpbb3'.
Nevertheless, in order to make it work, I needed to add:
$acm_type = 'file';
Finally, if #437836 is solved as proposed (cache and others specifics
data in various sub-directories), it will be needed to add a new global
variable:
$url_forum = 'forum.domain.tld';
******
/usr/share/doc/phpbb3/README.multiboard.gz doesn't seems at all to be
adapted for phpbb3. Of course, it first needed to modify 'phpbb2' to
'phpbb3'.
Assuming #437836 is solved, I will use $url_forum for naming the
sub-directories. Assuming #525690 is solved, we can keep the the same
wordings "with the same permissions as the existing" for creating the
directories.
I didn't make too much changes in the second part (the VirtualHost way),
nevertheless, my preference is with separate config files (for phpbb3
and apache), but I guess it depends on how you prefer to administrate
your system.
Please find attach a small patch for this documentation file. I made a
quirty script in order to make everything needed to add a board on my
system, maybe it could of interest to make it clean to add a forum via
debconf ?
Regards
David
P.-S.: /usr/share/doc/phpbb3 should also need s/phpbb2/phpbb3/. Maybe
the information provided in this file are out of date now ?
--- README.multiboard 2010-01-16 11:43:56.000000000 -0400
+++ README.multiboard.phpbb3 2010-01-16 12:13:52.000000000 -0400
@@ -1,31 +1,38 @@
Setting up multiple boards on one server
----------------------------------------
-The phpbb2 package allows for easily setting up different boards on the same
+The phpbb3 package allows for easily setting up different boards on the same
host. The advantage is that the boards share the code base and upgrades of the
package are instantly available to all boards. This feature is quite easy to
implement. This file assumes you're using the Apache web server.
To add a second (or third, ...) board to your install, you need to take the
following steps:
-1. Create a new avatars dir under /var/lib/phpbb2, with the same permissions
- as the existing /var/lib/phpbb2 (e.g.: /var/lib/phpbb2/board2_avatars).
+1. Create new sub-directories for the various specific data:
+ /var/cache/phpbb3/cache/board2
+ /var/lib/phpbb3/avatars/board2
+ /var/lib/phpbb3/files/board2
+ /var/lib/phpbb3/store/board2
+ with the same files and permissions as the existing directories.
2. Create a new database with the same table structure as your first board.
-3. Copy /etc/phpbb2/config.php to a new file in the same directory
- (e.g.: /etc/phpbb2/board2_config.php) and put the the new database
- credentials there.
-4. Edit /etc/phpbb2/apache2.conf and add:
+3. Copy /usr/share/doc/phpbb3/examples/config.php to a new file in /etc/
+ (e.g.: /etc/phpbb3/board2.inc.php) and put the the new database
+ credentials there. Don't forget to configure: $url_forum = 'board2';
+ in order tomake the cache and the store work for this board.
+4. Edit /etc/phpbb3/apache.conf and add:
- Alias /board2/images/avatars /var/lib/phpbb2/board2_avatars
- Alias /board2 /usr/share/phpbb2/site
+ Alias /board2 /usr/share/phpbb3/www
<Location /board2>
- php_value auto_prepend_file /etc/phpbb2/board2_config.php
+ php_value auto_prepend_file /etc/phpbb3/board2.inc.php
</Location>
5. Restart Apache.
Your second board is now reachable at http://yourhostname.example.org/board2
+6. Configure the avatars and files directories in the ACP in order to make
+ them match the previously created sub-directories.
+
If you do not want to create a separate database for each board but rather
want to concentrate them all in one, you only need to give each board a
distinct $table_prefix in config.php; they can easily share a single database.
@@ -64,7 +71,7 @@
If you want to have multiple boards using virtual hosts, and have each board
use a separate database, then instead of the above, do the following:
-1. Edit /etc/phpbb2/config.php as follows:
+1. Edit /etc/phpbb3/config.php as follows:
<?php
if ($_SERVER["HTTP_HOST"] == "forum.example.com")
@@ -76,7 +83,7 @@
$dbuser = 'mylogin';
$dbpasswd = 'mypassword';
- $table_prefix = 'phpbb2_';
+ $table_prefix = 'phpbb_';
}
else if ($_SERVER["HTTP_HOST"] == "forum.example.net")
@@ -88,7 +95,7 @@
$dbuser = 'mylogin';
$dbpasswd = 'mypassword';
- $table_prefix = 'phpbb2_';
+ $table_prefix = 'phpbb_';
}
else if ($_SERVER["HTTP_HOST"] == "forum.example.org")
@@ -100,7 +107,7 @@
$dbuser = 'mylogin';
$dbpasswd = 'mypassword';
- $table_prefix = 'phpbb2_';
+ $table_prefix = 'phpbb_';
}
else {
@@ -111,17 +118,17 @@
?>
-2. Uncomment the <VirtualHost *> section found in /etc/phpbb2/apache.conf and
+2. Uncomment the <VirtualHost *> section found in /etc/phpbb3/apache.conf and
make an appropriate change to ServerName -- i.e. forum.example.com. Make sure
the line:
- php_value auto_prepend_file /etc/phpbb2/config.php
+ php_value auto_prepend_file /etc/phpbb3/config.php
points towards config.php, which you just edited above in #1.
Each VirtualHost section should include this same line and all should point to
the same config.php file.
3. Add additional <VirtualHost *> sections in apache.conf as necessary for
each of your
-intended phpbb2 boards. Each VirtualHost section must have a different
+intended phpbb3 boards. Each VirtualHost section must have a different
ServerName that obviously corresponds to each individual board -- i.e.
forum.example.com, forum.example.net, forum.example.org, etc.
signature.asc
Description: OpenPGP digital signature

