For when the in-app upgrade UI isn't an option — minimal-tools, SSH-based path.
An upgrade replaces source files but preserves your runtime data. These paths are never overwritten by an upgrade:
.env — your environment configurationstorage/ — logs, snapshots, lock files, upgrade jobsuploads/ — customer-uploaded media (merchant logos, gateway icons, etc.)public/uploads/ — same as above but the web-accessible mirrorconfig/license.php — your license activation state (gitignored)Even though the in-app upgrader takes a snapshot automatically, manual upgrades won't — so dump first.
mysqldump -u DB_USER -p DB_NAME > backup-pre-upgrade.sql
# Or, if you don't have mysqldump installed:
mysql -u DB_USER -p -e "SHOW TABLES" DB_NAME
# ...then back up each table by exporting it through phpMyAdmin or similar.
cd /path/to/Payment_Processor/..
tar -czf payment-processor-backup-$(date +%Y%m%d).tar.gz Payment_Processor/
Stops in-flight payment callbacks from being processed mid-deploy. The bootstrap checks for this file and shows a 503 "we'll be back" page to all non-admin traffic.
echo '{"from":"current","to":"new"}' > storage/.maintenance
Unzip the release alongside the current install, then sync everything except the preserve list:
unzip payment-processor-vX.Y.Z.zip
rsync -av --delete \
--exclude='.env' \
--exclude='storage' \
--exclude='uploads' \
--exclude='public/uploads' \
--exclude='config/license.php' \
payment-processor-vX.Y.Z/ /path/to/Payment_Processor/
If you don't have rsync, you can use cp -R followed by manual deletion of removed
files — but rsync's --delete handles file removals correctly so old code doesn't linger.
cd /path/to/Payment_Processor
php bin/migrate.php --status # show what will run
php bin/migrate.php # apply pending migrations
cat > storage/.installed <<'EOF'
{
"version": "X.Y.Z",
"updated_at": "2026-05-29T00:00:00Z"
}
EOF
This file gates the in-app installer and tells the admin UI which version is live.
rm storage/.maintenance
If you have OPcache turned on (recommended for production), it'll still hold the old PHP files in memory until its TTL expires. Force a refresh:
# Easiest: reload PHP-FPM
sudo systemctl reload php8.4-fpm
# Or hit a one-shot reset URL in the browser (run once, then delete):
echo '<?php opcache_reset(); echo "OK"; ?>' > public/_reset.php
# Open https://your-domain/_reset.php in a browser → outputs "OK"
rm public/_reset.php
storage/logs/$(date +%Y/%m/%Y-%m-%d).log for any new errors.If something looks wrong after the upgrade and you need to revert:
# 1. Enter maintenance mode
echo '{}' > storage/.maintenance
# 2. Restore files from the tarball
cd /path/to/Payment_Processor/..
rm -rf Payment_Processor.broken
mv Payment_Processor Payment_Processor.broken
tar -xzf payment-processor-backup-YYYYMMDD.tar.gz
# 3. Restore the database from the dump
mysql -u DB_USER -p DB_NAME < backup-pre-upgrade.sql
# 4. Drop maintenance mode
rm Payment_Processor/storage/.maintenance
This file ships inside the release zip at public/upgrade.html and is also reachable in your browser at
https://your-domain/upgrade.html after install. The canonical, machine-readable changelog is
CHANGELOG.md at the project root.