Error when reinstalling FreePBX

When entering the following command it hangs forever and doesn’t output anything:
/usr/bin/sudo /usr/libexec/nethserver/api/system-packages/update

When entering the following command it returns immedtiably, but also no output
/usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/system-packages/update

When I install with
yum install netserver-freepbx
I get not error, but are not able to login into the GUI with root

I tried to reset admin password:
When I try:
fwconsole unlock t3jpc7aie2ci1ud9peoh9uk5k1

I get the output
PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php on line 90
Whoops\Exception\ErrorException: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in file /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php on line 90
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php:90