Hello,
I’m having trouble loading FreePBX Administration. After login, I am presented with a blank page (http://192.168.1.203/admin/config.php). I’ve cleared my cache and tried multiple browsers from two different machines.
I’ve followed a guide found here: http://moishtech.blogspot.co.uk/2012/06/setup-and-run-asterisk-and-freebpx-on.html
Version numbers:
FreePBX 2.9.0
Asterisk 1.8.13.1~dfsg-1
Apache/2.2.22 (Debian)
PHP Version 5.4.4-7
MySQL 5.5.24-9 (Debian)
Linux raspberrypi 3.2.27+ #160 PREEMPT Mon Sep 17 23:18:42 BST 2012 armv6l GNU/Linux
[code]chris@raspberrypi /usr/src $ pear list
Installed packages, channel pear.php.net:
Package Version State
Archive_Tar 1.3.7 stable
Console_Getopt 1.3.0 stable
DB 1.7.14 stable
PEAR 1.9.4 stable
Structures_Graph 1.0.4 stable
XML_Util 1.2.1 stable[/code]
Error messages:
After amportal start I receive the following in my command prompt:
/var/log/apache2# amportal startdefined(%hash) is deprecated at /var/www/panel/op_server.pl line 2723.
(Maybe you should just omit the defined()?)
Additional information:
FOP loads
Reports loads
snippet from /var/log/apache2/error.log
snippet from /var/log/apache2/access.log
192.168.1.50 - admin [05/Oct/2012:18:37:03 +0000] "GET /admin/config.php HTTP/1.1" 200 466 "http://192.168.1.203/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.13 (KHTML, like Gecko) Chrome/24.0.1283.0 Safari/537.13"
192.168.1.50 - - [05/Oct/2012:18:37:03 +0000] "GET /favicon.ico HTTP/1.1" 404 502 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.13 (KHTML, like Gecko) Chrome/24.0.1283.0 Safari/537.13"
192.168.1.50 - admin [05/Oct/2012:18:37:18 +0000] "GET /admin/config.php HTTP/1.1" 200 466 "http://192.168.1.203/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.13 (KHTML, like Gecko) Chrome/24.0.1283.0 Safari/537.13"
192.168.1.50 - admin [05/Oct/2012:18:37:21 +0000] "GET /admin/config.php HTTP/1.1" 200 465 "http://192.168.1.203/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.13 (KHTML, like Gecko) Chrome/24.0.1283.0 Safari/537.13"
Output of PHP test page: http://db.tt/parI1gbv
All FreePBX modules are up to date, but I run into an issue when I try and reload them:
[code]chris@raspberrypi /var/log $ sudo -u asterisk /var/lib/asterisk/bin/module_admin upgradeall
no repos specified, using: [standard] from last GUI settings
Up to date.
chris@raspberrypi /var/log $ sudo -u asterisk /var/lib/asterisk/bin/module_admin reload
Error(s) have occured, the following is the retrieve_conf output:
exit: 255
[/code]
snippet from /tmp/freepbx_debug.log
2012-Oct-05 21:57:20 /var/www/admin/views/freepbx.php:195
[NOTICE]: Undefined variable: module_name
2012-Oct-05 21:57:20 /var/www/admin/views/freepbx.php:236
[NOTICE]: Undefined index: USE_PACKAGED_JS
2012-Oct-05 21:57:20 /var/www/admin/views/freepbx.php:386
[NOTICE]: Undefined index: FOPDISABLE
/tmp/freepbx_pre_install.log
[2012-Oct-05 16:54:27] [INFO] (freepbx-2.9.0/libfreepbx.install.php:170) - -> Running PHP script /usr/src/freepbx-2.9.0/upgrades/2.8.0/custom-context.php
[2012-Oct-05 16:54:27] [INFO] (freepbx-2.9.0/libfreepbx.install.php:113) - Upgrading to 2.8.0..OK
[2012-Oct-05 16:54:27] [INFO] (freepbx-2.9.0/libfreepbx.install.php:108) - Upgrading to 2.8.1..
[2012-Oct-05 16:54:27] [INFO] (freepbx-2.9.0/libfreepbx.install.php:113) - Upgrading to 2.8.1..OK
[2012-Oct-05 16:54:27] [INFO] (freepbx-2.9.0/libfreepbx.install.php:108) - Upgrading to 2.9.0alpha1..
[2012-Oct-05 16:54:27] [INFO] (freepbx-2.9.0/libfreepbx.install.php:170) - -> Running PHP script /usr/src/freepbx-2.9.0/upgrades/2.9.0alpha1/migrate_ampconf.php
[2012-Oct-05 16:54:27] [INFO] (2.9.0alpha1/migrate_ampconf.php:50) - Checking for freepbx_settings table..exists
[2012-Oct-05 16:54:27] [INFO] (2.9.0alpha1/migrate_ampconf.php:56) - Add field sortorder to freepbx_settings..Not Required
[2012-Oct-05 17:44:00] [FATAL] (common/db_connect.php:63) - die_freepbx(): DB Error: connect failed
[2012-Oct-05 17:44:01] [FATAL] (common/db_connect.php:63) - die_freepbx(): DB Error: connect failed
Also of note, when I try to load FreePBX Administration (is this the same thing as AMI?) I am prompted to enter some credentials. Even though I selected my own password (8 characters consisting of letters, numbers, and a -) when I ran install.amp I have to use the default username/password combo of admin/admin. I’ve logged into the MySQL database and I have confirmed that AMPMGRUSER=admin, AMPMGRPASS=my password and AUTHTYPE is set to database. Maybe I’m looking at the wrong username/password pair.
Thanks for any and all assistance.