Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| install_26_4 [2026/04/07 16:14] – [Install RADIUSdesk] system | install_26_4 [2026/08/15 07:28] (current) – system | ||
|---|---|---|---|
| Line 301: | Line 301: | ||
| * RADIUSdesk consists of three components. | * RADIUSdesk consists of three components. | ||
| * **rd** directory with its contents contains all the HTML and JavaScript code and is used as the presentation layer. | * **rd** directory with its contents contains all the HTML and JavaScript code and is used as the presentation layer. | ||
| - | * **cake4** is a CakePHPv4 application and can be considered the engine room. This is where the data is processed before it is displayed by the presentation layer. | + | * **cake4** is a CakePHPv5 (It was CakePHPv4 |
| * **login** is a directory with various login pages that are managed centrally via the **RADIUSdesk Dynamic Login Pages** applet. | * **login** is a directory with various login pages that are managed centrally via the **RADIUSdesk Dynamic Login Pages** applet. | ||
| * Later we will create various symbolic links from locations within the **rdcore** directory to locations within the document root directory of the web server. | * Later we will create various symbolic links from locations within the **rdcore** directory to locations within the document root directory of the web server. | ||
| Line 334: | Line 334: | ||
| cd / | cd / | ||
| sudo ln -s ../ | sudo ln -s ../ | ||
| - | sudo ln -s ../rdcore/ | + | sudo ln -s ../rd_cake5 |
| sudo ln -s ../ | sudo ln -s ../ | ||
| sudo ln -s ../ | sudo ln -s ../ | ||
| - | sudo ln -s ../rdcore/ | + | sudo ln -s ../rd_cake5/ |
| #For the RD Mobile UI | #For the RD Mobile UI | ||
| sudo ln -s ../ | sudo ln -s ../ | ||
| Line 390: | Line 390: | ||
| * See the example below | * See the example below | ||
| <code bash> | <code bash> | ||
| - | sudo mysql -u root rd < /var/www/rdcore/ | + | sudo mysql -u root rd < /var/www/html/ |
| </ | </ | ||
| * 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: | * 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> | <code bash> | ||
| sudo su | sudo su | ||
| - | cd /var/www/rdcore/ | + | cd /var/www/html/ |
| rm * | rm * | ||
| exit | exit | ||
| Line 426: | Line 426: | ||
| sudo systemctl reload nginx | sudo systemctl reload nginx | ||
| </ | </ | ||
| - | |||
| - | === Tweaks to work with PHP 8.5 === | ||
| - | * Ubuntu 26.04 comes standard with PHP version 8.5. | ||
| - | * We need to tweak two of the CakePHPv4 files in order to work with PHP versions 8.4 and higher. | ||
| - | <code bash> | ||
| - | sudo vi / | ||
| - | </ | ||
| - | * Look for this section: | ||
| - | <code php> | ||
| - | private $levelMap = [ | ||
| - | E_PARSE => ' | ||
| - | E_ERROR => ' | ||
| - | E_CORE_ERROR => ' | ||
| - | E_COMPILE_ERROR => ' | ||
| - | E_USER_ERROR => ' | ||
| - | E_WARNING => ' | ||
| - | E_USER_WARNING => ' | ||
| - | E_COMPILE_WARNING => ' | ||
| - | E_RECOVERABLE_ERROR => ' | ||
| - | E_NOTICE => ' | ||
| - | E_USER_NOTICE => ' | ||
| - | E_STRICT => ' | ||
| - | E_DEPRECATED => ' | ||
| - | E_USER_DEPRECATED => ' | ||
| - | ]; | ||
| - | </ | ||
| - | * Remove **E_STRICT**. | ||
| - | <code php> | ||
| - | private $levelMap = [ | ||
| - | E_PARSE => ' | ||
| - | E_ERROR => ' | ||
| - | E_CORE_ERROR => ' | ||
| - | E_COMPILE_ERROR => ' | ||
| - | E_USER_ERROR => ' | ||
| - | E_WARNING => ' | ||
| - | E_USER_WARNING => ' | ||
| - | E_COMPILE_WARNING => ' | ||
| - | E_RECOVERABLE_ERROR => ' | ||
| - | E_NOTICE => ' | ||
| - | E_USER_NOTICE => ' | ||
| - | // E_STRICT => ' | ||
| - | E_DEPRECATED => ' | ||
| - | E_USER_DEPRECATED => ' | ||
| - | ]; | ||
| - | </ | ||
| - | * Second file to tweak: | ||
| - | <code bash> | ||
| - | sudo vi / | ||
| - | </ | ||
| - | * Look for this section: | ||
| - | <code php> | ||
| - | public static function createFromTimestamp(int|float $timestamp, $tz = null): ChronosInterface | ||
| - | </ | ||
| - | * Change it to: | ||
| - | <code php> | ||
| - | public static function createFromTimestamp(int $timestamp, $tz = null): static | ||
| - | </ | ||
| - | * The CakePHPv4 application should now run without any errors. | ||
| === Important URLs === | === Important URLs === | ||
| * The following URLs are important to reach the user interface | * The following URLs are important to reach the user interface | ||
| Line 503: | Line 445: | ||
| * To activate the cron scripts, execute the following command, which adds the **RADIUSdesk** cron scripts to the cron system | * To activate the cron scripts, execute the following command, which adds the **RADIUSdesk** cron scripts to the cron system | ||
| <code bash> | <code bash> | ||
| - | sudo cp / | + | sudo cp / |
| </ | </ | ||
| * If you want to change the default intervals at which the scripts are executed, simply edit the file / | * If you want to change the default intervals at which the scripts are executed, simply edit the file / | ||
| Line 509: | Line 451: | ||
| ===== Add LETSENCRYPT certificate ===== | ===== Add LETSENCRYPT certificate ===== | ||
| <alert type=" | <alert type=" | ||
| - | Since Ubuntu 26.04 has not yet been released, we will use the instructions for 22.04, which should work just as well | + | Since instructions for Ubuntu 26.04 has not yet been released, we will use the instructions for 22.04, which should work just as well |
| </ | </ | ||
| * Instead of repeating the existing documentation, | * Instead of repeating the existing documentation, | ||