FreePBX DOESN'T Work After PHP upgrade to 5.5

I use a FreePBX distro Asterisk 11.14.2 with FreePBX 2.12 (After upgrade).
I needed PHP 5.5 (Previous was 5.38) to install VtigerCRM.
Now Asterisk is working properly. So are the extensions. I also reinstalled Zend Guard and loader and PHP is working in order so is Apache. I have an access to the new Vtiger GUI. Alas the FreePBX itself
http://myserver/admin/config.php doesn’t load and I get a blank page. Any suggestions?

http://wiki.freepbx.org/plugins/servlet/mobile#content/view/30245283

You are absolutely right. It has been several years since last time I faced
such an issue…
Here is the amportal debug

PHP Fatal error: require_once(): Failed opening required ‘DB.php’
(include_path
=’.:/usr/share/pear:/usr/share/php’) in
/var/www/html/admin/libraries/db_connect
.php on line 3

PHP Fatal error: Call to undefined function posix_getpwuid() in
/var/lib/asteri
sk/bin/gen_amp_conf.php on line 6
**** 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.

Is it simple enough to correct?

Thx

It seems as though you didn’t follow any directions or guides for installing freepbx. None of your errors are because of php 5.5

Firstly you need to install pearDB and you need to install a specific version.

Secondly you need to install php-posix

I suggest you follow a freepbx installation guide before continuing any further.

You can find install guides at the wiki I provided earlier

My version shows 5.211.65.21 while I had its modules upgraded to 2.12 via the GUI. Would upgrading of the current version using the script on the wiki install the missing components?

This is the current amportal debug after install of Pear and posix
/usr/local/sbin/amportal: line 49: [FATAL]: command not found

/var/lib/asterisk/bin/freepbx_engine: line 100: [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.

Would a version upgrade fix that?

Hi,

Try to run these commands:

pear channel-update pear.php.net
pear install db-1.7.14

Thank you,

Daniel Friedman
Trixton LTD.

This thread is really old. Freepbx 14 works with php 5.6 and unofficially freepbx 13 works with php 5.5

Freepbx 13 no longer uses pear