Icingacli error on hand installed icingaweb2

Hi all,

I just compiled apache and php-fpm on my server (debian stable).
Installed icinga2 (debian package) and icinaweb2 (by hand) without problem, everything is running fine.

The problem I have now is when running icingacli, it throws this message:

PHP Warning:  require_once(/usr/library/Icinga/Application/Cli.php): Failed to open stream: No such file or directory in /usr/bin/icingacli on line 5
PHP Fatal error:  Uncaught Error: Failed opening required '/usr/library/Icinga/Application/Cli.php' (include_path='.:') in /usr/bin/icingacli:5
Stack trace:
#0 {main}
  thrown in /usr/bin/icingacli on line 5

My icingaweb2 is installed in /var/www/icingaweb2/ and it looks like the DIR variable is wrongly defined somewhere.

Any idea on that?
Thanks in advance

PHP version 8.1.15
Apache version 2.4.55
Icinga2 version 2.13.6
icingaweb2 version 2.9.5

My bad, I checked the icingacli script embedded in debian package and the path to the cli is fixed. The one I had in my icingacli was using DIR variable which is not correct. I updated the script with the full path to Cli.php and everything is fine now.