New FreePBX 17 Installation on fresh Debian 12

Hello,
i’m desperate. I’m trying to install FreePBX17 with the installation script on a fresh Debian 12 system. Everything works so far. As soon as I create an admin user and try to log in, a completely incomprehensible message appears in the browser window.
" Script error: the ionCube Loader for PHP needs to be installed. The ionCube Loader is the industry standard PHP extension for running protected PHP code, and can usually be added easily to a PHP installation. For Loaders please visit get-loader.ioncube.com and for an instructional video please see http://ioncu.be/LV"
In the logging I see no error information:

root@dsme01:~# tail -f /var/log/nginx/freepbx.log 
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin HTTP/1.1" 301 162 "-" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/ HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/config.php HTTP/1.1" 200 3972 "-" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/css/bootstrap-4.6.1.min.css?load_version=17.0.19.16 HTTP/1.1" 200 162017 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/css/bootstrap-select-1.13.14.min.css?load_version=17.0.19.16 HTTP/1.1" 200 11115 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/css/bootstrap-table-dev.css?load_version=17.0.19.16 HTTP/1.1" 200 10241 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/css/font-awesome.min-4.7.0.css?load_version=17.0.19.16 HTTP/1.1" 200 31000 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/css/bootstrap-table-reorder-rows.css?load_version=17.0.19.16 HTTP/1.1" 200 819 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/css/jquery-ui-1.13.2.custom.css?load_version=17.0.19.16 HTTP/1.1" 200 62398 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/css/typehead.js-bootstrap3-0.2.3.css?load_version=17.0.19.16 HTTP/1.1" 200 6546 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/css/notie.css?load_version=17.0.19.16 HTTP/1.1" 200 4956 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/css/text-editor-1.2.1.css?load_version=17.0.19.16 HTTP/1.1" 200 9152 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/css/outdatedbrowser.min.css?load_version=17.0.19.16 HTTP/1.1" 200 1066 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/less/cache/lessphp_2bffdbfc6f4fe69863453ca478b8fe04caa1a224.css HTTP/1.1" 200 123523 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/js/outdatedbrowser-1.1.3.min.js?load_version=17.0.19.16 HTTP/1.1" 200 3176 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/js/jquery-3.6.0.min.js?load_version=17.0.19.16 HTTP/1.1" 200 89500 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/js/selector-set-1.1.0.js?load_version=17.0.19.16 HTTP/1.1" 200 11369 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/js/class.js?load_version=17.0.19.16 HTTP/1.1" 200 2076 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/js/jquery.selector-set-0.2.2.js?load_version=17.0.19.16 HTTP/1.1" 200 4326 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/js/jed-1.1.1.js?load_version=17.0.19.16 HTTP/1.1" 200 37240 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/js/FreePBX.js?load_version=17.0.19.16 HTTP/1.1" 200 833 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/js/modgettext.js?load_version=17.0.19.16 HTTP/1.1" 200 2281 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/images/tango.png HTTP/1.1" 200 5611 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/js/views/login.js HTTP/1.1" 200 183 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/modules/userman/assets/js/adminPwdExpReminder.js HTTP/1.1" 200 4347 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/images/freepbx_small.png?load_version=17.0.19.16 HTTP/1.1" 200 2901 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/images/sangoma-horizontal_thumb.png HTTP/1.1" 200 3517 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/images/sys-admin.png HTTP/1.1" 200 104685 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/fonts/opensans-regular-webfont.woff2 HTTP/1.1" 200 50876 "https://freepbx.intern.example.com/admin/assets/less/cache/lessphp_2bffdbfc6f4fe69863453ca478b8fe04caa1a224.css" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/images/user-control.png HTTP/1.1" 200 104685 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:38 +0100] "GET /admin/assets/images/support.png HTTP/1.1" 200 104685 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:39 +0100] "GET /admin/assets/js/pbxlib_288caefe259a2be023bb306bc6c095f2fba41628.js?load_version=17.0.19.16 HTTP/1.1" 200 1650583 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:39 +0100] "POST /admin/ajax.php?command=navbarToogle HTTP/1.1" 401 40 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:39 +0100] "GET /admin/config.php?logout=true HTTP/1.1" 200 31 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:39 +0100] "GET /admin/images/favicon.ico HTTP/1.1" 200 1150 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:47 +0100] "GET /admin/assets/css/images/ui-bg_glass_75_ffffff_1x400.png HTTP/1.1" 200 99 "https://freepbx.intern.example.com/admin/assets/css/jquery-ui-1.13.2.custom.css?load_version=17.0.19.16" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:47 +0100] "GET /admin/assets/css/images/ui-icons_222222_256x240.png HTTP/1.1" 200 3710 "https://freepbx.intern.example.com/admin/assets/css/jquery-ui-1.13.2.custom.css?load_version=17.0.19.16" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:52:47 +0100] "GET /admin/assets/fonts/opensans-bold-webfont.woff2 HTTP/1.1" 200 52788 "https://freepbx.intern.example.com/admin/assets/less/cache/lessphp_2bffdbfc6f4fe69863453ca478b8fe04caa1a224.css" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"








