Sign up Log in
n/ai · 5d ago · 327 views
u/freepayzzDiamond
n/aiu/freepayzz · 5d ago

[LiteBBS] Forum system, freshly released. Source is only ~100KB

[LiteBBS] Just released. Easy to deploy, give it a try

LiteBBS is a lightweight PHP + MySQL forum app with topic discussions, board management, user management, content moderation, audit logs, and template/extension management.

Download

Why it's good

  • Tiny and extremely lightweight: only ~100KB of source, no piles of redundant code or bloated dependency packages.
  • Very low resource usage. Fast page loads: runs smoothly even on a cheap shared host or a small server, with little load pressure.
  • Simple deployment: low requirements for PHP + MySQL — just upload the source and you're up and running quickly, with a low barrier to entry.
  • Template + extension support: built-in template management and extension hooks, so you can change the UI and add features as needed without touching the core code.
  • Open source: source is available, self-hosted deployment, you control your own data. Clean and minimal UI: mobile-friendly out of the box, no cluttered extra components.

Features

  • Forum topics, replies, editing, and pagination
  • Visible/hidden boards and ordering management
  • Admin panel: content, users, boards, templates, plugins, extension review, auditing, and site settings
  • Login sessions, CSRF protection, HTTPS origin validation, and action auditing
  • Safe escaped Markdown rendering
  • File caching with invalidation for topics, boards, and topic lists
  • Structural validation, signed manifests, and a review flow for the built-in extension marketplace
  • Update checks pinned to the official GitHub repo, with confirmation-based updates

Requirements

  • PHP 8.0 or higher
  • MySQL 8.0+ or MariaDB 10.6+
  • PHP extensions: pdo_mysql, mbstring
  • The extension marketplace and online updates additionally need: openssl, zip, curl
  • An HTTPS website

Installation

  1. Upload the project files to your site's program directory.
  2. Make sure the PHP web process can write to private/, cache/, and logs/ inside the program directory.
  3. Create an empty database and a dedicated database user in your database panel, and grant the permissions needed to create tables.
  4. Configure Apache .htaccess, or set up Nginx following nginx.conf.example.
  5. Open the install page over HTTPS:
https://example.com/install

If the program is deployed in a subdirectory, e.g. /forum/:

https://example.com/forum/install

After installation, the database config and install lock are stored in the program directory:

private/config.php
private/install.lock

Do not expose private/ to web access. The Apache and Nginx rules shipped with the project already deny that directory.

Database permissions

The app's database user needs at least the following permissions on the target database:

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, INDEX, REFERENCES, DROP
ON `forum_db`.* TO 'forum_app'@'WEB_SERVER_IP';

WEB_SERVER_IP must be the web server's source address as MySQL/MariaDB actually sees it. IPv4, IPv6, localhost, and 127.0.0.1 are all different grant matches.

Admin panel

After logging in as an admin, go to:

/admin

The admin panel uses a fixed system layout and doesn't depend on the front-end theme. From there you can manage:

  • Topic and reply content
  • User roles and status
  • Discussion boards
  • Templates and plugins
  • Extension review
  • Official update checks
  • Audit logs
  • Site settings

Program updates

The update source is pinned to:

https://github.com/Lfreepayzz/LiteBBS/

In the admin panel's "Extensions & Updates" you can check the latest commit on the main branch. When a new version is found, the admin has to confirm the update; the program backs up the managed source files that will change before replacing them.

What admin updates never overwrite:

private/
uploads/
cache/
logs/
database

The update repo must contain the complete project source, including at least:

index.php
app/
database/
languages/
scripts/
templates/

Security and operations

  • HTTPS must be enabled in production.
  • Before installation is complete, restrict /install to trusted admin networks only.
  • private/ must be denied access by the web server.
  • Don't install unreviewed PHP templates or plugins straight through the web UI.
  • Keep database and file backups before updating.
  • Run the cleanup script periodically via CLI:

License

This project is licensed under the Apache License 2.0; see LICENSE for details.

Translated by AI from 简体中文

10
5
Log into join the discussion.
QuicksilverVPN

快银 VPN,一键连接全球节点,线路稳定、延迟低。支持 Windows、macOS 等多平台,TUN 全局模式覆盖全部应用流量。无需复杂配置,下载即用。

umami.dnsl.top Learn more

5 replies

Sort order
  1. sharw Silver 5d ago

    That speed though

    Translated by AI from 简体中文

    0
  2. lagu Silver 5d ago

    Bookmarked.

    Translated by AI from 简体中文

    0
  3. lovoup Diamond 3 YEARS 5d ago

    Thanks for sharing. I’ll test it out when I get a chance.

    Translated by AI from 简体中文

    0
  4. Arvin_Leung 🚗 Glory 3 YEARS 5d ago

    Lightweight, but it can't keep up once the user count grows

    Translated by AI from 简体中文

    0
  5. freepayzz Diamond OP 4d ago

    Lightweight doesn't mean a performance bottleneck

    Translated by AI from 简体中文

    0