This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sermn_wiki:userpages:marta:phpbb3_3.0.7-pl1-4_readme-multiboard [2011/04/29 12:46] miquel |
sermn_wiki:userpages:marta:phpbb3_3.0.7-pl1-4_readme-multiboard [2011/04/29 13:26] (current) miquel |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Setting up multiple boards on one server ===== | ===== Setting up multiple boards on one server ===== | ||
- | [for issues with multiboard see " | + | (For issues with multiboard see " |
The phpbb3 package allows for easily setting up different boards on the same host (we also call that " | The phpbb3 package allows for easily setting up different boards on the same host (we also call that " | ||
Line 65: | Line 65: | ||
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: | 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 / | + | ==== / |
+ | |||
+ | Edit / | ||
<code php> | <code php> | ||
Line 110: | Line 112: | ||
</ | </ | ||
- | ==== 2. Uncomment the < | + | ==== < |
Uncomment the ''< | Uncomment the ''< | ||
Line 120: | Line 122: | ||
points towards the file which you just edited above in step #1. Each VirtualHost section should include this same line and all should point | points towards the file which you just edited above in step #1. Each VirtualHost section should include this same line and all should point | ||
to the same config file. | to the same config file. | ||
- | |||
- | ==== 3. Add additional < | ||
Add additional ''< | Add additional ''< | ||
Line 127: | Line 127: | ||
forum.example.org, | forum.example.org, | ||
- | ==== 4. Check DNS resolution ==== | + | ==== DNS resolution ==== |
Make sure you have proper DNS resolution on your DNS server for each of the different boards of your set up in each of the VirtualHost | Make sure you have proper DNS resolution on your DNS server for each of the different boards of your set up in each of the VirtualHost | ||
sections. | sections. | ||
- | ==== 5. Reload Apache ==== | + | ==== Reload Apache ==== |
After making all changes, reload apache - ''/ | After making all changes, reload apache - ''/ | ||
Line 138: | Line 138: | ||
===== Multiboard Issues ===== | ===== Multiboard Issues ===== | ||
- | ==== Preliminary Notes | + | ==== Preliminary Notes ==== |
- | ==== | + | |
- | First, multiboard support itself is not an official feature from upstream. | + | First, |
The source has been modified in this package such that caching will not break when running multiple boards from the same codebase. The " | The source has been modified in this package such that caching will not break when running multiple boards from the same codebase. The " | ||
- | This is what the store directory will look like for a forum at the URL '' | + | This is what the store directory will look like for a forum at the URL '' |
< | < | ||
Line 154: | Line 153: | ||
</ | </ | ||
- | For the rest, we provide some workarounds for other features where | + | For the rest, we provide some workarounds for other features where patching the source is too intrusive. We leave that to upstream, if those features are desired. Ask them. |
- | patching the source is too intrusive. We leave that to upstream, if | + | |
- | those features are desired. Ask them. | + | |
- | Avatar Upload | + | ==== Avatar Upload |
- | ============= | + | |
- | Avatar uploads go to the / | + | Avatar uploads go to the '' |
- | folder. Since this folder is common to all boards, there would be | + | |
- | conflicts as the uploads are stored by userid, which can be the same | + | |
- | in different forum instances. | + | |
- | You may of course simply create another avatar uploads folder and | + | You may of course simply create another avatar uploads folder and use that one in '' |
- | use that one in ACP -> Avatar settings. | + | |
- | However, you can also change the avatar_salt value in the config table | + | However, you can also change the //avatar_salt// value in the config table of the respective boards' |
- | of the respective boards' | + | |
- | each board. phpBB uses this value to prepend the avatar' | + | |
- | filesystem. No conflicts will then occur. Unfortunately this value | + | |
- | cannot be set in the ACP. | + | |
- | Make sure to empty the caches of the respective board after the | + | Make sure to empty the caches of the respective board after the change. |
- | change. | + | |
- | Furthermore, | + | Furthermore, |
- | cannot be listed either, except by the superuser, so this is secure. | + | |
- | Note that if several forum instances run under the same (unix) userid | + | Note that if several forum instances run under the same (unix) userid and the avatar_salt is not changed, avatars might get overwritten. |
- | and the avatar_salt is not changed, avatars might get overwritten. | + | |
- | Avatar Galleries | + | ==== Avatar Galleries |
- | ================ | + | |
- | You can make avatar galleries available to specific forums only when | + | You can make avatar galleries available to specific forums only when running each forum under a different user ID (e.g. using suexec). You can leave avatar galleries that should be available to every forum simply with permissions 0755. Avatar galleries that should only be available to specific forums should belong to the user running the forum and have no permissions for other users; phpbb will silently ignore those galleries if it cannot access them. |
- | running each forum under a different user ID (e.g. using suexec). You | + | |
- | can leave avatar galleries that should be available to every forum | + | |
- | simply with permissions 0755. Avatar galleries that should only be | + | |
- | available to specific forums should belong to the user running the | + | |
- | forum and have no permissions for other users; phpbb will silently | + | |
- | ignore those galleries if it cannot access them. | + | |
- | + | ||
- | In the following example, the ' | + | |
- | everyone, the ' | + | |
- | forum run by user " | + | |
+ | In the following example, the ' | ||
+ | < | ||
/ | / | ||
drwxr-xr-x 2 root root 4096 Mar 10 16:06 avatars | drwxr-xr-x 2 root root 4096 Mar 10 16:06 avatars | ||
drwxr-x--- 2 web15_admin web15 4096 Mar 10 16:17 avatars2 | drwxr-x--- 2 web15_admin web15 4096 Mar 10 16:17 avatars2 | ||
+ | </ | ||
- | Again: in this case, accessing the forum via a different DNS name or | + | Again: in this case, accessing the forum via a different DNS name or such does not change anything. Which galleries are visible solely |
- | such does not change anything. Which galleries are visible solely | + | |
depends on the server-side instance of phpBB you are accessing. | depends on the server-side instance of phpBB you are accessing. | ||
- | Attachments | + | ==== Attachments |
- | =========== | + | |
- | Attachments to posts are stored in / | + | Attachments to posts are stored in '' |
+ | |||
+ | Since these filenames are generated by md5() and microtime(), | ||
+ | |||
+ | As far as security is concerned, the files have permissions -rw-rw-rw- but the directory has only drwx-wx-wt, so noone can list them. The | ||
+ | forum a specific file belongs to knows its exact name (in the ' | ||
- | Since these filenames are generated by md5() and microtime(), | + | ==== Styles ==== |
- | not much need to worry about collisions. | + | |
- | As far as security is concerned, the files have permissions -rw-rw-rw- | + | All styles |
- | but the directory has only drwx-wx-wt, so noone can list them. The | + | |
- | forum a specific file belongs to knows its exact name (in the | + | |
- | 'attachments' | + | |
- | Styles | ||
- | ====== | ||
- | All styles (from / | ||