./install_amp --username=root [email protected] (Permission Denied)

Please help me what can i do. I m using Oracle Linux El4

[[email protected] freepbx-2.5.1]# ./install_amp
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking user…OK
Checking if Asterisk is running…FAILED
[FATAL] ./install_amp
Asterisk must be running. If this is a first time install, you should st art
Asterisk by typing './start_asterisk start’
For upgrading, you should run ‘amportal start’
[[email protected] freepbx-2.5.1]# ./start_asterisk start

STARTING ASTERISK
Asterisk Started
[[email protected] freepbx-2.5.1]# ./install_amp --username=root [email protected]
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Using username: root
Using password: ********
Checking user…OK
Checking if Asterisk is running…running with PID: 5106…OK
Checking for /etc/amportal.conf…OK
Reading /etc/amportal.conf…OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk version…1.4.36
Checking for selinux…OK
Connecting to database…OK
Checking current version of AMP…2.5.1
Installing new FreePBX files…/etc/asterisk/vm_email.inc has been changed from the original version.
Overwrite (y=yes/a=all/n=no/d=diff/s=shell/x=exit)? a
OK (504 files copied, 0 skipped)
Configuring install for your environment…amportal…freepbx_engine…done
apply username/password changes to conf files…done
creating missing #include files…OK
The ‘reload’ command is deprecated and will be removed in a future release. Please use ‘module reload’ instead.
OK
Setting permissions on files…OK
Checking for upgrades…No upgrades found
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 Configuraions.conf files
-bash: /var/lib/asterisk/bin/retrieve_conf: Permission denied
Generating AMP configs…OK
Restarting Flash Operator Panel…-bash: /var/lib/asterisk/bin/bounce_op.sh: Permission denied
OK
Checking infoservices… sh: /var/lib/asterisk/bin/module_admin: Permission denied
sh: /var/lib/asterisk/bin/module_admin: Permission denied
installed
Checking music… sh: /var/lib/asterisk/bin/module_admin: Permission denied
sh: /var/lib/asterisk/bin/module_admin: Permission denied
installed
Checking framework… sh: /var/lib/asterisk/bin/module_admin: Permission denied
enabled
Checking voicemail… sh: /var/lib/asterisk/bin/module_admin: Permission denied
sh: /var/lib/asterisk/bin/module_admin: Permission denied
installed
Checking core… sh: /var/lib/asterisk/bin/module_admin: Permission denied
sh: /var/lib/asterisk/bin/module_admin: Permission denied
installed
Checking recordings… sh: /var/lib/asterisk/bin/module_admin: Permission denied
sh: /var/lib/asterisk/bin/module_admin: Permission denied
installed
Checking dashboard… sh: /var/lib/asterisk/bin/module_admin: Permission denied
sh: /var/lib/asterisk/bin/module_admin: Permission denied
installed
Checking featurecodeadmin… sh: /var/lib/asterisk/bin/module_admin: Permission denied
sh: /var/lib/asterisk/bin/module_admin: Permission denied
installed
Checking customappsreg… sh: /var/lib/asterisk/bin/module_admin: Permission denied
sh: /var/lib/asterisk/bin/module_admin: Permission denied
installed
Please update your modules and reload Asterisk by visiting http://192.168.1.10/admin


  • Note: It’s possible that if you click the red ‘Update Now’ bar BEFORE *
  • updating your modules, your machine will start dropping calls. Ensure *
  • that all modules are up to date BEFORE YOU CLICK THE RED BAR. As long *
  • as this is observed, your machine will be fully functional whilst the *
  • upgrade is in progress. *

[[email protected] freepbx-2.5.1]#