Chinese version: README.zh_CN.md
- Program Overview
- Installation and Usage Instructions
- Docker Deployment
- Copyright Information
- License
Development Language: PHP (8.2) + MySQL (8.4)
Platform: Linux / Windows
License: Source code released under GNU GPL license
Features:
- Web-based article browsing, posting, searching, and other basic functions
- Support for multiple categories and sections, each with discussion areas, digest areas, and featured areas
- Comprehensive moderator management support
- Optional Telnet access for login, article viewing, games, etc. (see lbbs for details)
Demo site: https://fenglin.info/bbs/
- PHP 8.2+ and MySQL 8.4+ installed
- Install Composer using your package manager (e.g.,
apt,yum, or from getcomposer.org) - Run the following command in the project root directory:
composer install --prefer-dist --no-scripts --no-progress- Import the database structure from
TODO/sql/db_stru.sql - (Optional) Import sample data from
TODO/sql/sample_data.sql- Test account:
sysop - Temporary password (must be changed upon first login):
3anzHaNg
- Test account:
- Copy files from
TODO/conf/directory toconfdirectory (create if it doesn't exist) - Modify the following files:
- Site information: Edit
conf/site.conf.php - Database connection: Edit
conf/db_conn.conf.php - Email sending: Edit
conf/smtp.conf.php(supports both SMTP and local sendmail)
- Site information: Edit
- Modify
lib/common.inc.phpfor site-specific configurations
- Create directories (if they don't exist):
bbs/cachebbs/uploadstat
- Ensure the web server user has write permissions for:
bbs/cachebbs/uploadgen_exstat
- Create administrator and initial accounts through the registration page
- Note: Involves multiple database tables; not recommended to create directly in the database
- Add administrator accounts, categories, and sections in the database
- Relevant tables:
admin_config,section_class,section_config
- Management programs are located in the
managedirectory - Scheduled background tasks require adding to crontab
# Clone the repository
git clone https://github.com/leafok/leafok_bbs.git
cd leafok_bbs
# Start with Docker Compose
docker compose up -ddocker compose up --build -d# Pull the latest images from Docker Hub
docker compose pull
# Start the containers
docker compose up -d- The web application will be available at
http://localhost:8080 - Configuration files should be placed in
conf/directory (mounted to/var/www/html/confin the container) - To modify configuration:
- Copy files from
TODO/conf/toconf/directory - Edit the configuration files as needed
- Restart the container:
docker compose restart
- Copy files from
- web: Apache HTTP Server with PHP 8.2
- db: MySQL 8.4 database
- phpmyadmin: Database management interface (optional, available at
http://localhost:8081)
# View logs
docker compose logs -f
# Stop containers
docker compose down
# Rebuild and restart
docker compose up --build -d
# Access container shell
docker compose exec web bash- Database data is stored in a Docker volume (
leafok_bbs_db_data) - Uploaded files and cache are stored in mounted host directories
Copyright (C) 2004-2026 Leaflet leaflet@leafok.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.