Problem [FATAL] FAILED. Have you installed Asterisk?

Hello i’m Italian and i’ve a problem with the installation of freebox on my VPS.

Before this problem i’ve had an another problem:

Please wait…

**** 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
Usare `mkdir --help’ per ulteriori informazioni.
**** 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.

AND NOW:

Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking user…OK
Checking if Asterisk is running…running with PID: 1752…OK
Checking for /etc/amportal.conf…OK
Reading /etc/amportal.conf…parsed amp_conf variables from /etc/amportal.conf:
amp_conf [ASTMANAGERHOST] => [localhost]
amp_conf [AMPMGRPASS] => [amp111]
amp_conf [ASTMANAGERPORT] => [5038]
amp_conf [ASTMANAGERPROXYPORT] => []
amp_conf [AMPMGRUSER] => [admin]
amp_conf [ASTMGRWRITETIMEOUT] => [5000]
amp_conf [AMPLOCALBIN] => []
amp_conf [FPBXDBUGFILE] => [/var/log/asterisk/freepbx_dbug]
amp_conf [DEVEL] => [FALSE]
amp_conf [FPBXDBUGDISABLE] => [TRUE]
amp_conf [DEVELRELOAD] => [FALSE]
amp_conf [CFRINGTIMERDEFAULT] => [0]
amp_conf [ZAP2DAHDICOMPAT] => [TRUE]
amp_conf [ENABLECW] => [TRUE]
amp_conf [DISABLECUSTOMCONTEXTS] => [FALSE]
amp_conf [DYNAMICHINTS] => [FALSE]
amp_conf [USEDEVSTATE] => [TRUE]
amp_conf [CONCURRENCYLIMITDEFAULT] => [0]
amp_conf [FCBEEPONLY] => [FALSE]
amp_conf [DIVERSIONHEADER] => [FALSE]
amp_conf [NOOPTRACE] => [0]
amp_conf [CWINUSEBUSY] => [TRUE]
amp_conf [ASTSTOPPOLLINT] => [2]
amp_conf [AMPBADNUMBER] => [TRUE]
amp_conf [USEGOOGLEDNSFORENUM] => [FALSE]
amp_conf [ASTSTOPTIMEOUT] => [120]
amp_conf [AUTOMIXMON] => [FALSE]
amp_conf [ASTCONFAPP] => [app_meetme]
amp_conf [ASTAGIDIR] => [/var/lib/asterisk/agi-bin]
amp_conf [ASTVARLIBDIR] => [/var/lib/asterisk]
amp_conf [ASTETCDIR] => [/etc/asterisk]
amp_conf [ASTLOGDIR] => [/var/log/asterisk]
amp_conf [ASTMODDIR] => [/usr/lib/asterisk/modules]
amp_conf [ASTRUNDIR] => [/var/run/asterisk]
amp_conf [ASTSPOOLDIR] => [/var/spool/asterisk]
amp_conf [AMPCGIBIN] => [/var/www/cgi-bin ]
amp_conf [AMPBIN] => [/var/lib/asterisk/bin]
amp_conf [AMPSBIN] => [/usr/sbin]
amp_conf [AMPWEBROOT] => [/var/www/html]
amp_conf [MOHDIR] => [moh]
amp_conf [FOPWEBROOT] => []
amp_conf [BADDESTABORT] => [FALSE]
amp_conf [XTNCONFLICTABORT] => [FALSE]
amp_conf [CHECKREFERER] => [TRUE]
amp_conf [SERVERINTITLE] => [FALSE]
amp_conf [CUSTOMASERROR] => [TRUE]
amp_conf [RELOADCONFIRM] => [TRUE]
amp_conf [USECATEGORIES] => [TRUE]
amp_conf [MODULEADMINWGET] => [FALSE]
amp_conf [MAXCALLS] => []
amp_conf [CDRDBHOST] => []
amp_conf [CDRDBNAME] => []
amp_conf [CDRDBPASS] => []
amp_conf [CDRDBPORT] => []
amp_conf [CDRDBTABLENAME] => []
amp_conf [CDRDBTYPE] => []
amp_conf [CDRDBUSER] => []
amp_conf [AMPADMINLOGO] => []
amp_conf [AMPSYSLOGLEVEL] => [FILE]
amp_conf [AMPDISABLELOG] => [FALSE]
amp_conf [AMPEXTENSIONS] => [extensions]
amp_conf [AUTHTYPE] => [database]
amp_conf [AMPVMUMASK] => [007]
amp_conf [AMPWEBADDRESS] => []
amp_conf [AMPASTERISKGROUP] => [asterisk]
amp_conf [AMPASTERISKUSER] => [asterisk]
amp_conf [AMPDEVGROUP] => [asterisk]
amp_conf [AMPDEVUSER] => [asterisk]
amp_conf [AMPASTERISKWEBGROUP] => [asterisk]
amp_conf [AMPASTERISKWEBUSER] => [asterisk]
amp_conf [AMPENGINE] => [asterisk]
amp_conf [AMPMPG123] => [TRUE]
amp_conf [SSHPORT] => []
amp_conf [AMPPLAYKEY] => []
amp_conf [AMPDBUSER] => [root]
amp_conf [AMPDBPASS] => [pass]
amp_conf [AMPDBHOST] => [localhost]
amp_conf [AMPDBNAME] => [asterisk]
amp_conf [AMPDBENGINE] => [mysql]
amp_conf [datasource] => []
amp_conf [AMPENABLEDEVELDEBUG] => []
amp_conf [TCINTERVAL] => [60]
amp_conf [TCMAINT] => [1]
amp_conf [DAYNIGHTTCHOOK] => []
OK
Checking for /etc/asterisk/asterisk.conf…/etc/asterisk/asterisk.conf does not exist, copying default
PHP Warning: copy(/etc/asterisk/asterisk.conf): failed to open stream: No such file or directory in /usr/local/src/freepbx-2.10.0/install_amp on line 868
OK
Reading /etc/asterisk/asterisk.conf…PHP Warning: file(/etc/asterisk/asterisk.conf): failed to open stream: No such file or directory in /usr/local/src/freepbx-2.10.0/install_amp on line 124
PHP Warning: Invalid argument supplied for foreach() in /usr/local/src/freepbx-2.10.0/install_amp on line 125
PHP Notice: Undefined variable: conf in /usr/local/src/freepbx-2.10.0/install_amp on line 141
[FATAL] FAILED. Have you installed Asterisk?

Where is the problem? This is the 3rd installation…

Excuse me for bad english :slight_smile:

Alessandro :slight_smile:

Now i’ve this problem:

[root@i-126-296-VM freepbx-2.10.0]# asterisk -rx “core stop now”
[root@i-126-296-VM freepbx-2.10.0]# amportal start

Please wait…

**** 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
Usare `mkdir --help’ per ulteriori informazioni.
**** 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.

Did you follow any kind of install guide?

yes… this guide:

http://www.voipsupport.it/pmwiki/pmwiki.php?n=Freepbx.HowtoCentos63