Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Jun 14, 2015 10:52 pm 
Offline
Newbie

Joined: Sun Jun 14, 2015 10:46 pm
Posts: 2
Good Afternoon,

I was hoping someone may have the magic bullet for this one because I'm at a loss of what to do.

I'm currently following the guide provided at
https://www.linode.com/docs/applications/voip/deploy-voip-services-with-asterisk-and-freepbx-on-ubuntu-12-04-precise

It's all going well up until I try to install FreePBX, then the system starts spitting errors out left and right. The biggest issue I'm having is that my asterisk database dosen't appear to be connecting.

Code:
FATAL ERROR
DB Error: connect failed
Trace Back
/var/www/html/admin/libraries/db_connect.php:71 die_freepbx()
  [0]: DB Error: connect failed

/var/www/html/admin/bootstrap.php:85 require_once()
  [0]: /var/www/html/admin/libraries/db_connect.php

/etc/freepbx.conf:9 require_once()
  [0]: /var/www/html/admin/bootstrap.php

/var/www/html/admin/config.php:99 include_once()
  [0]: /etc/freepbx.conf



I tried to reload the AMPORTAL to see if maybe it just needed the configurations reset, but then I got this.

Code:
root@thecommnode:/var/www/html# amportal restart

Fetching FreePBX settings with gen_amp_conf.php..
/usr/local/sbin/amportal: line 49: [FATAL]: command not found

/var/lib/asterisk/bin/freepbx_engine: line 98: [FATAL]: command not found
**** 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
Try `mkdir --help' for more information.
**** 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.
root@thecommnode:/var/www/html#


It seems to be referencing a non existent directory, but I can't figure out what it wants or where it's getting it's information from.

Has anyone had any experience with this who could help me figure this out?

Thanks!!!!!


Top
   
PostPosted: Wed Jun 17, 2015 3:41 am 
Offline

Joined: Wed Jun 17, 2015 3:17 am
Posts: 1
Are the variables redeclared later in amportal.conf?

_________________
Data Center Infrastructure Management Suite (DCIM Software)


Top
   
PostPosted: Wed Jun 17, 2015 8:16 am 
Offline
Newbie

Joined: Sun Jun 14, 2015 10:46 pm
Posts: 2
Good Morning,

Thanks for replying. I really have no idea. I have a very baseline understanding of all of this. One of the reasons I was wanting to build this is because I wanted to learn more about running this on a real server. Up to now I had been running a prebuilt virtual machine where the base OS (CentOS), FreePBX, and Asterisk was already installed and configured so you just had to setup trunks, users, and extensions. I'm pretty knowledgeable about it once it's up and running but getting it to that point is something I've never done myself before.

I'm thinking I'm missing something in the guide provided by linode or something has been upgraded in 12.04 since the guide was written.

Can you give me some pointers on exactly what locations, files, and variables I should be looking at?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group