I am installing FreePBX on CentOS 6.4 using the manual at http://wiki.freepbx.org/display/HTGS/Installing+FreePBX+on+Centos+6.3#InstallingFreePBXonCentos6.3-InstallCentos6.3
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)
[[email protected] asterisk]# amportal a ma installall
/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.
[[email protected] asterisk]# mcedit /usr/local/sbin/amportal
I attempted to find the cause in the php scripts but to no avail. Please advise.