Предыдущая версия php 5.4.16 обновлял до 5.6.
Все началось с того, что решил обновить Framework FreePBX 13.0.190.5 до версии 13.0.190.10.
Обновление прошло успешно.
При входе в административную панель, выходит ошибка типа PHP устарел:
Код: Выделить всё
exit: 255
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
Unable to continue. Cron line added didn't remain in crontab on final check in /var/www/html/admin/libraries/BMO/Cron.class.php on line 113
#0 /var/www/html/admin/libraries/BMO/Cron.class.php(180): FreePBX\Cron->addLine('@weekly /var/li...')
#1 /var/www/html/admin/libraries/utility.functions.php(626): FreePBX\Cron->add('@weekly /var/li...')
#2 /var/www/html/admin/modules/queues/functions.inc/cron.php(80): edit_crontab('', Array)
#3 /var/www/html/admin/modules/queues/functions.inc/dialplan.php(18): queues_set_backup_cron()
#4 /var/www/html/admin/libraries/BMO/DialplanHooks.class.php(95): queues_get_config('asterisk')
#5 /var/lib/asterisk/bin/retrieve_conf(864): FreePBX\DialplanHooks->processHooks('asterisk', Array)
#6 {main}
Смотрю версию PHP:
Код: Выделить всё
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
PHP 5.4.16 (cli) (built: Jun 23 2015 21:17:27)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies
и все его зависимости:
Код: Выделить всё
Удаление:
php-common x86_64 5.4.16-36.el7_1 @base 3.8 M
Удаление зависимостей:
php x86_64 5.4.16-36.el7_1 @base 4.4 M
php-cli x86_64 5.4.16-36.el7_1 @base 8.8 M
php-gd x86_64 5.4.16-36.el7_1 @base 342 k
php-mbstring x86_64 5.4.16-36.el7_1 @base 1.3 M
php-mysql x86_64 5.4.16-36.el7_1 @base 232 k
php-pdo x86_64 5.4.16-36.el7_1 @base 192 k
php-pear noarch 1:1.9.4-21.el7 @base 2.2 M
php-process x86_64 5.4.16-36.el7_1 @base 78 k
php-xml
ПРЕДУПРЕЖДЕНИЕ: база данных RPM была изменена вне Yum.
Удаление : 1:php-pear-1.9.4-21.el7.noarch 1/10
Удаление : php-5.4.16-36.el7_1.x86_64 2/10
Удаление : php-cli-5.4.16-36.el7_1.x86_64 3/10
Удаление : php-process-5.4.16-36.el7_1.x86_64 4/10
Удаление : php-xml-5.4.16-36.el7_1.x86_64 5/10
Удаление : php-mysql-5.4.16-36.el7_1.x86_64 6/10
Удаление : php-pdo-5.4.16-36.el7_1.x86_64 7/10
Удаление : php-gd-5.4.16-36.el7_1.x86_64 8/10
Удаление : php-mbstring-5.4.16-36.el7_1.x86_64 9/10
Удаление : php-common-5.4.16-36.el7_1.x86_64 10/10
предупреждение: /etc/php.ini сохранен как /etc/php.ini.rpmsave
Проверка : php-process-5.4.16-36.el7_1.x86_64 1/10
Проверка : php-mbstring-5.4.16-36.el7_1.x86_64 2/10
Проверка : php-5.4.16-36.el7_1.x86_64 3/10
Проверка : php-cli-5.4.16-36.el7_1.x86_64 4/10
Проверка : php-pdo-5.4.16-36.el7_1.x86_64 5/10
Проверка : php-gd-5.4.16-36.el7_1.x86_64 6/10
Проверка : php-xml-5.4.16-36.el7_1.x86_64 7/10
Проверка : php-mysql-5.4.16-36.el7_1.x86_64 8/10
Проверка : php-common-5.4.16-36.el7_1.x86_64 9/10
Проверка : 1:php-pear-1.9.4-21.el7.noarch 10/10
Удалено:
php-common.x86_64 0:5.4.16-36.el7_1
Удалены зависимости:
php.x86_64 0:5.4.16-36.el7_1 php-cli.x86_64 0:5.4.16-36.el7_1 php-gd.x86_64 0:5.4.16-36.el7_1 php-mbstring.x86_64 0:5.4.16-36.el7_1 php-mysql.x86_64 0:5.4.16-36.el7_1
php-pdo.x86_64 0:5.4.16-36.el7_1 php-pear.noarch 1:1.9.4-21.el7 php-process.x86_64 0:5.4.16-36.el7_1 php-xml.x86_64 0:5.4.16-36.el7_1
отдельно установил php56w-mysql
Теперь FreePBX вообще не работает:
Код: Выделить всё
amportal chown
Please wait...
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
Failed loading /usr/lib64/php/modules/ZendGuardLoader.so: /usr/lib64/php/modules/ZendGuardLoader.so: undefined symbol: zend_get_hash_value
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
Failed loading /usr/lib64/php/modules/ZendGuardLoader.so: /usr/lib64/php/modules/ZendGuardLoader.so: undefined symbol: zend_get_hash_value
PHP Fatal error: Call to undefined function posix_getpwuid() in /var/lib/asterisk/bin/gen_amp_conf.php on line 6
/var/lib/asterisk/bin/freepbx_engine: line 222: /var/lib/asterisk/bin/freepbx_engine_hook_ucp: Нет такого файла или каталога
!!!!amportal is depreciated. Please use fwconsole!!!!
forwarding all commands to 'fwconsole'
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
Failed loading /usr/lib64/php/modules/ZendGuardLoader.so: /usr/lib64/php/modules/ZendGuardLoader.so: undefined symbol: zend_get_hash_value
PHP Fatal error: Call to undefined function FreePBX\Console\Command\posix_geteuid() in /var/www/html/admin/libraries/Console/Chown.class.php on line 137
Whoops\Exception\ErrorException: Call to undefined function FreePBX\Console\Command\posix_geteuid() in file /var/www/html/admin/libraries/Console/Chown.class.php on line 137
Stack trace:
1. () /var/www/html/admin/libraries/Console/Chown.class.php:137
[root@localhost /]# amportal a ma refreshsignatures
Please wait...
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
Failed loading /usr/lib64/php/modules/ZendGuardLoader.so: /usr/lib64/php/modules/ZendGuardLoader.so: undefined symbol: zend_get_hash_value
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
Failed loading /usr/lib64/php/modules/ZendGuardLoader.so: /usr/lib64/php/modules/ZendGuardLoader.so: undefined symbol: zend_get_hash_value
PHP Fatal error: Call to undefined function posix_getpwuid() in /var/lib/asterisk/bin/gen_amp_conf.php on line 6
/var/lib/asterisk/bin/freepbx_engine: line 222: /var/lib/asterisk/bin/freepbx_engine_hook_ucp: Нет такого файла или каталога
!!!!amportal is depreciated. Please use fwconsole!!!!
forwarding all commands to 'fwconsole'
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
Failed loading /usr/lib64/php/modules/ZendGuardLoader.so: /usr/lib64/php/modules/ZendGuardLoader.so: undefined symbol: zend_get_hash_value
Getting Data from Online Server...
Done
Checking Signatures of Modules...
Checking asteriskinfo...
PHP Fatal error: Call to undefined function FreePBX\posix_getpwnam() in /var/www/html/admin/libraries/BMO/GPG.class.php on line 665
Whoops\Exception\ErrorException: Call to undefined function FreePBX\posix_getpwnam() in file /var/www/html/admin/libraries/BMO/GPG.class.php on line 665
Stack trace:
1. () /var/www/html/admin/libraries/BMO/GPG.class.php:665
[root@localhost /]# amportal a reload
Please wait...
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
Failed loading /usr/lib64/php/modules/ZendGuardLoader.so: /usr/lib64/php/modules/ZendGuardLoader.so: undefined symbol: zend_get_hash_value
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
Failed loading /usr/lib64/php/modules/ZendGuardLoader.so: /usr/lib64/php/modules/ZendGuardLoader.so: undefined symbol: zend_get_hash_value
PHP Fatal error: Call to undefined function posix_getpwuid() in /var/lib/asterisk/bin/gen_amp_conf.php on line 6
/var/lib/asterisk/bin/freepbx_engine: line 222: /var/lib/asterisk/bin/freepbx_engine_hook_ucp: Нет такого файла или каталога
!!!!amportal is depreciated. Please use fwconsole!!!!
forwarding all commands to 'fwconsole'
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
Failed loading /usr/lib64/php/modules/ZendGuardLoader.so: /usr/lib64/php/modules/ZendGuardLoader.so: undefined symbol: zend_get_hash_value
Reloading FreePBX
Error(s) have occured, the following is the retrieve_conf output:
exit: 255
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/ZendGuard.ini on line 1 in Unknown on line 0
Failed loading /usr/lib64/php/modules/ZendGuardLoader.so: /usr/lib64/php/modules/ZendGuardLoader.so: undefined symbol: zend_get_hash_value
PHP Fatal error: Call to undefined function FreePBX\posix_getpwnam() in /var/www/html/admin/libraries/BMO/GPG.class.php on line 665
Whoops\Exception\ErrorException: Call to undefined function FreePBX\posix_getpwnam() in file /var/www/html/admin/libraries/BMO/GPG.class.php on line 665
Stack trace:
1. () /var/www/html/admin/libraries/BMO/GPG.class.php:665