Installation Error "FATAL: can not find freepbx_engine to start Asterisk"

This is my first Asterisk/Freepbx installation. I am using the VOIP-info.org installation instructions to install Freepbx-2.3.1 and Asterisk 1.4.4 on Ubuntu 6.06 os.
After much work I got ./install_amp to work.
Now I get the error " FATAL: can not find freepbx_engine to start Asterisk".
I also get the error :

Forbidden
You don’t have permission to access /asterisk/admin/ on this server.

Apache/2.0.55 (Ubuntu) PHP/5.1.2 Server at 192.168.100.30 Port 80

I have checked the web and this site for information on how to resolve this issue but with no success.

Does anyone have any idea what this issue can be?
What other information do you need from me. I have reviewed several log files but now have provided any clues.

I welcome any help or ideas.

Thanks in advance.

cgreen6911

Additional information on the “can not find freepbx_engine to start” error.

Looks like apache2 needs peermissions on a file or directory, however I do not know how to fix this.

Anyone has an idea on where to start to fix this?

Thanks,

Cornelius

See Apache2 Error.log:
Wed Mar 05 12:23:31 2008] [notice] Apache/2.0.55 (Ubuntu) PHP/5.1.2 configured – resuming normal operations
[Wed Mar 05 12:24:04 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/images/freepbx.png denied, referer: http://192.168.
100.30/asterisk/
[Wed Mar 05 12:24:06 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.html denied, referer: http://192.168.100.30/a
sterisk/
[Wed Mar 05 12:24:06 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.cgi denied, referer: http://192.168.100.30/as
terisk/
[Wed Mar 05 12:24:06 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.pl denied, referer: http://192.168.100.30/ast
erisk/
[Wed Mar 05 12:24:06 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.php denied, referer: http://192.168.100.30/as
terisk/
[Wed Mar 05 12:24:06 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.xhtml denied, referer: http://192.168.100.30/
asterisk/
[Wed Mar 05 12:24:08 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/images/freepbx.png denied, referer: http://192.168.
100.30/asterisk/
[Wed Mar 05 13:01:28 2008] [notice] caught SIGTERM, shutting down
[Wed Mar 05 13:02:20 2008] [notice] Apache/2.0.55 (Ubuntu) PHP/5.1.2 configured – resuming normal operations
[Wed Mar 05 13:21:47 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/images/freepbx.png denied, referer: http://192.168.
100.30/asterisk/
[Wed Mar 05 13:21:48 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.html denied, referer: http://192.168.100.30/a
sterisk/
[Wed Mar 05 13:21:48 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.cgi denied, referer: http://192.168.100.30/as
terisk/
[Wed Mar 05 13:21:48 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.pl denied, referer: http://192.168.100.30/ast
erisk/
[Wed Mar 05 13:21:48 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.php denied, referer: http://192.168.100.30/as
terisk/
[Wed Mar 05 13:21:48 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.xhtml denied, referer: http://192.168.100.30/
asterisk/
[Wed Mar 05 13:21:57 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/images/freepbx.png denied, referer: http://192.168.
100.30/asterisk/
[Wed Mar 05 13:22:21 2008] [error] [client 192.168.100.186] File does not exist: /var/www/admin
[Wed Mar 05 13:47:07 2008] [notice] caught SIGTERM, shutting down
[Wed Mar 05 13:47:58 2008] [notice] Apache/2.0.55 (Ubuntu) PHP/5.1.2 configured – resuming normal operations
[Wed Mar 05 13:51:00 2008] [error] [client 192.168.100.186] File does not exist: /var/www/admin
[Wed Mar 05 13:51:10 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/images/freepbx.png denied, referer: http://192.168.
100.30/asterisk/
[Wed Mar 05 13:51:11 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.html denied, referer: http://192.168.100.30/a
sterisk/
[Wed Mar 05 13:51:11 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.cgi denied, referer: http://192.168.100.30/as
terisk/
[Wed Mar 05 13:51:11 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.pl denied, referer: http://192.168.100.30/ast
erisk/
[Wed Mar 05 13:51:11 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.php denied, referer: http://192.168.100.30/as
terisk/
[Wed Mar 05 13:51:11 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/index.xhtml denied, referer: http://192.168.100.30/
asterisk/
[Wed Mar 05 13:51:13 2008] [error] [client 192.168.100.186] (13)Permission denied: access to /asterisk/admin/images/freepbx.png denied, referer: http://192.168.
100.30/asterisk/

I have attempted to re-install AMP. At the end of the installation it produces the following errors:

Can this be the source of the issue with the freepbx_engine not loading?
Anyhelp ot ideas would be welcomed.

cgreen6911

Setting permissions on files…OK
Checking for upgrades…No upgrades found
Generating AMP configs…
Generating Configurations.conf, (if Asterisk is not running, you will get an error
In case of error, start Asterisk and hit the red bar in the GUI to generate the Configuraions.conf files
-su: /var/local/sbin/retrieve_conf: No such file or directory
Generating AMP configs…OK
Restarting Flash Operator Panel…-su: /var/local/sbin/bounce_op.sh: No such file or directory
OK
Checking recordings… sh: /var/local/sbin/module_admin: No such file or directory
installed
Checking infoservices… sh: /var/local/sbin/module_admin: No such file or directory
installed
Checking core… sh: /var/local/sbin/module_admin: No such file or directory
installed
Checking framework… sh: /var/local/sbin/module_admin: No such file or directory
enabled
Checking music… sh: /var/local/sbin/module_admin: No such file or directory
installed
Checking dashboard… sh: /var/local/sbin/module_admin: No such file or directory
installed
Checking featurecodeadmin… sh: /var/local/sbin/module_admin: No such file or directory
installed
Checking voicemail… sh: /var/local/sbin/module_admin: No such file or directory
installed
Please update your modules and reload Asterisk by visiting http://192.168.100.30/admin

looks like you have an error in your amportal.conf configuration.It appears you have AMPBIN set to /var/local/sbin. The ‘typical’ value for this is ‘/var/lib/asterisk/bin’ which is usually owned by asterisk. So it may be possible that you got the files installed there but apache, which should be running as asterisk, can’t access them.

Phillippe,

Thanks for the help, I will edit the amportal.conf file and see if this fixes the issue.

regards,

cgreen6911

Phillippe, that was it . When I changed the AMPBIN from /var/local/bin to var/lib/asterisk/bin Freepbx fired right up.  Thanks for the help, this saved me a lot of time.

Regards,

cgreen6911

glad it helped, you are always welcome to press that donate button off on the left of the website if you feel so inclined:-)