Skip to content

Upgrade rConfig V8 Core to V8 Pro

After reading this page, you can move an existing rConfig V8 Core install onto the V8 Pro edition without losing your devices, configs, or backups. This is a cross-edition upgrade: V8 Pro is the commercial edition documented separately at docs.rconfig.com, and this page bridges you from Core to that edition.

Use this guide when you already run rConfig V8 Core and want the additional features of V8 Pro, such as compliance policies, change management, and the wider integration set. The procedure installs V8 Pro alongside your existing Core data on the same server, then migrates your Core database and storage into it.

If your V8 Core runs on Docker, follow Upgrade rConfig V8 Core to Pro on Docker instead.

Before you start, make sure you have:

  • A valid V8 Pro license. Purchase one at rconfig.com/pricing if you do not already have one.
  • A working rConfig V8 Core install. See Install rConfig V8 Core if you need to confirm your current setup.
  • A full backup of your V8 Core database and storage folders. The first step below covers this, and System backups explains rConfig’s built-in backup options.
  • Root or sudo access to the server, and the V8 Core APP_KEY and database password to hand.
  • A V8 Pro release that includes the rconfig:migrate-reconcile command. The migration step below shows how to check.
  1. Dump the V8 Core database to a dated file.
Terminal window
mysqldump -u YOUR_DB_USER -p YOUR_DATABASE > /root/rconfig-v8-core-backup-$(date +%Y%m%d).sql
  1. Archive the V8 Core application directory.
Terminal window
tar -czf /root/rconfig-v8-core-backup-$(date +%Y%m%d).tar.gz /var/www/html/rconfig
  1. Update and upgrade your OS packages. This may take a few minutes. Let both commands finish.

For RHEL / CentOS / Rocky / AlmaLinux:

Terminal window
yum -y update
yum -y upgrade

For Ubuntu / Debian:

Terminal window
apt-get update
apt-get upgrade -y
  1. If you hit a MariaDB repository error during the update, remove the stale MariaDB repo file and re-run the update command above.

For RHEL / CentOS / Rocky / AlmaLinux:

Terminal window
rm -fr /etc/yum.repos.d/MariaDB*

For Ubuntu / Debian:

Terminal window
rm -fr /etc/apt/sources.list.d/mariadb*
MariaDB repository error message shown in the terminal during the rConfig V8 Core operating system update
  1. On the same server as V8 Core, install V8 Pro by following the V8 Pro installation guide on docs.rconfig.com (Pro edition).

  2. Open the UI once the installer finishes. The new V8 Pro UI loads with a blank default data set (no devices or configs yet). You migrate your Core data in the next steps.

  1. Open the V8 Pro .env file.
Terminal window
vi /var/www/html/rconfig8/current/.env
  1. Copy the values below from your V8 Core .env into the V8 Pro .env, commenting out the original Pro parameters. Take particular care with DB_PASSWORD.
Terminal window
#APP_KEY=base64:xxxxxxxxxxxxxxxxxV8PROKEYxxxxxxxxxxxxxxxxxxx%253D
APP_KEY=base64:xxxxxxxxxxxxxxxV8COREKEYxxxxxxxxxxxxxxxxxxxxxxxx=
#APP_URL=https://rconfig.yourdomain.com
APP_URL=https://rconfig.yourdomain.com
#DB_DATABASE=rconfig456
DB_DATABASE=rconfig
#DB_USERNAME=rconfig_user
DB_USERNAME=v8_core_db_user
#DB_PASSWORD=V8ProPassword
DB_PASSWORD=xxxxxxxxxxxxxxxV8COREDBPASSxxxxxxxxxxxxxxxxxxxxxxxx
#DB_HOST=localhost
DB_HOST=localhostOrOtherHost
#DB_PORT=3306
DB_PORT=3306

V8 Core already created many of the tables that V8 Pro migrates, under different migration names. A plain php artisan migrate stops with table already exists, so first record what Core already applied.

  1. Clear the application state and check that your V8 Pro release can reconcile a Core database. The second command must print rconfig:migrate-reconcile. If it prints nothing, update V8 Pro before you continue.
Terminal window
cd /var/www/html/rconfig8/current
php artisan rconfig:clear-all
php artisan list rconfig | grep migrate-reconcile
  1. Check which migrations Core already applied. The report changes nothing.
Terminal window
php artisan rconfig:migrate-reconcile

