I've set a new installation of Zabbix 5.4 from sources using:
Initially everything went well. I was able to start the server with no errors.
Then, I copied Zabbix UI to "/var/www/html".
When I tried to open Zabbix's frontend I got an "HTTP ERROR 500".
Looking at "/var/log/httpd/error_log", it shows me the error bellow.
This error line points to this code excerpt:
That's unusual to me.
Any idea on what that is?
Code:
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 --with-openssl --with-ldap --with-ssh
Then, I copied Zabbix UI to "/var/www/html".
Code:
cp -a ./ui /var/www/zabbix/
Looking at "/var/log/httpd/error_log", it shows me the error bellow.
Code:
[Sun Nov 21 20:03:12.845099 2021] [:error] [pid 5938] [client 192.168.1.3:2511] PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /var/www/html/zabbix/include/classes/user/CWebUser.php on line 48
PHP Code:
/**
* Tries to login a user and populates self::$data on success.
*
* @param string $login user login
* @param string $password user password
*
* @throws Exception if user cannot be logged in
*
* @return bool
*/
public static function login(string $login, string $password): bool { /** << ACTUAL LINE 48*/
try {
self::$data = API::User()->login([
'username' => $login,
'password' => $password,
'userData' => true
]);
That's unusual to me.
Any idea on what that is?

Comment