I’ve been banging my head for a while here and I typically figure things out, been doing these installs for over a decade (doesn’t make me an expert, just been following directives of smarter folks for that long)
I’ve done the prerequisite setup as per wiki, and all the packages, dependencies and software installed without a hitch, Asterisk compiled with no issues.
Asterisk started with ./start_asterisk all good.
It’s when I go to install FreePBX that the issues occur:
./install -n
Assuming you are Database Root
Checking if SELinux is enabled…Its not (good)!
Reading /etc/asterisk/asterisk.conf…Done
Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Error!
Error communicating with Asterisk. Ensure that Asterisk is properly installed and running as the asterisk user
Asterisk appears to be running as asterisk
Try starting Asterisk with the ‘./start_asterisk start’ command in this directory
Thanks dicko, I may go that route but would be nice to give this problem a fair go in terms of resolving it before going to that extent. Don’t want to throw in the towel that easily.
I didn’t create one during the mysql install script, left it blank as per the directives. Anything else you could think of? I wanted to check the logs but no full file in /var/log/asterisk/ for some reason.
hmmm -vvv didn’t return any extra verbosity and same error. I tried to force the install with the same error as well.
Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Error!
Error communicating with Asterisk. Ensure that Asterisk is properly installed and running as the asterisk user
Asterisk appears to be running as asterisk
Try starting Asterisk with the ‘./start_asterisk start’ command in this directory
No safe_asterisk should only end up with one process, but FreePBX prefers asterisk to be controlled by fwconsole , I would killall safe_asterisk for now and use ./start_asterisk start in the directory you put freepbx in.
I built asterisk as per the wiki and nothing from what I could see went wrong during the install. I will however give the box a reboot and give it another try before retiring for the night, been at this far too long lol
Thanks again dicko! btw, I was referring to you when I was thanking you ahead of time and for those who have been here for years like true soldiers
One last thing actually now that I think of it, for the first time, I skipped installing libpri thinking that it was just needed if you had related hardware. I’m just running a virtual box so am I ok without libpri or could that be the source of my problems?
UPDATE
After re-compiling Asterisk 16 two more times without success, I thought I’d give the old v15 a go and see how that might play out. Low and behold, I was able to get FreePBX installed without any issues.
Digging into why Asterisk 16 was the issue is beyond my scope and interest frankly at this point in time, but thought people who experience the same issues might just skip the hours of head banging and frustrations.