Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| install_26_4 [2026/04/07 10:31] – created system | install_26_4 [2026/04/07 16:14] (current) – [Install RADIUSdesk] system | ||
|---|---|---|---|
| Line 160: | Line 160: | ||
| * We will install a program (actually a service) called **php-fpm**. | * We will install a program (actually a service) called **php-fpm**. | ||
| * This service waits for requests for interpretation. | * This service waits for requests for interpretation. | ||
| - | * Install the php-fpm service by installing the default version 8.3 of the packages | + | * Install the php-fpm service by installing the default version 8.5 of the packages |
| <code bash> | <code bash> | ||
| sudo apt-get -y install php-fpm | sudo apt-get -y install php-fpm | ||
| - | sudo systemctl enable php8.3-fpm | + | sudo systemctl enable php8.5-fpm |
| - | sudo systemctl start php8.3-fpm | + | sudo systemctl start php8.5-fpm |
| </ | </ | ||
| Line 178: | Line 178: | ||
| index index.php index.html index.htm index.nginx-debian.html; | index index.php index.html index.htm index.nginx-debian.html; | ||
| </ | </ | ||
| - | * Enable PHP processing by leaving this section uncommented. Note that we are using the UNIX socket and that we are using 8.3 and not 7.4, which was originally specified in the configuration file. | + | * Enable PHP processing by leaving this section uncommented. Note that we are using the UNIX socket and that we are using 8.5 and not 7.4, which was originally specified in the configuration file. |
| <code bash> | <code bash> | ||
| # Pass PHP scripts to FastCGI server | # Pass PHP scripts to FastCGI server | ||
| Line 186: | Line 186: | ||
| # | # | ||
| # # With php-fpm (or other unix sockets): | # # With php-fpm (or other unix sockets): | ||
| - | fastcgi_pass unix:/ | + | fastcgi_pass unix:/ |
| # # With php-cgi (or other tcp sockets): | # # With php-cgi (or other tcp sockets): | ||
| # | # | ||
| Line 226: | Line 226: | ||
| <code bash> | <code bash> | ||
| - | sudo apt-get -y install mariadb-server php8.3-mysql | + | sudo apt-get -y install mariadb-server php8.5-mysql |
| sudo systemctl enable mariadb | sudo systemctl enable mariadb | ||
| sudo systemctl restart mariadb | sudo systemctl restart mariadb | ||
| 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 309: | Line 309: | ||
| <code bash> | <code bash> | ||
| sudo apt-get -y install php-cli php-mysql php-gd php-curl php-xml php-mbstring php-intl php-sqlite3 git wget | sudo apt-get -y install php-cli php-mysql php-gd php-curl php-xml php-mbstring php-intl php-sqlite3 git wget | ||
| - | sudo systemctl restart php8.3-fpm | + | sudo systemctl restart php8.5-fpm |
| </ | </ | ||
| * Check out the **rdcore** git repository. | * Check out the **rdcore** git repository. | ||
| 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 | ||