Skip to main content

⬆️ Upgrading PulseHub


General Upgrade Process

1. Back Up Everything First

Shared hosting: phpMyAdmin → Export database. File Manager → download config/ folder.

VPS:

mysqldump -u root -p pulsehub_db > pulsehub_backup_$(date +%Y%m%d).sql
cp -r /var/www/pulsehub/config /backup/pulsehub_config_$(date +%Y%m%d)

2. Upload New Files

Download the new version and upload all files except config/. Do not overwrite your config/ directory.

3. Run Database Migrations

If a schema_update.sql is included:

Shared hosting — Web Upgrade Tool (Recommended):

  1. Navigate to https://yourdomain.com/install/upgrade.php
  2. Log in with your admin account
  3. Preview the SQL statements
  4. Click Apply Database Update

No CLI, no phpMyAdmin — one click.

Alternative — phpMyAdmin: SQL tab → paste contents of schema_update.sql → Go.

VPS: mysql -u root -p pulsehub_db < schema_update.sql

4. Clear Browser Caches

Hard-refresh (Ctrl+Shift+R) to reload updated JS and CSS.

5. Restart PHP-FPM (VPS Only)

sudo systemctl reload php8.1-fpm

Shared hosting: Skip this — your host handles it automatically.


Rolling Back

Shared hosting: Import your .sql backup via phpMyAdmin. Re-upload old files (keep config/).

VPS: Restore database and files from backup.