Everything goes well until I get to the step at “Restart Asterisk and install FreePBX” where I give the command “amportal a ma installall” This generates the following errors:(pasted form ssh)
[root@pbx1 asterisk]# amportal a ma installall
Please wait…
/usr/local/sbin/amportal: line 46: [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@pbx1 asterisk]# mcedit /usr/local/sbin/amportal
I attempted to find the cause in the php scripts but to no avail. Please advise.
Thank you for your quick reply, tm1000. Just checked for /var/lib/asterisk/bin/gen_amp_conf.php and it is there. The owner and group for all the files in /var/lib/asterisk/bin are root while the group and owner of the bin directory is both asterisk. Could that be relevant?
Please wait…
/usr/local/sbin/amportal: line 46: [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.