192.168.30.43 - - [30/Oct/2024:16:53:06 +0100] "POST /admin/ajax.php?module=userman&command=checkPasswordReminder HTTP/1.1" 200 58 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"
192.168.30.43 - - [30/Oct/2024:16:53:06 +0100] "POST /admin/config.php HTTP/1.1" 200 274 "https://freepbx.intern.example.com/admin/config.php" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36"

What to do anymore? I need support.
Greetings from Stefan Harbich

Thanks for the support

There are a lot of choices you can make when installing Debian. Was anything unusual about your install?

In the FreePBX GUI ? Is the username something normal like all lower-case letters and maybe a few numbers ?

Hello,
i read in the log file that there is an error with the MariaDB installation during the automated installation. This is also installed by the script. The asterisk and asteriskcdrdb and the database user freepbxuser cannot be created. Although the database is freshly installed.
The script “sng_freepbx_debian_install.sh” must have an error. Here is the installation log:

2024-11-01 16:22:04 - freepbx17 installed successfully....
2024-11-01 16:22:04 - ############################### 
2024-11-01 16:22:04 - Installing all local modules
Exception: SQLSTATE[HY000] [1045] Access denied for user 'freepbxuser'@'localhost' (using password: YES)::SQLSTATE[HY000] [1045] Access denied for user 'freepbxuser'@'localhost' (using password: YES) in file /var/www/html/admin/libraries/utility.functions.php on line 120

Caused by
PDOException: SQLSTATE[HY000] [1045] Access denied for user 'freepbxuser'@'localhost' (using password: YES) in file /var/www/html/admin/libraries/BMO/Database.class.php on line 141
Stack trace:
  1. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  2. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:147
  3. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:141
  4. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:141
  5. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:83
  6. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  7. require_once() /etc/freepbx.conf:10
  8. include_once() /var/lib/asterisk/bin/fwconsole:12
2024-11-01 16:22:04 - ****** INSTALLATION FAILED *****
2024-11-01 16:22:04 - Installation failed at step Installing all local modules. Please check log /var/log/pbx/freepbx17-install-2024.11.01-16.14.06.log for details.
2024-11-01 16:22:04 - Error at line: 1132 exiting with code 1 (last command was: fwconsole ma installlocal >> $log)
2024-11-01 16:22:04 - Exiting script

The MariaDB package was installed with the script. So why does the error occur?

Maybe a race condition during MariaDB installation ?

Can you post the entire installation log (link from pastebin) ?

I didn’t send the whole complete log.
It starts with the installation of the database server and the end.
Database installation

