White Page on http://<ip address>/admin/config.php

I have upgraded from 2.11 to version 12.

All was going well since the command for refreshsignatures.
The command didn’t create an issue, but i was the amportal chown in it.

I didn’t get any error but after that i wasn’t and i’m not able to get in into the GUI.

As soon as i put http:///admin/config.php i get a white page.

using amportal a dbug i don’t get any error when i refresh the page.

in var/log/apache2/access.log i can see in the last lines

192.168.10.74 - - [15/Nov/2014:16:15:37 +0200] "GET /admin/ HTTP/1.1" 302 315 "http://192.168.10.10/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2"
192.168.10.74 - - [15/Nov/2014:16:15:37 +0200] "GET /admin/config.php HTTP/1.1" 500 471 "http://192.168.10.10/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2"

Here is Safari, but i get the same issue with Chrome and Explorer

In var/log/apache2/error.log i get

[Sat Nov 15 16:15:37 2014] [error] [client 192.168.10.74] client denied by server configuration: /var/www/html/admin/index.html, referer: http://192.168.10.10/
[Sat Nov 15 16:15:37 2014] [error] [client 192.168.10.74] client denied by server configuration: /var/www/html/admin/index.cgi, referer: http://192.168.10.10/
[Sat Nov 15 16:15:37 2014] [error] [client 192.168.10.74] client denied by server configuration: /var/www/html/admin/index.pl, referer: http://192.168.10.10/
[Sat Nov 15 16:15:37 2014] [error] [client 192.168.10.74] PHP Warning:  include_once(/etc/asterisk/freepbx.conf): failed to open stream: No such file or directory in /var/www/html/admin/config.php on line 100, referer: http://192.168.10.10/
[Sat Nov 15 16:15:37 2014] [error] [client 192.168.10.74] PHP Warning:  include_once(): Failed opening '/etc/asterisk/freepbx.conf' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/admin/config.php on line 100, referer: http://192.168.10.10/
[Sat Nov 15 16:15:37 2014] [error] [client 192.168.10.74] PHP Fatal error:  Class 'module_functions' not found in /var/www/html/admin/config.php on line 166, referer: http://192.168.10.10/

I have already deleted cahce and cookies on all the browser without success

During the upgrade i had in the report

Module: FreePBX Framework, File: /var/www/html/index.php altered
Module: FreePBX Framework, File: /usr/local/sbin/amportal altered (You may need to run “amportal chown”)

This is not the 1st time that i’m trying to upgrade, but it is the 5th and always i get the same issue. In one trial i didn’t applied the command for refreshsignature and i did as suggested above the command amportal chown and doing it i got the same error.

Could you help me on fix it?

Thank you

Do the files:

/etc/asterisk/freepbx.conf

or

/etc/freepbx.conf

Exist?

It exist in /etc and does NOT exist in /etc/asterisk

I tried copying the file from /etc to /etc/asterisk (now it is in both of the folders) , but i’m getting the same result and the same logs that i pasted above.

The contenent of the requested file is

<?php
$amp_conf['AMPDBUSER']	= 'asteriskuser';
$amp_conf['AMPDBPASS']	= '*************';
$amp_conf['AMPDBHOST']	= 'localhost';
$amp_conf['AMPDBNAME']	= 'asterisk';
$amp_conf['AMPDBENGINE'] = 'mysql';
$amp_conf['datasource']	= ''; //for sqlite3

require_once('/var/www/html/admin/bootstrap.php');

I have copied it all, not only a part of it.

Thank you for your support

I have put in my browser

http:///admin/bootstrap.php

and i got an error, but after that i was able to get in. I put login and password, but now i have an other issue… all is working fine except the first page (http:///admin/config.php?display=index).
It opens and stucks showing Welcome to FreePBX and in the load bar the word “Frobulating”.
Before the white page i reached and i have seen the new index page working, but now it is not. (logically i have reset the browser as first step of troubleshooting)

/var/log/apache2/error.log

[Sun Nov 16 08:46:25 2014] [error] [client 192.168.10.74] PHP Warning:  include(/etc/freepbx.conf): failed to open stream: Permission denied in /var/www/html/admin/ajax.php on line 38, referer: http://192.168.10.10/admin/config.php?display=index
[Sun Nov 16 08:46:25 2014] [error] [client 192.168.10.74] PHP Warning:  include(): Failed opening '/etc/freepbx.conf' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/admin/ajax.php on line 38, referer: http://192.168.10.10/admin/config.php?display=index
[Sun Nov 16 08:46:25 2014] [error] [client 192.168.10.74] PHP Notice:  Undefined variable: bmo in /var/www/html/admin/ajax.php on line 44, referer: http://192.168.10.10/admin/config.php?display=index
[Sun Nov 16 08:46:25 2014] [error] [client 192.168.10.74] PHP Notice:  Trying to get property of non-object in /var/www/html/admin/ajax.php on line 44, referer: http://192.168.10.10/admin/config.php?display=index
[Sun Nov 16 08:46:25 2014] [error] [client 192.168.10.74] PHP Fatal error:  Call to a member function doRequest() on a non-object in /var/www/html/admin/ajax.php on line 44, referer: http://192.168.10.10/admin/config.php?display=index

your help will be appreciated…

Changed permissions of /ect/freebpx.conf @ 755 fixed the issue, but not permantenly!!!

As soon as you do a restart of device, the permissions are set again back to 0600 and the first page stuck at the point described above.

As soon as you put the permissions of /etc/freepbx @ 755 all works fine
(some times you get the same issue, but if you open an other section of freepbx and after that Reports/System Status, the index page opens without issues)

(owner of the file is asterisk)

I moved 3 posts to an existing topic: Broken after last update

A post was split to a new topic: Whoops error after install