A correct report ends with needs review: 0. If needs review is greater than 0, those migrations are only partly applied: Core has some of what they create and lacks the rest. Each one is listed with what exists and what is missing. Do not continue to the next step yet.

  • An entry says can be completed automatically. The missing pieces are columns, indexes or keys that rConfig can add. Preview the SQL first. This changes nothing:

    Terminal window
    php artisan rconfig:migrate-reconcile --complete

    If the SQL looks right, add the missing pieces and record the migrations as applied:

    Terminal window
    php artisan rconfig:migrate-reconcile --apply --complete
  • An entry does not say that. Stop. Restore your backup if needed and contact rConfig support with the report.

  1. When needs review is 0, record the migrations as applied:
Terminal window
php artisan rconfig:migrate-reconcile --apply
  1. Run the migrations. This creates everything V8 Pro needs that Core does not have, and completes the tables that Core created with fewer columns. The output must end without errors.
Terminal window
php artisan migrate --force
  1. Copy the storage contents from V8 Core into V8 Pro so all your existing backups are available.
Terminal window
yes | cp -R /var/www/html/rconfig/storage/* /var/www/html/rconfig8/current/storage/
  1. Update the paths of your configuration backups. Core stores the full path of every backup file under /var/www/html/rconfig. This command points them, and the EOC and policy definition paths, at V8 Pro. It is safe to run again.
Terminal window
cd /var/www/html/rconfig8/current
php artisan rconfig:updatedb8

V8 Pro shows a user only the devices that belong to one of the user’s roles. Core has no such rule, so after the upgrade no device belongs to any role and the device list is empty for everyone.

  1. Refresh the roles and permissions, and sync the scheduled tasks.
Terminal window
cd /var/www/html/rconfig8/current
php artisan rconfig:update-rbac-data
php artisan rconfig:sync-tasks
  1. Give every device and tag to the Admin role.
Terminal window
php artisan rconfig:update-device-roles
php artisan rconfig:update-tag-roles
  1. Optionally, keep the Core behaviour, where every user sees every device, by also giving all devices and tags to the user role. This SQL is safe to repeat. Role ID 2 is the user role on a standard installation, so check with SELECT id, name FROM roles; if you are unsure. Skip this step if you want to limit each team to its own devices, and assign the devices to roles yourself.
Terminal window
mysql -u YOUR_DB_USER -p YOUR_DATABASE -e "INSERT INTO device_role (device_id, role_id) SELECT d.id, 2 FROM devices d WHERE NOT EXISTS (SELECT 1 FROM device_role dr WHERE dr.device_id = d.id AND dr.role_id = 2); INSERT INTO tag_role (tag_id, role_id) SELECT t.id, 2 FROM tags t WHERE NOT EXISTS (SELECT 1 FROM tag_role tr WHERE tr.tag_id = t.id AND tr.role_id = 2);"
  1. Clear the cache so the running instance uses the V8 Pro codebase.
Terminal window
cd /var/www/html/rconfig8/current
php artisan rconfig:clear-all

Verify the backup storage directory and permissions

Section titled “Verify the backup storage directory and permissions”
  1. Create the backup storage directory, set its permissions, and clear the cache.

For RHEL / CentOS / Rocky / AlmaLinux:

Terminal window
cd /var/www/html/rconfig8/current
mkdir -p storage/app/rconfig/backups
chmod 0750 storage/app/rconfig/backups
chown -R apache:apache storage bootstrap/cache
php artisan rconfig:clear-all

For Ubuntu / Debian:

Terminal window
cd /var/www/html/rconfig8/current
mkdir -p storage/app/rconfig/backups
chmod 0750 storage/app/rconfig/backups
chown -R www-data:www-data storage bootstrap/cache
php artisan rconfig:clear-all
  1. Set the correct permissions and ownership on the OAuth authentication keys.

For RHEL / CentOS / Rocky / AlmaLinux:

Terminal window
cd /var/www/html/rconfig8/current
chmod 600 storage/oauth-private.key
chmod 600 storage/oauth-public.key
chown apache:apache storage/oauth-*.key

For Ubuntu / Debian:

Terminal window
cd /var/www/html/rconfig8/current
chmod 600 storage/oauth-private.key
chmod 600 storage/oauth-public.key
chown www-data:www-data storage/oauth-*.key
  1. Restart Apache, Supervisor, and PHP-FPM to apply all changes.

For RHEL / CentOS / Rocky / AlmaLinux:

Terminal window
systemctl restart httpd
systemctl restart supervisord
systemctl restart php-fpm

For Ubuntu / Debian:

Terminal window
systemctl restart apache2
systemctl restart supervisor
systemctl restart php8.4-fpm
  1. Open your rConfig URL in a browser, then press CTRL+SHIFT+R to hard refresh and clear the old assets.
rConfig V8 Pro login page showing the username and password fields