Trouble Getting Asterisk Running With FreePBX 11

Home » Asterisk Users » Trouble Getting Asterisk Running With FreePBX 11
Asterisk Users 1 Comment

Hi, I recently had to reinstall Asterisk and FreePBX. asteirsk 11.20 and FreePBX 12. This is running on CentOS 6.7 32 bit. When I use amportal start It comes up with the errors below Error in argument 1, char 2: option not found r
/usr/local/sbin/amportal: line 49: Usage:: 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. I’m not sure how to solve this? Asterisk already has the run directory in /var/run/asterisk and the config file notes this. Perhaps it’s PHP? Before I ran PHP 5.4 and now am running PHP 5.5.

One thought on - Trouble Getting Asterisk Running With FreePBX 11

  • My guess is you might not have run amportal with enough permissions to allow it to create /var/run/asterisk

    If you create the directory and give asterisk permissions you should get past this but since it can be wiped its better to make sure your permissions are right.

    Good luck