Skip to content

rConfig V8 Core Update Process: System Upgrade Procedures

rConfig V8 Core follows a continuous development cycle with regular releases containing new features, enhancements, security fixes, and bug fixes. Updates are distributed through the GitHub repository.

If you are deploying a fresh environment, complete the V8 Core Installation steps before using this update workflow.

Related Guides:




Create a complete backup of your rConfig database:

Terminal window
# Navigate to a backup directory
cd /home/backups
# Create database backup with timestamp
mysqldump -u rconfig_user -p rconfig > rconfig_backup_$(date +%Y%m%d_%H%M%S).sql
# Verify the backup file was created
ls -lh rconfig_backup_*.sql

Important: You’ll be prompted for your database password. Use the same password configured in your .env file.

Backup your environment configuration:

Terminal window
# Backup .env file
cp /var/www/html/rconfig/.env /home/backups/.env.backup_$(date +%Y%m%d_%H%M%S)
# Backup Apache virtual host configuration
# For CentOS/Rocky/RHEL:
cp /etc/httpd/conf.d/rconfig-vhost.conf /home/backups/rconfig-vhost.conf.backup_$(date +%Y%m%d_%H%M%S)
# For Ubuntu:
cp /etc/apache2/sites-enabled/rconfig-vhost.conf /home/backups/rconfig-vhost.conf.backup_$(date +%Y%m%d_%H%M%S)

Backup the storage directory containing configuration files and logs:

Terminal window
# Create compressed backup of storage directory
tar -czf /home/backups/rconfig_storage_backup_$(date +%Y%m%d_%H%M%S).tar.gz /var/www/html/rconfig/storage
# Verify the backup file was created
ls -lh /home/backups/rconfig_storage_backup_*.tar.gz
Terminal window
# List all backup files
ls -lh /home/backups/
# Check database backup file size (should not be 0 bytes)
ls -lh /home/backups/rconfig_backup_*.sql

Once backups are complete, follow these steps to update rConfig V8 Core.

Terminal window
cd /var/www/html/rconfig
# Check current installed version
php artisan --version
# Check Git status
git status

If you have local modifications that conflict with the update:

Terminal window
# Stash your local changes
git stash
# You can restore them later with:
# git stash pop
Red Hat Enterprise Linux logoRocky Linux logoAlmaLinux logo
Terminal window
cd /var/www/html/rconfig
# Pull latest changes from GitHub
git pull
# If you encounter conflicts, review them and resolve manually
# or restore from your backup and try again
Terminal window
# Update Composer dependencies
composer install --no-dev
# This may take several minutes
Terminal window
# Run any new database migrations
php artisan migrate
# When prompted, confirm by typing 'yes'
Terminal window
# Sync scheduled tasks with the system
php artisan rconfig:sync-tasks
Terminal window
# Clear all application caches
php artisan rconfig:clear-all
Red Hat Enterprise Linux logoRocky Linux logoAlmaLinux logo
Terminal window
# Restart Apache
systemctl restart httpd
# Verify Apache is running
systemctl status httpd
Terminal window
# Restart Supervisor to reload queue workers
systemctl restart supervisord
# Verify Supervisor is running
systemctl status supervisord

After updating, verify that everything is working correctly:

Terminal window
cd /var/www/html/rconfig
php artisan --version

Open your browser and navigate to your rConfig URL:

  • Verify you can log in
  • Check that the dashboard loads correctly
  • Review any new features or changes
  • Add/View Devices: Verify device management works
  • Run Backup: Test a manual device backup
  • View Configurations: Check that existing configurations are accessible
  • Check Logs: Review logs for any errors
Terminal window
# Check application logs
tail -f /var/www/html/rconfig/storage/logs/laravel.log
Terminal window
# Check Apache status
systemctl status httpd # CentOS/Rocky/RHEL
systemctl status apache2 # Ubuntu
# Check Supervisor status
systemctl status supervisord
# Check queue workers
php artisan queue:work --once

Solution:

Terminal window
# Option 1: Stash local changes
git stash
git pull
git stash pop # Restore your changes after
# Option 2: Reset to remote (loses local changes)
git fetch origin
git reset --hard origin/main

Solution:

Terminal window
# Clear Composer cache
composer clear-cache
# Try again
composer install --no-dev
# If still failing, update Composer itself
composer self-update --2

Solution:

Terminal window
# Check database connection
php artisan db:show
# If connection works, try migration again
php artisan migrate
# Check for migration status
php artisan migrate:status

Solution:

Red Hat Enterprise Linux logoRocky Linux logoAlmaLinux logo
Terminal window
cd /var/www/html/rconfig
# Fix ownership
chown -R apache:apache /var/www/html/rconfig
# Fix permissions
chmod -R 755 /var/www/html/rconfig
chmod -R 775 storage bootstrap/cache
# Clear caches
php artisan rconfig:clear-all

Solution:

Terminal window
# Clear all caches
cd /var/www/html/rconfig
php artisan rconfig:clear-all
# Check logs
tail -f storage/logs/laravel.log
# Verify permissions (see above)

If an update causes issues, you can roll back to your previous version.

Terminal window
# Stop Apache
systemctl stop httpd # CentOS/Rocky/RHEL
systemctl stop apache2 # Ubuntu
# Stop Supervisor
systemctl stop supervisord
Terminal window
# Replace 'YYYYMMDD_HHMMSS' with your backup timestamp
mysql -u rconfig_user -p rconfig < /home/backups/rconfig_backup_YYYYMMDD_HHMMSS.sql
Terminal window
# Restore .env file
cp /home/backups/.env.backup_YYYYMMDD_HHMMSS /var/www/html/rconfig/.env
# Restore storage directory
cd /var/www/html/rconfig
rm -rf storage
tar -xzf /home/backups/rconfig_storage_backup_YYYYMMDD_HHMMSS.tar.gz -C /
Terminal window
cd /var/www/html/rconfig
# View recent commits
git log --oneline -n 10
# Revert to previous commit (replace COMMIT_HASH with actual hash)
git reset --hard COMMIT_HASH
# Or revert to last working version
git checkout HEAD~1
Terminal window
# Start Apache
systemctl start httpd # CentOS/Rocky/RHEL
systemctl start apache2 # Ubuntu
# Start Supervisor
systemctl start supervisord

  • Critical: Apply immediately (same day)
  • High: Apply within 1 week
  • Medium/Low: Apply during next maintenance window
  • Major versions: Plan carefully, test in non-production first
  • Minor versions: Apply during regular maintenance
  • Patch versions: Low risk, can apply more frequently

For production systems, consider scheduling updates:

  • Weekly: Patch releases (8.0.x)
  • Monthly: Minor releases (8.x.0)
  • Quarterly: Major releases (x.0.0) - with extensive testing

When requesting help with update issues, provide:

  1. Current rConfig version (php artisan --version)
  2. Operating system and version
  3. Error messages from logs
  4. Steps you’ve already tried
  5. Output of git status and git log --oneline -n 5


rConfig V8 Core - Professional network configuration backups. Free forever. Open-source always.