File manager issue

Good day,
I’ve just updated hestia to the new version, but unfortunately the file manager wasn’t able to re-install during the upgrade. I tried re-installing it via v-add-sys-filemanager, but no luck -

Fatal error: Uncaught Error: Class ‘Phar’ not found in /home/admin/.composer/composer:23
Stack trace:
#0 {main}
thrown in /home/admin/.composer/composer on line 23
ERROR: File Manager installation failed!
Please report this to our development team:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Any thoughts on how to fix it?

Thank you

Thank you @eris, I’ll check the link

So I was able to fix the issue. Recently I have migrated to php 8, and disabled 7.4, which seems like was a problem. I have reinstalled manually php 7.4, and everything worked.