RADIUSdesk

logo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
getting_started:22_upgrade [2023/07/05 20:53]
admin [Preparing A Fallback]
getting_started:22_upgrade [2023/07/05 21:10] (current)
admin [Porting Actions]
Line 36: Line 36:
  
 </code> </code>
 +
 +===== Porting Actions =====
 +  * We assume you made the backup of the database and folders that was mentioned earlier.
 +  * Create a new database which we will use to migrate from:
 +<code bash>
 +sudo su
 +mysql -u root
 +create database rd_cake3;
 +GRANT ALL PRIVILEGES ON rd_cake3.* to 'rd_cake3'@'127.0.0.1' IDENTIFIED BY 'rd_cake3';
 +GRANT ALL PRIVILEGES ON rd_cake3.* to 'rd_cake3'@'localhost' IDENTIFIED BY 'rd_cake3';
 +exit;
 +</code>
 +  * Move the original /var/www/rdcore folder and to a new install using the latest code:
 +<code bash>
 +sudo mv /var/www/rdcore /var/www/rdcore_cake3
 +</code>
 +  * Do a new install of RADIUSdesk using this section as reference: https://radiusdesk.com/wiki/getting_started/22_install_ubuntu_nginx#install_radiusdesk
 +  * Remove the old rd SQL database and create a new one using the latest sample SQL database.
 +<code bash>
 +sudo su
 +mysql -u root
 +drop database rd;
 +create database rd;
 +exit;
 +sudo mysql -u root rd < /var/www/html/cake4/rd_cake/setup/db/rd.sql
 +</code>
 +
 +===== Running the porting script =====
 +  * Everything is now in place to run the porting script.
 +  * Run the following as root user or www-data user.
 +<code bash>
 +cd /var/www/html/cake4/rd_cake && bin/cake migrate
 +</code>
 +  * If everything work as intended this script will create a cloud / realm.
 +  * It will also port existing RADIUS related things including Dynamic Login pages.
 +
 +===== Finally you need to copy the older files from the old folders =====
 +  * The following of the original folders are important
 +<code bash>
 +/var/www/html/cake3/rd_cake/webroot/img/realms
 +/var/www/html/cake3/rd_cake/webroot/img/dynamic_details
 +/var/www/html/cake3/rd_cake/webroot/img/dynamic_photos
 +/var/www/html/cake3/rd_cake/webroot/img/access_providers
 +/var/www/html/cake3/rd_cake/webroot/img/hardwares
 +/var/www/html/cake3/rd_cake/webroot/files/imagecache
 +</code>
 +
 +
 +
 +