Amportal start notworking - webinterface error

I just installed Freepbx…first time. So far I cannot get it to work.

I am using the following instructions

https://wiki.ubuntu.com/installingFreepbx

Issue #1 500 internal server error

When I attempt to access the webpage I can log in but then I get an internal error message… I guess I am not accessing the database or accessing Asterisk.

Issue #2: amportal start…does not start

When I attempt to start this I get the following error.

[email protected]:/etc/apache2$ sudo amportal start

Please wait...

**** 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 attempted to reload freepbx and double checked the MYSQL settings in the amportal.conf…looks good.

I also attempted sudo pear install DB.

Not really sure where to go from here.

Ubuntu 11.04
Asterisk 11.4
freepbx 2.11

Any idea why I cannot access the webpage or why I am getting this error?
I am sure they are the same error but not sure how to fix it.

Any help would be great.

That article is extremely old.

http://wiki.freepbx.org/pages/viewpage.action?pageId=1048598

Thanks for your help. I started fresh and loaded many more dependencies that I did not have.

I am having some issues installing freepbx as a result.

The following command is giving me an error.

sudo amportal a ma installall

ofcourse I also attempted

sudo amportal a ma install all

When I run this command I get the following error.

[email protected]:/usr/src/freepbx-2.11.0rc1$ sudo amportal a ma install all

Please wait...

**** 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 attempted to play with the permission setting of the directories and the permissions but this did not help.

Any idea why this error is happening?

[email protected]:/usr/src/freepbx# amportal start
amportal: command not found

LOL