Installation fails with PHP Fatal error: Cannot redeclare error()

Hi all,
Currently I’m attempting to do a manual install of FreePBX on an AWS EC2 instance. The following covers the specifics:

  1. Operating system: CentOS Linux release 7.2.1511 (Core)
  2. Kernel Version: 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  3. PHP Version: PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59)

I’ve searched through the forums, Google etc, trying to nail down this error. Any advice on how to remedy this installation problem would be greatly appreciated.

Thanks in advance,

Assuming you are Database Root
Checking if SELinux is enabled…Its not (good)!
Reading /etc/asterisk/asterisk.conf…Done
Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Done
Preliminary checks done. Starting FreePBX Installation
Checking if this is a new install…Yes (No /etc/amportal.conf file detected)
PHP Fatal error: Cannot redeclare error() in /usr/src/freepbx/amp_conf/htdocs/admin/libraries/utility.functions.php on line 448

please paste the code line 448 here.

1 Like

You can’t use PHP 5.4. FreePBX 13 only supports PHP 5.3

2 posts were split to a new topic: Install Error