I want to install FreePBX, follow this step from: https://cloudinfrastructureservices.co.uk/how-to-install-freepbx-on-ubuntu-22-04-23-04/,
With step: ./install -n, I got this error:
root@ip-172-31-23-59:~/asterisk-20.7.0/freepbx# ./install -n
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: 20.7.0
Checking if NodeJS is installed and we can get a version from it...Yes. Determined NodeJS version to be: 12.22.9
Preliminary checks done. Starting FreePBX Installation
Checking if this is a new install...Yes (No /etc/freepbx.conf file detected)
Database Root installation checking credentials and permissions..Connected!
PHP Fatal error: Declaration of FreePBX\Database::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false in /root/asterisk-20.7.0/freepbx/amp_conf/htdocs/admin/libraries/BMO/Database.class.php on line 240
Can someone help? I am using Ubuntu 22.04.4
Most likely it is php-mysql or php-mysqlnd
Not all versions of freepbx are working on all OSes due to different libriaries version.
You have install pre-requests before freepbx install.
For example for Centos 8 it looks like this: