✅ A simple status page service, written in PHP
A simple status page service, written in PHP
cd /data/wwwroot/my-website.com/
git clone https://github.com/kasuganosoras/TinyStat .
utf8mb4
charset. (Skip this step if you are using SQLite)php console.php install
php console.php createuser
screen
or other terminal manager to run the cron.php
in background.cd /data/wwwroot/my-website.com/
screen -Dms tinystat /usr/local/php/bin/php cron.php
You can also use systemd to manage the service.
File: /etc/systemd/system/tinystat.service
[Unit]
Description=TinyStat Service
After=network.target
[Service]
WorkingDirectory=/data/wwwroot/my-website.com/
ExecStart=/usr/local/php/bin/php cron.php
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
This project is open source under the MIT license.