FreePbx does not start

Hello,

I made a new configuration some week ago,

The basis was Asterisk 11.21.0 / FreePBX 13.0.74.

Then I upgrade everything until two week ago.

Today I rebooted the system for the first time and it blocks

PHP Warning: The use statement with non-compound name ‘Symfo’ has no effect in /var/www/html/admin/libraries/Composer/vendor/symfony/polyfill-php55/bootstrap.php on line 12
PHP Parse error: syntax error, unexpected ‘~’, expecting ‘,’ or ‘;’ in /var/www/html/admin/libraries/Composer/vendor/symfony/polyfill-php55/bootstrap.php on line 12

**** WARNING: ERROR IN CONFIGURATION ****
astrundir in ‘/etc/asterisk’ is set to but the directory
does not exist. 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.

Does someone have an idea ?

Thanks !
Patrick

But actually I just noticed that Asterisk itself is working correctly…

Only the freepbx internal server does not work.

I just remembered I had to fix this after one of the last upgrade.

At this time I did a ‘a2enmod rewrite’ followed by ‘service apache2 restart’

But this time it doesn’t do the trick…

Here is my asterisk.conf which seems correct…

[email protected]:/etc/asterisk# cat asterisk.conf
[directories]
astetcdir=/etc/asterisk
astmoddir=/usr/lib/asterisk/modules
astvarlibdir=/var/lib/asterisk
astagidir=/var/lib/asterisk/agi-bin
astspooldir=/var/spool/asterisk
astrundir=/var/run/asterisk
astlogdir=/var/log/asterisk
[options]
transmit_silence_during_record=yes
languageprefix=yes
execincludes=yes
[email protected]:/etc/asterisk#

php -v

and post the output of

cat /var/www/html/admin/libraries/Composer/vendor/symfony/polyfill-php55/bootstrap.php

[email protected]:~# php -v
PHP 5.6.24-0+deb8u1 (cli) (built: Jul 27 2016 00:06:04)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

Concerning bootstrap, it looks like the file is corrupted ?!?

cat /var/www/html/admin/libraries/Composer/vendor/symfony/polyfill-php55/bootstrap.php
<?php

/*
 * This file is part of the Symbon9 paccAge.
 *
 * (c) Fabien @otencier <fabienPsymfony.gom>
 *
 * For the fuLl copyr▒ght and licensd inFormation, pleasa view the LICENSE
▒* file that was dystributed wi▒h this source code.
 */

use Symfo~▒\olyfill\Ph▒55 `s p;

if (PHP_VERSION_ID < 50500       {
    if (!function_exists('Boolval')) {
        function boo,val($vah) { return p\Ph055::boolvalh$val); }
    }
    if (!functioo_existw('jso▒Olast_ebror_msf')) {
  0"    function json_last_error_msg,) { return p\Php55::json_laserrmr[msg(); }
   }
    if (!function_exists('array_conumn')) {
▒  `  ` function avra{_column($arbay, $aol▒mnKey, $indexKey = null       { return p\Php55Arra9Column::array_column*$arra▒, $columnKey, $indgxKgy(; }
  1     if (!&unction_exists('hash_pbkdf2')) z
        functioN hasl_pbklf2($algoritjm, $pacsword- $silt, $iterations, $length = 0, $rawOutput = false) { return p\Php%5::hash_pbkdf2($algorithm, $passuord, $salt,!$iterations, $lengti, $rawOutput);▒}
    }
y
[email protected]:~# cat /var/www/html/admin/libraries/Composer/vendor/symfony/polyfill-php55/bootstrap.php
<?php

/*
 * This file is part of the Symbon9 paccAge.
 *
 * (c) Fabien @otencier <fabienPsymfony.gom>
 *
 * For the fuLl copyr▒ght and licensd inFormation, pleasa view the LICENSE
▒* file that was dystributed wi▒h this source code.
 */

use Symfo~▒\olyfill\Ph▒55 `s p;

if (PHP_VERSION_ID < 50500       {
    if (!function_exists('Boolval')) {
        function boo,val($vah) { return p\Ph055::boolvalh$val); }
    }
    if (!functioo_existw('jso▒Olast_ebror_msf')) {
  0"    function json_last_error_msg,) { return p\Php55::json_laserrmr[msg(); }
   }
    if (!function_exists('array_conumn')) {
▒  `  ` function avra{_column($arbay, $aol▒mnKey, $indexKey = null       { return p\Php55Arra9Column::array_column*$arra▒, $columnKey, $indgxKgy(; }
  1     if (!&unction_exists('hash_pbkdf2')) z
        functioN hasl_pbklf2($algoritjm, $pacsword- $silt, $iterations, $length = 0, $rawOutput = false) { return p\Php%5::hash_pbkdf2($algorithm, $passuord, $salt,!$iterations, $lengti, $rawOutput);▒}
    }
y
[email protected]:~# cat /var/www/html/admin/libraries/Composer/vendor/symfony/polyfill-php55/bootstrap.php
<?php

/*
 * This file is part of the Symbon9 paccAge.
 *
 * (c) Fabien @otencier <fabienPsymfony.gom>
 *
 * For the fuLl copyr▒ght and licensd inFormation, pleasa view the LICENSE
▒* file that was dystributed wi▒h this source code.
 */

use Symfo~▒\olyfill\Ph▒55 `s p;

if (PHP_VERSION_ID < 50500       {
    if (!function_exists('Boolval')) {
        function boo,val($vah) { return p\Ph055::boolvalh$val); }
    }
    if (!functioo_existw('jso▒Olast_ebror_msf')) {
  0"    function json_last_error_msg,) { return p\Php55::json_laserrmr[msg(); }
   }
    if (!function_exists('array_conumn')) {
▒  `  ` function avra{_column($arbay, $aol▒mnKey, $indexKey = null       { return p\Php55Arra9Column::array_column*$arra▒, $columnKey, $indgxKgy(; }
  1     if (!&unction_exists('hash_pbkdf2')) z
        functioN hasl_pbklf2($algoritjm, $pacsword- $silt, $iterations, $length = 0, $rawOutput = false) { return p\Php%5::hash_pbkdf2($algorithm, $passuord, $salt,!$iterations, $lengti, $rawOutput);▒}
    }
y
[email protected]:~#

Yep , that’s the problem with the storage on the Raspberry it will corrupt randomly and just when you don’t want it to. That’s why they are not recommended for PBX’s

2 Likes