...
2024-11-01 16:15:29 - Installing mariadb-server ....
Paketlisten werden gelesen…
Abhängigkeitsbaum wird aufgebaut…
Statusinformationen werden eingelesen…
Die folgenden zusätzlichen Pakete werden installiert:
  galera-4 libconfig-inifiles-perl libdaxctl1 libdbd-mariadb-perl
  libhtml-template-perl libndctl6 libpmem1 mariadb-client mariadb-client-core
  mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4
  mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo
  mariadb-plugin-provider-snappy mariadb-server-core pv rsync
Vorgeschlagene Pakete:
  libipc-sharedcache-perl mariadb-test netcat-openbsd doc-base
  python3-braceexpand
Die folgenden NEUEN Pakete werden installiert:
  galera-4 libconfig-inifiles-perl libdaxctl1 libdbd-mariadb-perl
  libhtml-template-perl libndctl6 libpmem1 mariadb-client mariadb-client-core
  mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4
  mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo
  mariadb-plugin-provider-snappy mariadb-server mariadb-server-core pv rsync
Vorkonfiguration der Pakete ...
0 aktualisiert, 18 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 16,5 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 185 MB Plattenplatz zusätzlich benutzt.
Vormals nicht ausgewähltes Paket galera-4 wird gewählt.
(Lese Datenbank ... 380102 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../00-galera-4_26.4.18-0+deb12u1_amd64.deb ...
Entpacken von galera-4 (26.4.18-0+deb12u1) ...
Vormals nicht ausgewähltes Paket libconfig-inifiles-perl wird gewählt.
Vorbereitung zum Entpacken von .../01-libconfig-inifiles-perl_3.000003-2_all.deb ...
Entpacken von libconfig-inifiles-perl (3.000003-2) ...
Vormals nicht ausgewähltes Paket mariadb-client-core wird gewählt.
Vorbereitung zum Entpacken von .../02-mariadb-client-core_1%3a10.11.6-0+deb12u1_amd64.deb ...
Entpacken von mariadb-client-core (1:10.11.6-0+deb12u1) ...
Vormals nicht ausgewähltes Paket mariadb-client wird gewählt.
Vorbereitung zum Entpacken von .../03-mariadb-client_1%3a10.11.6-0+deb12u1_amd64.deb ...
Entpacken von mariadb-client (1:10.11.6-0+deb12u1) ...
Vormals nicht ausgewähltes Paket libdaxctl1:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../04-libdaxctl1_76.1-1_amd64.deb ...
Entpacken von libdaxctl1:amd64 (76.1-1) ...
Vormals nicht ausgewähltes Paket libndctl6:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../05-libndctl6_76.1-1_amd64.deb ...
Entpacken von libndctl6:amd64 (76.1-1) ...
Vormals nicht ausgewähltes Paket libpmem1:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../06-libpmem1_1.12.1-2_amd64.deb ...
Entpacken von libpmem1:amd64 (1.12.1-2) ...
Vormals nicht ausgewähltes Paket mariadb-server-core wird gewählt.
Vorbereitung zum Entpacken von .../07-mariadb-server-core_1%3a10.11.6-0+deb12u1_amd64.deb ...
Entpacken von mariadb-server-core (1:10.11.6-0+deb12u1) ...
Vormals nicht ausgewähltes Paket rsync wird gewählt.
Vorbereitung zum Entpacken von .../08-rsync_3.2.7-1_amd64.deb ...
Entpacken von rsync (3.2.7-1) ...
Vormals nicht ausgewähltes Paket mariadb-server wird gewählt.
Vorbereitung zum Entpacken von .../09-mariadb-server_1%3a10.11.6-0+deb12u1_amd64.deb ...
Entpacken von mariadb-server (1:10.11.6-0+deb12u1) ...
Vormals nicht ausgewähltes Paket libdbd-mariadb-perl wird gewählt.
Vorbereitung zum Entpacken von .../10-libdbd-mariadb-perl_1.22-1+b1_amd64.deb ...
Entpacken von libdbd-mariadb-perl (1.22-1+b1) ...
Vormals nicht ausgewähltes Paket libhtml-template-perl wird gewählt.
Vorbereitung zum Entpacken von .../11-libhtml-template-perl_2.97-2_all.deb ...
Entpacken von libhtml-template-perl (2.97-2) ...
Vormals nicht ausgewähltes Paket mariadb-plugin-provider-bzip2 wird gewählt.
Vorbereitung zum Entpacken von .../12-mariadb-plugin-provider-bzip2_1%3a10.11.6-0+deb12u1_amd64.deb ...
Entpacken von mariadb-plugin-provider-bzip2 (1:10.11.6-0+deb12u1) ...
Vormals nicht ausgewähltes Paket mariadb-plugin-provider-lz4 wird gewählt.
Vorbereitung zum Entpacken von .../13-mariadb-plugin-provider-lz4_1%3a10.11.6-0+deb12u1_amd64.deb ...
Entpacken von mariadb-plugin-provider-lz4 (1:10.11.6-0+deb12u1) ...
Vormals nicht ausgewähltes Paket mariadb-plugin-provider-lzma wird gewählt.
Vorbereitung zum Entpacken von .../14-mariadb-plugin-provider-lzma_1%3a10.11.6-0+deb12u1_amd64.deb ...
Entpacken von mariadb-plugin-provider-lzma (1:10.11.6-0+deb12u1) ...
Vormals nicht ausgewähltes Paket mariadb-plugin-provider-lzo wird gewählt.
Vorbereitung zum Entpacken von .../15-mariadb-plugin-provider-lzo_1%3a10.11.6-0+deb12u1_amd64.deb ...
Entpacken von mariadb-plugin-provider-lzo (1:10.11.6-0+deb12u1) ...
Vormals nicht ausgewähltes Paket mariadb-plugin-provider-snappy wird gewählt.
Vorbereitung zum Entpacken von .../16-mariadb-plugin-provider-snappy_1%3a10.11.6-0+deb12u1_amd64.deb ...
Entpacken von mariadb-plugin-provider-snappy (1:10.11.6-0+deb12u1) ...
Vormals nicht ausgewähltes Paket pv wird gewählt.
Vorbereitung zum Entpacken von .../17-pv_1.6.20-1_amd64.deb ...
Entpacken von pv (1.6.20-1) ...
libconfig-inifiles-perl (3.000003-2) wird eingerichtet ...
galera-4 (26.4.18-0+deb12u1) wird eingerichtet ...
libhtml-template-perl (2.97-2) wird eingerichtet ...
mariadb-client-core (1:10.11.6-0+deb12u1) wird eingerichtet ...
libdbd-mariadb-perl (1.22-1+b1) wird eingerichtet ...
libdaxctl1:amd64 (76.1-1) wird eingerichtet ...
pv (1.6.20-1) wird eingerichtet ...
libndctl6:amd64 (76.1-1) wird eingerichtet ...
libpmem1:amd64 (1.12.1-2) wird eingerichtet ...
rsync (3.2.7-1) wird eingerichtet ...
mariadb-client (1:10.11.6-0+deb12u1) wird eingerichtet ...
mariadb-server-core (1:10.11.6-0+deb12u1) wird eingerichtet ...
mariadb-server (1:10.11.6-0+deb12u1) wird eingerichtet ...
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
mariadb-plugin-provider-bzip2 (1:10.11.6-0+deb12u1) wird eingerichtet ...
mariadb-plugin-provider-lzma (1:10.11.6-0+deb12u1) wird eingerichtet ...
mariadb-plugin-provider-lzo (1:10.11.6-0+deb12u1) wird eingerichtet ...
mariadb-plugin-provider-lz4 (1:10.11.6-0+deb12u1) wird eingerichtet ...
mariadb-plugin-provider-snappy (1:10.11.6-0+deb12u1) wird eingerichtet ...
Trigger für man-db (2.11.2-2) werden verarbeitet ...
Trigger für libc-bin (2.36-9+deb12u8) werden verarbeitet ...
Trigger für mariadb-server (1:10.11.6-0+deb12u1) werden verarbeitet ...
2024-11-01 16:16:24 - mariadb-server installed successfully....
2024-11-01 16:16:24 - ############################### 
2024-11-01 16:16:24 - ############################### 
2024-11-01 16:16:24 - mariadb-client already present ....
2024-11-01 16:16:24 - ############################### 
2024-11-01 16:16:24 - ############################### 
2024-11-01 16:16:24 - bison already present ....
2024-11-01 16:16:24 - ############################### 
2024-11-01 16:16:24 - ############################### 
2024-11-01 16:16:24 - flex already present ....
2024-11-01 16:16:24 - ############################### 
2024-11-01 16:16:24 - ############################### 
2024-11-01 16:16:24 - flite already present ....
2024-11-01 16:16:24 - ############################### 
2024-11-01 16:16:24 - ############################### 
2024-11-01 16:16:24 - Installing php8.2 ....
...

Freepbx installatin

...
2024-11-01 16:20:27 - ############################### 
2024-11-01 16:20:27 - Installing FreePBX packages
2024-11-01 16:20:27 - ############################### 
2024-11-01 16:20:28 - sysadmin17 already present ....
2024-11-01 16:20:28 - ############################### 
2024-11-01 16:20:28 - ############################### 
2024-11-01 16:20:28 - sangoma-pbx17 already present ....
2024-11-01 16:20:28 - ############################### 
2024-11-01 16:20:28 - ############################### 
2024-11-01 16:20:28 - ffmpeg already present ....
2024-11-01 16:20:28 - ############################### 
2024-11-01 16:20:28 - Enabling modules.
WARNING: Module freepbx ini file doesn't exist under /etc/php/8.2/mods-available
WARNING: Module freepbx ini file doesn't exist under /etc/php/8.2/mods-available
2024-11-01 16:20:28 - Restarting fail2ban
2024-11-01 16:20:29 - Installing FreePBX 17
2024-11-01 16:20:29 - ############################### 
2024-11-01 16:20:29 - ioncube-loader-82 already present ....
2024-11-01 16:20:29 - ############################### 
2024-11-01 16:20:29 - ############################### 
2024-11-01 16:20:29 - Installing freepbx17 ....
Paketlisten werden gelesen…
Abhängigkeitsbaum wird aufgebaut…
Statusinformationen werden eingelesen…
Die folgenden NEUEN Pakete werden installiert:
  freepbx17
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 198 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 624 MB Plattenplatz zusätzlich benutzt.
Vormals nicht ausgewähltes Paket freepbx17 wird gewählt.
(Lese Datenbank ... 400074 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../freepbx17_17.1-1.sng12_amd64.deb ...
Entpacken von freepbx17 (17.1-1.sng12) ...
freepbx17 (17.1-1.sng12) wird eingerichtet ...
Konfigurationsdatei »/etc/asterisk/ari_additional.conf«
 ==> Datei auf System wurde von Ihnen oder von einem Skript angelegt.
 ==> Datei auch in Paket vom Paket-Betreuer bereitgestellt.
 ==> Alte Konfigurationsdatei wird als Vorgabe beibehalten.
Konfigurationsdatei »/etc/asterisk/ari_general_additional.conf«
 ==> Datei auf System wurde von Ihnen oder von einem Skript angelegt.
 ==> Datei auch in Paket vom Paket-Betreuer bereitgestellt.
 ==> Alte Konfigurationsdatei wird als Vorgabe beibehalten.
Konfigurationsdatei »/etc/asterisk/extensions_additional.conf«
 ==> Datei auf System wurde von Ihnen oder von einem Skript angelegt.
 ==> Datei auch in Paket vom Paket-Betreuer bereitgestellt.
 ==> Alte Konfigurationsdatei wird als Vorgabe beibehalten.
Konfigurationsdatei »/etc/asterisk/smdi.conf«
 ==> Datei auf System wurde von Ihnen oder von einem Skript angelegt.
 ==> Datei auch in Paket vom Paket-Betreuer bereitgestellt.
 ==> Alte Konfigurationsdatei wird als Vorgabe beibehalten.
Konfigurationsdatei »/etc/asterisk/statsd.conf«
 ==> Datei auf System wurde von Ihnen oder von einem Skript angelegt.
 ==> Datei auch in Paket vom Paket-Betreuer bereitgestellt.
 ==> Alte Konfigurationsdatei wird als Vorgabe beibehalten.
2024-11-01 16:22:04 - freepbx17 installed successfully....
2024-11-01 16:22:04 - ############################### 
2024-11-01 16:22:04 - Installing all local modules
Exception: SQLSTATE[HY000] [1045] Access denied for user 'freepbxuser'@'localhost' (using password: YES)::SQLSTATE[HY000] [1045] Access denied for user 'freepbxuser'@'localhost' (using password: YES) in file /var/www/html/admin/libraries/utility.functions.php on line 120
Caused by
PDOException: SQLSTATE[HY000] [1045] Access denied for user 'freepbxuser'@'localhost' (using password: YES) in file /var/www/html/admin/libraries/BMO/Database.class.php on line 141
Stack trace:
  1. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  2. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:147
  3. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:141
  4. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:141
  5. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:83
  6. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  7. require_once() /etc/freepbx.conf:10
  8. include_once() /var/lib/asterisk/bin/fwconsole:12
2024-11-01 16:22:04 - ****** INSTALLATION FAILED *****
2024-11-01 16:22:04 - Installation failed at step Installing all local modules. Please check log /var/log/pbx/freepbx17-install-2024.11.01-16.14.06.log for details.
2024-11-01 16:22:04 - Error at line: 1132 exiting with code 1 (last command was: fwconsole ma installlocal >> $log)
2024-11-01 16:22:04 - Exiting script

Too bad nobody can help me?

No one who can help?

You might want to try again with a fresh install. I just installed a fresh Debian VM, ran general system updates, “sudo su” to get into root and then ran the FreePBX 17 install script.

Script seems to run ok and FreePBX GUI came up asking for a username and password. I added the account and the install wizard continued.

The only issue I ran into was at the point in the wizard in the image below. It through up some “Ajax” errors and then the page failed to load and refreshing the page didn’t help.

After that, I reboot the VM, wait 5-10 minutes and then accessed the GUI using the account I set earlier and this time the wizard seemed to finished ok. I think I selected No on the “automatically configure Asterisk IP settings?”

As of right now, GUI is working fine.

Hallo, gut jetzt läuft bei mir die Installation auch durch. Die Startseite kommt. Ich lege den Administrator an und nach der Anmeldung kommt im Browser folgende Fehlermeldung:

Script error: the ionCube Loader for PHP needs to be installed. The ionCube Loader is the industry standard PHP extension for running protected PHP code, and can usually be added easily to a PHP installation. For Loaders please visit get-loader.ioncube.com and for an instructional video please see http://ioncu.be/LV

Das gleiche kommt auch wenn ich oben links auf dem Button UCP klicke. Ich kann mir nicht vorstellen das ich der einzige bin der das Problem hat?
Gruß von Stefan Harbich


I can’t see any error messages in the Apache logs. Which other log files can I look?

I have added the log for you:

tail -f /var/log/asterisk/freepbx.log
[2024-11-05 14:30:11] [freepbx.INFO]: Connection attmempt to AMI failed [] []
[2024-11-05 14:30:11] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:11] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:11] [freepbx.INFO]: Deprecated way to add Console commands for module pbxmfa, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:11] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:13] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:13] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:13] [freepbx.INFO]: Deprecated way to add Console commands for module pbxmfa, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:13] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:13] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/bulkhandler/Console/Bulkimport.class.php on line 10 [] []
[2024-11-05 14:30:14] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:14] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:14] [freepbx.INFO]: Deprecated way to add Console commands for module pbxmfa, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:14] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:30:14] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/bulkhandler/Console/Bulkimport.class.php on line 10 [] []
[2024-11-05 14:30:14] [freepbx.INFO]: Starting Call Transfer Monitoring Service [] []
[2024-11-05 14:30:15] [freepbx.INFO]: Stopping Call Transfer Monitoring Service [] []
[2024-11-05 14:30:15] [freepbx.INFO]: Restarting Call Transfer Monitoring Service [] []
[2024-11-05 14:30:16] [freepbx.INFO]: Call Trasnfer Event listener  [] []
[2024-11-05 14:31:01] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:31:01] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:31:01] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:31:01] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:31:01] [freepbx.INFO]: Deprecated way to add Console commands for module pbxmfa, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:31:01] [freepbx.INFO]: Deprecated way to add Console commands for module pbxmfa, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:31:01] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2024-11-05 14:31:01] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
systemctl status freepbx
 freepbx.service - FreePBX VoIP Server
     Loaded: loaded (/lib/systemd/system/freepbx.service; enabled; vendor preset: enabled)
     Active: active (exited) since Tue 2024-11-05 15:30:21 CET; 1min 25s ago
    Process: 126842 ExecStart=/usr/sbin/fwconsole start (code=exited, status=0/SUCCESS)
   Main PID: 126842 (code=exited, status=0/SUCCESS)
      Tasks: 96 (limit: 38438)
     Memory: 81.1M
     CGroup: /system.slice/freepbx.service
             ├─126989 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk
             ├─126991 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c
             ├─127129 PM2 v5.2.2: God Daemon (/home/asterisk/.pm2)
             └─127207 php /var/www/html/admin/modules/core/call-transfer-events.php

