Asterisk and free pbx on cent os 6.4 x86_64 on linode

Hello;
I’m a linode customer, I have a server dedicated to asterisk and free pbx, or it will be when it’s running.
asterisk 1.8 and freepbx 2.11 from SVN are the versions being used.
I looked at the instructions on
http://wiki.freepbx.org/display/HTGS/Installing+FreePBX+on+Centos+6.3
but deployed asterisk via the yum repository as I didn’t need dahdi as it’s no longer required in asterisk 1.8.
The install went all right, but when I attempted to apply configurations it says it couldn’t execute retrieve_config.
Running amportal start gives
Please wait…
SETTING FILE PERMISSIONS
chmod: cannot access /var/lib/asterisk/agi-bin/*': No such file or directory chown: cannot access/var/lib/asterisk/agi-bin’: No such file or directory
Permissions OK
Removing any dangling symlinks
find: `/var/lib/asterisk/agi-bin’: No such file or directory
Dangling symlinks removed
STARTING ASTERISK
nnect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?
ed with exit status 1
d with code 1.
y restarting Asterisk.
ed with exit status 1
d with code 1.
y restarting Asterisk.
rted
[root@li285-226 run]# Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.

that’s a constant loop. so I type clear.

and attempt to start asterisk manually
service asterisk start
just to see if asterisk itself will start

Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?
)
Starting asterisk: [ OK ]
[root@li285-226 run]#
ok, check for /var/run/asterisk/asterisk.ctl
[root@li285-226 ~]# cd /var/run/asterisk
[root@li285-226 asterisk]# ls asterisk.ctl
asterisk.ctl
ok, check it’s permission.
[root@li285-226 asterisk]# ls -ald asterisk.ctl
srwxrwx— 1 asterisk asterisk 0 Aug 11 02:36 asterisk.ctl
[root@li285-226 asterisk]#
they look fine to me.
A quick google indicates try amportal chown. OK, why not. let’s try.
[root@li285-226 asterisk]# amportal chown
Please wait…
SETTING FILE PERMISSIONS
chmod: cannot access /var/lib/asterisk/agi-bin/*': No such file or directory chown: cannot access/var/lib/asterisk/agi-bin’: No such file or directory
Permissions OK
[root@li285-226 asterisk]#
that tells me something’s missing or I broke something.
I’m totally knew to the installation of this setup, so I apologize if this sounds stupid, and I’ve probably missed something or I shouldn’t have installed asterisk from the yum epel repo.
Thank you for any assistance you can offer.

I bet Asterisk is core dumping. What do you see in the /tmp/ logs

I had a couple other admins give me suggestions throughout today, then since this thing was partially hozed to begin with, I rerolled back to linode’s stock 6.2 X86_64 centos image, yum upgraded it to 6.4, and hit up this wiki article
http://wiki.freepbx.org/display/FD/Converting+Stock+Centos+to+a+FreePBX+Distro
ran the script linked as 4.211.64-1
went and had a coffee.
Came back to no errors.
yum upgrade
just to make sure it didn’t miss anything.
5 upgrades, apply them.
restart the box.
comes up fine.
Login.
Check the asterisk version a couple of ways. via yum list and rpm -q. both return 1.8.
Check freepbx with yum list shows 2.11.
so we’re assuming it installed 1.8 and 2.11 respectively.
Hit up
http://hostname.removed.for.privacy/admin
get an index of… page. with a modules directory.
Ok,now we’re a lot farther then before. what shall I try next? checking /var/www/html/admin shows nothing in the dir from the cmd line.
Do I need to manually grab 2.11 and rerun install_amp to put the files where they need to be?

The box could not contact the Internet (or thought it couldn’t) and didn’t run firstboot.sh Try to run that by hand.

Don’t do an install_amp on the distro.