Back to services

LibreKB

Web-based knowledge base solution. A simple web app, it runs on pretty much any web server or hosting provider with PHP and MySQL.

View alternatives to LibreKB
Suggest edit
Open source
Self-hostable
GPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

LibreKB is a free, open-source knowledge base web application developed by Michael Staake and released under the GPL-3.0 license. It is built on PHP and MySQL/MariaDB, runs on almost any server, shared host, or Docker environment, and installs in just a few minutes. You can write articles, organize them with multi-level categories, and publish them as a responsive help center that matches your own brand.

Key Features

  • Free and open source: 100% free and open source under the GPL-3.0 license.
  • Custom branding: Easily adjust the look and feel to match your project or company brand, with custom CSS support for the public site.
  • TinyMCE editor: Edit articles with TinyMCE, and configure which buttons appear in the editor toolbar.
  • Nested categories: Categories can be nested to any depth, and the admin area supports collapsing and filtering categories and articles.
  • File attachments: Attach files to articles so readers can download them.
  • User groups: Manage users with preset user groups, with password reset by email.
  • Grouped settings: Site settings are divided into General, Appearance, Editor, API, and Maintenance groups.
  • Responsive design: The interface is built on Bootstrap and adapts to all kinds of devices.

Read-Only JSON API

Starting with version 2.2.0, LibreKB can serve your public knowledge base to other applications as JSON. This feature is off by default and must be enabled by an administrator in the settings:

  • Only GET requests are supported, and responses are returned as JSON
  • Optional API key authentication via the X-API-Key request header
  • Hidden and disabled content is never exposed through the API
  • CORS origins are configurable
  • Endpoints include article search, fetching articles by ID or slug, and fetching categories

Target Users and Use Cases

It suits individual developers, open-source projects, small and medium-sized businesses, and support teams who want control over their own documentation data. Use it to build product help centers, FAQs, internal knowledge bases, or technical documentation sites.

Technical Requirements

  • PHP 8.4 or later
  • MySQL or MariaDB
  • A web server that supports .htaccess (Apache, LiteSpeed, OpenLiteSpeed, or Lighttpd)
  • The following PHP extensions must be enabled: pdo_mysql, curl, mbstring, fileinfo

Installation and Deployment

Standard Installation (Six Steps)

  1. Make sure your server meets the technical requirements above.
  2. Upload the files and set the web root to the folder containing index.php. URL rewriting is handled by the bundled .htaccess.
  3. Copy config.example.php to config.php, fill in your database details, and set systemURL to the public address.
  4. Create the database. The database user needs permission to create tables, and PHP must be able to write to storage/uploads and storage/cache.
  5. Visit /install to run the installer and enter an administrator email and password.
  6. Log in at /login. Once the administrator account has been created, /install can no longer be run.

Docker Deployment

The repository includes a Dockerfile and a docker-compose.yml with a MySQL 8.0 service. Start it by running:

docker compose up -d

Upgrading

Overwrite the old files with the new version's files, keep your existing config.php, and then visit /upgrade.

Notable Points

  • It uses a traditional PHP + MySQL stack and can run even on ordinary shared hosting, so the barrier to deployment is low.
  • The API is off by default and never exposes hidden content when enabled, balancing integration needs with security.
  • The project is hosted on GitHub, where you can report issues and request features through GitHub Issues.