Nov 05 15:30:20 dsme01 runuser[127621]: pam_unix(runuser:session): session closed for user asterisk
Nov 05 15:30:20 dsme01 runuser[127654]: pam_unix(runuser:session): session opened for user asterisk(uid=994) by (uid=0)
Nov 05 15:30:20 dsme01 runuser[127654]: pam_unix(runuser:session): session closed for user asterisk
Nov 05 15:30:20 dsme01 fwconsole[126842]: [>---------------------------] < 1 sec
Nov 05 15:30:20 dsme01 runuser[127683]: pam_unix(runuser:session): session opened for user asterisk(uid=994) by (uid=0)

Hello,
i have a suspicion. Is there any way I can check whether my admin account was created correctly? It should be saved in the MSQL database asterisk, right?

This is my third virtual machine and I keep getting the same error. Then there’s the very poor support here. I will advise my customers against using FreePBX.

If you want paid support there’s Sangoma, partners, and other experts.

This forum is a user community and folks support one another as they are able. Unfortunately, no one has experienced the same trouble you have with your install. I recommend you engage paid support using the Support link at the top of this site.

Thank you. I’d rather look for another product.

How did you set up NGINX ? Why ? FreePBX runs on Apache.

Was this a re-install ?

You are wrong there, FreePBX runs on any webserver, I personally use nginx and have for many years, kudos to @billsimon

Thank you for the link. Maybe modify:

to include: that supports PHP 8.2
and we can agree a bit more.

To clarify, FreePBX is designed to run on Apache and that is what the standard v17 installer does.

Again I will have to disagree, when has nginx not supported the latest version of PHP ?

FreePBX has always been designed to run under any webserver, it is just your ‘distro’ that comes bundled with Apache2 (not as you say apache), I suspect you are confusing FreePBX as published with your Distro (which is obfuscated)

As a collorary when will FreePBX be adjusted to run 8.4 (current) or 8.5 (next week) ;-), your distro (Debian 12) has both 8.3 and 8,4 in their repos.

1 Like