Installation
Deploy LibreAuth on XAMPP, VPS, or shared hosting.
Requirements
| Component | Minimum |
|---|---|
| PHP | 8.1+ with pdo_mysql, openssl, sodium, json, mbstring |
| Database | MySQL 5.7+ or MariaDB 10.3+ |
| Web server | Apache + mod_rewrite (or nginx equivalent) |
| Redis | Optional — rate limiting cache |
WARN
The
sodium extension is required for Ed25519 response signing. Without it, C++ clients will fail with "Missing signature headers".Local (XAMPP)
- Clone or copy files to
htdocs/libreauth/ - Copy
config.example.php→config.php - Copy
config.local.example.php→config.local.phpand set DB credentials - Create MySQL database, import
install/schema.sql - Open
http://localhost/libreauth/install/ - Login at
/panel/— default admin created on first install
Production
- Upload files to web root (exclude
.git) - Copy
config.production.example.php→config.production.php - Set
site.urlto your domain (HTTPS) - Import schema or run
/install/upgrade.php - Lock down
install/— keep onlyupgrade.php+.installed
TIP
Use
deploy/upload.bat on Windows for one-click SFTP sync. See the deploy/ folder in your installation.Upgrading
After pulling new code, visit:
https://libreauth.nutexe.dev/install/upgrade.php
Safe to run multiple times — only adds missing columns and tables.
Verify installation
Check https://libreauth.nutexe.dev/health — expect:
{
"db": "ok",
"sign": "ok",
"sign_public": "..."
}