What is this error when installing on centos?

Hello

i tried to install freepbx on centos 6.5 using this tutorial :http://wiki.freepbx.org/display/HTGS/Installing+FreePBX+12+on+CentOS+6.5#InstallingFreePBX12onCentOS6.5-Setownershippermissions.

when i do
./install_amp --installdb --username=asteriskuser --password=${ASTERISK_DB_PW}

i have this error.

    [[email protected] freepbx]# ./install_amp --installdb --username=asteriskuser --password=${ASTERISK_DB_PW}
Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Using username: asteriskuser
Using password: ******
Checking user..OK
Checking if Asterisk is running..running with PID: 29329..OK
Checking for /etc/amportal.conf..OK
Reading /etc/amportal.conf..parsed amp_conf variables from /etc/amportal.conf:
amp_conf [AMPDBHOST] => [localhost]
amp_conf [AMPDBENGINE] => [mysql]
amp_conf [AMPENGINE] => [asterisk]
amp_conf [AMPMGRUSER] => [admin]
amp_conf [AMPMGRPASS] => [amp111]
amp_conf [AMPBIN] => [/var/lib/asterisk/bin]
amp_conf [AMPSBIN] => [/usr/local/sbin]
amp_conf [AMPWEBROOT] => [/var/www/html]
amp_conf [AMPCGIBIN] => [/var/www/cgi-bin ]
amp_conf [FOPWEBROOT] => [/var/www/html/panel]
amp_conf [FOPPASSWORD] => [passw0rd]
amp_conf [AUTHTYPE] => [database]
amp_conf [AMPEXTENSIONS] => [extensions]
amp_conf [AMPDBNAME] => [asterisk]
amp_conf [AMPDBUSER] => [asteriskuser]
amp_conf [AMPDBPASS] => [amp109]
amp_conf [ASTETCDIR] => [/etc/asterisk]
amp_conf [ASTMODDIR] => [/usr/lib64/asterisk/modules]
amp_conf [ASTVARLIBDIR] => [/var/lib/asterisk]
amp_conf [ASTAGIDIR] => [/var/lib/asterisk/agi-bin]
amp_conf [ASTSPOOLDIR] => [/var/spool/asterisk]
amp_conf [ASTRUNDIR] => [/var/run/asterisk]
amp_conf [ASTLOGDIR] => [/var/log/asterisk]
OK
Checking for /etc/asterisk/asterisk.conf..OK
Reading /etc/asterisk/asterisk.conf..OK
Using asterisk as PBX Engine
Checking for Asterisk version..12.3.0
Checking for selinux..OK
Connecting to database..OK
Checking state of FreePBX DB...FreePBX DB is already populated skipping
Checking state of FreePBX CDRDB...FreePBX CDR DB is already populated skipping
Checking current version of FreePBX..12.0.1beta5
Installing new FreePBX files../etc/asterisk/cdr_mysql.conf has been changed from the original version.
Overwrite (y=yes/a=all/n=no/d=diff/s=shell/x=exit)? y
/etc/asterisk/manager.conf has been changed from the original version.
Overwrite (y=yes/a=all/n=no/d=diff/s=shell/x=exit)? y
OK (2 files copied, 378 skipped)
amportal..no fpbx..freepbx_engine..freepbx_setting..gen_amp_conf.php..done
apply username/password changes to conf files:
running apply_conf.sh from freepbx_settings
        Bootstrapping Configuration Settings
        Updating configuration...
        /etc/asterisk/cdr_mysql.conf user: [asteriskuser] password: [amp109] hostname: [localhost]
        /etc/asterisk/manager.conf user: [admin] secret: [amp111]
        Adjusting File Permissions..

        Please wait...

        SETTING FILE PERMISSIONS
        Permissions OK
        Removing any dangling symlinks
        Dangling symlinks removed
        Done
done with apply_conf.sh
creating missing #include files..OK
Module 'manager' reloaded successfully.
Setting permissions on files..OK
Loading Bootstrap..OK
Checking for upgrades..No further upgrades necessary
PHP Notice:  Undefined variable: db in /var/www/html/admin/libraries/cronmanager.class.php on line 70
..OK
Generating AMP configs..
Generating Configurations.conf, (if Asterisk is not running, you will get an error)
In case of error, start Asterisk and hit the red bar in the GUI to generate the Configurations.conf files
Generating AMP configs..OK
Framework has been detected as being in Developer mode, Please make sure to run './install_amp --update-links' manually so that any database or system settings can be updated
Module framework successfully installed

SETTING FILE PERMISSIONS
Permissions OK
Removing any dangling symlinks
Dangling symlinks removed
PHP Fatal error:  Uncaught exception 'Exception' with message 'Can't seem to find the homedir of asterisk - /home/asterisk' in /var/www/html/admin/libraries/BMO/GPG.class.php:324
Stack trace:
#0 /var/www/html/admin/libraries/BMO/GPG.class.php(159): GPG->runGPG('--list-keys 201...')
#1 /var/www/html/admin/libraries/BMO/GPG.class.php(205): GPG->getKey()
#2 /usr/src/freepbx/install_amp(1746): GPG->trustFreePBX()
#3 {main}
  thrown in /var/www/html/admin/libraries/BMO/GPG.class.php on line 324`

do you know what is the issue ?

thank you

Do you have an asterisk user. Is the home directory of the asterisk user /home/asterisk