rdcore
rdcore copied to clipboard
PHP Version 8 required but 7.4 should be installed?
Hello,
According to the install instructions I am suppposed to install php 7.4, which I did. Still I get this error in my nginx logs:
$ sudo tail -f /var/log/nginx/error.log 2024/01/03 16:38:28 [error] 14208#14208: *23 FastCGI sent in stderr: "PHP message: PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.33. in /var/www/rdcore/cake4/rd_cake/vendor/composer/platform_check.php on line 24" while reading response header from upstream, client: 10.212.134.200, server: _, request: "GET /cake4/rd_cake/dashboard/branding.json?_dc=1704299908573&sel_language=4_4 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "192.168.26.103", referrer: "http://192.168.26.103/rd/build/production/Rd/" Here is my php version:
$ php -v
PHP 7.4.33 (cli) (built: Jun 9 2023 16:51:37) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
How can I fix this? Simply install php8?
Hi @hellofesjoe, I will recommend installing PHP 8.1+. This will remove the php version error and note that PHP 7.4 is already marked as end of life (refer to this), so it is highly advised to move to PHP 8+.
UPDATE: You should use the updated documentation on RADIUSDesk website