Lightweight CMS Lightweight CMS

Dual-Mode, Flat-File CMS Powered by PHP

Welcome to the official site of Lightweight CMS, which is a live demonstration of Lightweight CMS itself.

Cross Platform

Run Lightweight CMS on Windows, macOS, or GNU/Linux with ease.

PHP Based

Built with a lingua franca familiar to virtually every web developer.

Lightweight Languages

Write posts in Markdown, AsciiDoc, or reStructuredText — your choice.

Dual Mode

Serve as a static site or a dynamic one — switching is effortless.

Database Free

Manage your site entirely through version control systems like Git.

MIT License

Permissively licensed for both personal and commercial use.

Quick Start

We think you are using GNU/Linux

$ sudo apt install php php-xml php-mbstring php-zip unzip
$ curl -o composer-setup.php https://getcomposer.org/installer
$ php composer-setup.php --install-dir=$HOME/bin --filename=composer

Install nvm

$ nvm install 18.17.0
$ nvm use 18.17.0
$ git clone https://github.com/cwchentw/lightweight-cms.git mysite
$ cd mysite
$ git checkout master
$ ./tools/bin/serve
$ git remote set-url origin https://example.com/user/mysite.git
$ ./tools/bin/migrate
$ git add .
$ git commit -m "Migrate to a new site"
$ git push -u origin master
View the instructions for
Select PHP version

Articles

About

Lightweight CMS represents a dual-mode, flat-file content management system (CMS) powered by PHP. Based on the method a CMS renders web pages, Read More

Basic Usage

This article illustrates the basic usage of Lightweight CMS. Some details are omitted for brevity. We will introduce them in other posts. Any Read More

Write Posts

As a would-be owner of an awesome content website, you cannot wait to write and publish posts for your site. This article illustrates how to Read More

Deploy to Nginx

This article demonstrates the whole process to deploy a Lightweight CMS site to a Nginx web server on GNU/Linux. Invoke this command to install Read More

Paid Services

Currently, we don't provide paid services related to Lightweight CMS. You may open a dicussion on GitHub instead. Read More

Reference

The reference of Lightweight CMS. It doesn't intend as a tutorial for beginners. If you are still unfamiliar with Lightweight CMS, read our introductory Explore More

HOWTOs

In-depth guides on how to do something on Lightweight CMS. They are neither tutorials nor references. Read our introductory articles first if Explore More

Tips

Short text to illustrate the usage of Lightweight CMS. They intend to supplement other posts on this site.Explore More

Sample Posts

Some random sample posts. They are not really parts of Lightweight CMS documentation. You may check how Lightweight CMS renders web pages with Explore More