Dear all
I’m new to Asterisk and after installing Asterisk on my Debian 11.3 I’m trying to implemet the Freepbx UI. I’m following the following tutorial: https://computingforgeeks.com/how-to-install-freepbx-on-debian-linux/.
Somehow when trying to install FreePBX with the command ‘sudo ./install -n’ I get the following error: ‘ParseError: syntax error, unexpected ‘|’, expecting ‘;’ or ‘{’ in file /var/www/html/admin/libraries/BMO/Database.class.php on line 239’ even tough I didn’t do anything on that file.
I’ll put my whole output below in case that helps anybody helping me:). Thank you guys in advance.
Assuming you are Database Root
Checking if SELinux is enabled…Its not (good)!
Reading /etc/asterisk/asterisk.conf…Done
Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Yes. Determined Asterisk version to be: 16.28.0
Checking if NodeJS is installed and we can get a version from it…Yes. Determined NodeJS version to be: 18.18.0
Preliminary checks done. Starting FreePBX Installation
Checking if this is a new install…No (/etc/freepbx.conf file detected)
ParseError: syntax error, unexpected ‘|’, expecting ‘;’ or ‘{’ in file /var/www/html/admin/libraries/BMO/Database.class.php on line 239
Stack trace:
- ParseError->() /var/www/html/admin/libraries/BMO/Database.class.php:239
- FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
- require_once() /etc/freepbx.conf:10
- include_once() /etc/freepbx/installlib/installcommand.class.php:384
- FreePBX\Install\FreePBXInstallCommand->execute() /etc/freepbx/amp_conf/htdocs/admin/libraries/Composer/vendor/symfony/console/Command/Command.php:255
- Symfony\Component\Console\Command\Command->run() /etc/freepbx/amp_conf/htdocs/admin/libraries/Composer/vendor/symfony/console/Application.php:992
- Symfony\Component\Console\Application->doRunCommand() /etc/freepbx/amp_conf/htdocs/admin/libraries/Composer/vendor/symfony/console/Application.php:255
- Symfony\Component\Console\Application->doRun() /etc/freepbx/amp_conf/htdocs/admin/libraries/Composer/vendor/symfony/console/Application.php:148
- Symfony\Component\Console\Application->run() /etc/freepbx/install:22