Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| update_cake5 [2026/09/03 15:46] – created system | update_cake5 [2026/09/03 17:36] (current) – [Instructions] system | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ====== Update to CakePHPv5 ====== | ====== Update to CakePHPv5 ====== | ||
| - | ===== Skills required for the installation | + | ===== Background |
| + | * RADIUSdesk has been under constant development for more than a decade. | ||
| + | * It uses CakePHP as a web app that generates JSON data which in turn is displayed on an ExtJs GUI. | ||
| + | * Over the years the CakePHP framework also has been under constant development. | ||
| + | * We started out probably on version 2 and then moved to version 3 and version 4 as time went on. | ||
| + | * As of September 2026 CakePHPv4 will stop getting security updates (https:// | ||
| + | * Since we are committed to provide a stable and current system, we are moving on to CakePHPv5. | ||
| + | * This will be a drop-in replacement of the CakePHPv4 web app and should be transparent to your users and systems. (API remains the same) | ||
| - | To install RADIUSdesk, you need sufficient knowledge and experience with Linux: | + | ===== Instructions ===== |
| - | * Installing the Linux operating system. | + | |
| - | * Editing text files via the terminal with a text editor such as Vi or Nano. | + | |
| - | * Installing packages from a repository. | + | |
| - | * You must be familiar with how TCP/IP networks work. | + | |
| - | ===== Background ===== | + | * These instructions are applicable for systems that has RADIUSdesk already installed on Ubuntu version 24.04 and 26.04. |
| + | * Check out the CakePHPv5 API back-end application | ||
| + | <code bash> | ||
| + | cd /var/www/ | ||
| + | sudo git clone https:// | ||
| + | </ | ||
| + | * Remove the old soft links: | ||
| + | <code bash> | ||
| + | cd / | ||
| + | sudo rm ./cake4 | ||
| + | sudo rm ./ | ||
| + | </ | ||
| + | * Create the new soft links: | ||
| + | <code bash> | ||
| + | sudo ln -s ../rd_cake5 ./cake4 | ||
| + | sudo ln -s ../ | ||
| + | </ | ||
| + | * Create directories: | ||
| + | <code bash> | ||
| + | sudo mkdir -p / | ||
| + | sudo mkdir -p / | ||
| + | sudo mkdir -p / | ||
| + | </ | ||
| + | * Copy the old images over: | ||
| + | <code bash> | ||
| + | sudo cp -R / | ||
| + | sudo cp -R / | ||
| + | sudo cp -R / | ||
| + | sudo cp -R / | ||
| + | sudo cp -R / | ||
| + | </ | ||
| + | * Change the ownership: | ||
| + | <code bash> | ||
| + | sudo chown -R www-data: | ||
| + | sudo chown -R www-data: | ||
| + | sudo chown -R www-data: | ||
| + | sudo chown -R www-data: | ||
| + | sudo chown -R www-data: | ||
| + | sudo chown -R www-data: | ||
| + | sudo chown -R www-data: | ||
| + | sudo chown -R www-data: | ||
| + | </ | ||
| + | * That brings us to the end of the upgrade instructions to migrate from CakePHPv4 to CakePHPv5. | ||
| - | * Nginx is a web server that seems to have overtaken Apache in terms of popularity and number of active websites on the Internet. | ||
| - | * It is new, lightweight, | ||
| - | * Nginx is the new Apache so to speak. | ||
| - | * This section describes the steps you need to take to get RADIUSdesk up and running with a LEMP stack on Ubuntu 26.04 | ||
| - | * A LEMP stack is one of those acronyms you can use to impress your friends. It stands for Linux NginX MySQL and PHP. | ||
| ----------- | ----------- | ||
| + | |||
| + | ===== Remember to patch ===== | ||
| + | * RADIUSdesk is under active development and sometimes we add SQL patches. | ||
| + | * The SQL patches are located under **/ | ||
| + | * These patches are non-destructive and you can run them against the database | ||
| + | * See the example below | ||
| + | <code bash> | ||
| + | sudo mysql -u root rd < / | ||
| + | </ | ||
| + | * Some of these patches may add new columns to existing database tables. | ||
| + | * In this case, it is recommended to clear the CakePHP models (tables) cache to ensure that the latest changes are also applied there: | ||
| + | <code bash> | ||
| + | sudo su | ||
| + | cd / | ||
| + | rm * | ||
| + | exit | ||
| + | </ | ||
| + | |||