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.

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.
  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=root
#DB_PASSWORD=V8ProPassword
DB_PASSWORD=xxxxxxxxxxxxxxxV8COREDBPASSxxxxxxxxxxxxxxxxxxxxxxxx
#DB_HOST=localhost
DB_HOST=localhostOrOtherHost
#DB_PORT=3306
DB_PORT=3306
  1. Clear the application state and run the migrations against your V8 Core database. You should see several tables created in the output.
Terminal window
cd /var/www/html/rconfig8/current
php artisan rconfig:clear-all
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. 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 0755 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 0755 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