S
S
Sergey Bydanov2015-04-07 22:45:55
Asterisk
Sergey Bydanov, 2015-04-07 22:45:55

Installing FreePBX - amportal error?

I install FreePBX according to the instructions from http://wiki.freepbx.org
Heroically reached the last paragraph.
When I try to execute amportal chown I get the following error:

[[email protected] etc]# amportal start

Please wait...
/usr/local/sbin/amportal: line 47: [FATAL]: command not found

/var/lib/asterisk/bin/freepbx_engine: line 98: [FATAL]: command not found
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in '/etc/asterisk' is set to  but the directory
does not exists. Attempting to create it with: 'mkdir -p '

mkdir: missing operand
Try `mkdir --help' for more information.
**** ERROR: COULD NOT CREATE  ****
Attempt to execute 'mkdir -p ' failed with an exit code of 1
You must create this directory and the try again.

When I try to open the freepbx control panel page, I get:
FATAL ERROR

DB Error: connect failed

Trace Back

/var/www/asterisk/admin/libraries/db_connect.php:71 die_freepbx()
  [0]: DB Error: connect failed

/var/www/asterisk/admin/bootstrap.php:91 require_once()
  [0]: /var/www/asterisk/admin/libraries/db_connect.php

/etc/freepbx.conf:9 require_once()
  [0]: /var/www/asterisk/admin/bootstrap.php

/var/www/html/asterisk/admin/config.php:99 include_once()
  [0]: /etc/freepbx.conf

I checked all the configs known to me, the parameters for connecting to the database, but I did not find the reason. Help me to understand.

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
S
Sergey Bydanov, 2015-04-07
@sergarcada

It is not for nothing that they say that a correctly asked question contains half of the answer))
Once again I reviewed the error on the page and found an error in freepbx.conf in two minutes. But I spent half a day searching for an error.
Specifically, the error was in the difference in passwords for admin in the files /etc/freepbx.conf, /etc/amportal.conf and /etc/asterisk/manager.conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question