a lightweight, efficient, and PHP-based imageboard
so, you've got a database. use MySQL, PostgreSQL or SQLite for a setup that's quick and able to handle high traffic.
or maybe you don't. just store posts as text files for a portable setup that can run on pretty much every PHP host.
not looking for an imageboard script, you say? brewchan is able to allow new threads without uploading an image, or even completely disable images
- GIF, JPG, PNG, SWF, MP4, and WebM upload
- YouTube, Vimeo, and SoundCloud embedding
- CAPTCHA
- a simpler, self-hosted use is included
- ReCAPTCHA is supported but definitely not recommended
- reference links
>>###
- delete posts via password
- report posts
- block keywords
- management panel
- admins and moderators use separate passwords
- mods can only sticky threads, lock threads, delete posts, and approve posts when needed; see
BREWCHAN_REQMOD
- ban posters across all boards
- post using raw HTML
- mods can only sticky threads, lock threads, delete posts, and approve posts when needed; see
- admins and moderators use separate passwords
-
verify the following are installed:
- PHP 5.5+
- GD Image Processing Library
- this library is usually already installed by default
- if you plan on disabling image uploads, and use brewchan as a text board only, this library is optional
-
cd
to the directory you want to install brewchan to -
run the following:
git clone https://github.com/derelictpillows/brewchan ./
-
run the following as well:
mv settings.default.php settings.php
-
configure
settings.php
- when setting
BREWCHAN_DBMODE
toflatfile
, note that all post, report, and ban data are exposed as the database will be made of regular text files - when setting
BREWCHAN_DBMODE
topdo
, note that only MySQL and PostgreSQL database drivers have been tested at the moment; theoretically it will work with any applicable driver, but this is not guaranteed - to require moderation before displaying posts:
- set
BREWCHAN_REQMOD
tofiles
to require moderation for posts with files attached - set
BREWCHAN_REQMOD
toall
to require moderation for all posts
- set
- to allow video uploads:
- ensure your webhost is running a version of GNU/Linux
- install mediainfo and ffmpegthumbnailer
- to remove the play icon from .swf and .webm thumbnails, delete or rename
video_overlay.png
- when setting
-
chmod
write permissions to these directories:- ./ (the directory containing brewchan)
- ./src/
- ./thumb/
- ./res/
- ./inc/database/flatfile/ (only if you use the
flatfile
database mode)
-
navigate your browser to
imgboard.php
and the following will happen:- the database structure will be created
- directories will be verified to be writable
- the board index will be written to
BREWCHAN_INDEX
- log in to the management panel by clicking [Manage]
- on the board, tick the checkbox next to the offending post
- scroll to the bottom of the page
- click delete with the password field blank
- from this page you are able to delete the post and/or ban the author (posting while logged in while show a special tag next to your name showing you are either a mod/admin)
brewchan comes with a database migration tool
while the migration is in progress, users will not be able to create (or delete) posts
- edit
settings.php
- set
BREWCHAN_DBMIGRATE
to the desiredBREWCHAN_DBMODE
after the migration - configure all settings related to the desired
BREWCHAN_DBMODE
- set
- open the management panel
- click Migrate Database
- click Start the migration
- if the migration was successful:
- edit
settings.php
- set
BREWCHAN_DBMODE
to the mode previously specified asBREWCHAN_DBMIGRATE
- set
BREWCHAN_DBMIGRATE
to a blank string (''
)
- set
- click Rebuild All and ensure the board still looks the way it should
- edit
- make sure you are running the latest version of brewchan
- review the open issues
- open a new issue
- fork brewchan
- commit code changes to your forked repo
- submit a pull request describing your modifications