Test


This is a high-performance, privacy-first CMS designed to host large archives of text and markdown files. It requires no database (no MySQL/PostgreSQL), works completely offline via Service Workers/Local Indexing, and relies on pure vanilla PHP and JavaScript.

🚀 Why this rocks


🛠️ Server Setup (The 5-Minute Install)

2. Install The Engine (Apache + PHP)

We use a lightweight Apache setup.

sudo apt install apache2 php libapache2-mod-php -y
sudo systemctl enable --now apache2

3. Configure Apache

We need to enable URL rewriting so the URLs look clean (e.g., yoursite.com/category/article).

  1. Open the config:
    
    sudo nano /etc/apache2/apache2.conf

2. Find `<Directory /var/www/>` and change `AllowOverride None` to:
```apache
<Directory /var/www/>
    AllowOverride All
</Directory>
  1. Enable modules and restart:
    
    sudo a2enmod rewrite headers expires
    sudo systemctl reload apache2

### 4. Deploy Files

Copy the repository files to your server. Your folder structure should look like this:

```text
/var/www/html/
├── code/
│   ├── config.php
│   ├── index.js
│   ├── localsearch.js
│   ├── loadsearch.php
│   ├── findonpage.js
│   ├── sitemap.php
│   └── Parsedown.php (and ParsedownExtra.php)
├── texts/             <-- Put your .md content here
│   ├── Books/
│   └── Articles/
├── .htaccess
├── index.php
└── robots.txt

Fix Permissions: Apache needs to read your files.

sudo chown -R www-data:www-data /var/www/html
sudo chmod -R 755 /var/www/html

5. Go Live (HTTPS)

Secure your site with a free SSL certificate.

sudo apt install certbot python3-certbot-apache
sudo certbot --apache -d yourdomain.com -d www.yourdomain.com
sudo systemctl restart apache2