Freepbx install issue debian 9

Hello,
Help,please.
I am having issues setting up freepbx, I have used the official listed guide for Debian 9, however I have got to the following issue:

[email protected]:/usr/src/freepbx# ./start_asterisk start

STARTING ASTERISK
Asterisk is already running
[email protected]:/usr/src/freepbx# ./install -n
PHP Warning: Declaration of FreePBX\Install\FreePBXHelpCommand::setCommand(FreePBX\Install\FreePBXInstallCommand $command) should be compatible with Symfony\Component\Console\Command\HelpCommand::setCommand(Symfony\Component\Console\Command\Command $command) in /usr/src/freepbx/installlib/installhelpcommand.class.php on line 15
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: 15.6.0
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…Error!
Invalid Database Permissions. The error was: SQLSTATE[HY000] [1045] Access denied for user ‘root’@‘localhost’ (using password: NO)

Create separate user and group to run asterisk services, and assign correct permissions:

groupadd asterisk
useradd -r -d /var/lib/asterisk -g asterisk asterisk
usermod -aG audio,dialout asterisk
chown -R asterisk.asterisk /etc/asterisk
chown -R asterisk.asterisk /var/{lib,log,spool}/asterisk
chown -R asterisk.asterisk /usr/lib/asterisk

You set a mysql root password. Run :-

./install --help

look at the syntax and add --dbuser and --dbpass to suit.

I could give an example of how to perform the correct configuration.

first I create user: asterisk and group user: asterisk.
I have installed of mariadb, I not database but the password root : root

What would be possible solution?
transks.

[email protected]:/usr/src/freepbx# ./install --rootdb
PHP Warning: Declaration of FreePBX\Install\FreePBXHelpCommand::setCommand(FreePBX\Install\FreePBXInstallCommand $command) should be compatible with Symfony\Component\Console\Command\HelpCommand::setCommand(Symfony\Component\Console\Command\Command $command) in /usr/src/freepbx/installlib/installhelpcommand.class.php on line 15
Database engine [mysql]: mysql
Database name [asterisk]: asterisk
CDR Database name [asteriskcdrdb]: asteriskcdrdb
Database username [root]: root
Database password:
File owner user [asterisk]:

–dbuser=root --dbpass=yourrootmysqlpassword

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.