Differences

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

Link to this comparison view

Next revision
Previous revision
install_26_4 [2026/04/07 10:31] – created systeminstall_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.of the packages +  * Install the php-fpm service by installing the default version 8.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
 </code> </code>
  
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;
 </code> </code>
-  * Enable PHP processing by leaving this section uncommented. Note that we are using the UNIX socket and that we are using 8.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.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:/var/run/php/php8.3-fpm.sock;+    fastcgi_pass unix:/var/run/php/php8.5-fpm.sock;
     #       # With php-cgi (or other tcp sockets):     #       # With php-cgi (or other tcp sockets):
     #       fastcgi_pass 127.0.0.1:9000;     #       fastcgi_pass 127.0.0.1:9000;
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 10.3, which has introduced some strict modes that have some issues with the RADIUSdesk database implementation.+  * On Ubuntu 26.04, the bundled version of MariaDB is on version 11.8, which has introduced some strict modes that have some issues with the RADIUSdesk database implementation.
   * We will disable the strict SQL mode in MariaDB by creating a new file /etc/mysql/conf.d/disable_strict_mode.cnf   * We will disable the strict SQL mode in MariaDB by creating a new file /etc/mysql/conf.d/disable_strict_mode.cnf
 <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
 </code> </code>
   *  Check out the **rdcore** git repository.   *  Check out the **rdcore** git repository.
Line 427: Line 427:
 </code> </code>
  
 +=== 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 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Error/PhpError.php
 +</code>
 +  * Look for this section:
 +<code php>
 +private $levelMap = [
 +        E_PARSE => 'error',
 +        E_ERROR => 'error',
 +        E_CORE_ERROR => 'error',
 +        E_COMPILE_ERROR => 'error',
 +        E_USER_ERROR => 'error',
 +        E_WARNING => 'warning',
 +        E_USER_WARNING => 'warning',
 +        E_COMPILE_WARNING => 'warning',
 +        E_RECOVERABLE_ERROR => 'warning',
 +        E_NOTICE => 'notice',
 +        E_USER_NOTICE => 'notice',
 +        E_STRICT => 'strict',
 +        E_DEPRECATED => 'deprecated',
 +        E_USER_DEPRECATED => 'deprecated',
 +    ];
 +</code>
 +  * Remove **E_STRICT**.
 +<code php>
 +private $levelMap = [
 +        E_PARSE => 'error',
 +        E_ERROR => 'error',
 +        E_CORE_ERROR => 'error',
 +        E_COMPILE_ERROR => 'error',
 +        E_USER_ERROR => 'error',
 +        E_WARNING => 'warning',
 +        E_USER_WARNING => 'warning',
 +        E_COMPILE_WARNING => 'warning',
 +        E_RECOVERABLE_ERROR => 'warning',
 +        E_NOTICE => 'notice',
 +        E_USER_NOTICE => 'notice',
 +    //    E_STRICT => 'strict',
 +        E_DEPRECATED => 'deprecated',
 +        E_USER_DEPRECATED => 'deprecated',
 +    ];
 +</code>
 +  * Second file to tweak:
 +<code bash>
 +sudo vi /var/www/rdcore/cake4/rd_cake/vendor/cakephp/chronos/src/Traits/FactoryTrait.php
 +</code>
 +  * Look for this section:
 +<code php>
 +public static function createFromTimestamp(int|float $timestamp, $tz = null): ChronosInterface
 +</code>
 +  * Change it to:
 +<code php>
 +public static function createFromTimestamp(int $timestamp, $tz = null): static
 +</code>
 +  * 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
  • install_26_4.1775550695.txt.gz
  • Last modified: 2026/04/07 10:31
  • by system