Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| install_26_4 [2026/04/07 10:37] – system | install_26_4 [2026/04/07 16:14] (current) – [Install RADIUSdesk] system | ||
|---|---|---|---|
| Line 233: | Line 233: | ||
| === Deactivate strict mode === | === Deactivate strict mode === | ||
| - | * On Ubuntu 26.04, the bundled version of MariaDB is on version | + | * On Ubuntu 26.04, the bundled version of MariaDB is on version |
| * We will disable the strict SQL mode in MariaDB by creating a new file / | * We will disable the strict SQL mode in MariaDB by creating a new file / | ||
| <code bash> | <code bash> | ||
| Line 427: | Line 427: | ||
| </ | </ | ||
| + | === 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 | ||