Hi. Today i got a big PHP update (7.0, 7.2, 7.3, 7.4, 8.0) for my Debian 9 Server. After this update the ISPConfig 3 Control Panel is not accessible anymore (HTTP ERROR 500). I also did a ISPConfig update from 3.2.1 to 3.2.2 but that didn't helpe to fix the problem and i also got some PHP Warnings. /var/log/apache2/error.log Code: [Sat Feb 20 14:58:23.123697 2021] [proxy_fcgi:error] [pid 18540:tid 140530574907136] [client 8XX.94.X40.2X6:8013] AH01071: Got error 'PHP message: PHP Warning: require_once(/usr/local/ispconfig/interface/lib/config.inc.php): failed to open stream: Permission denied in /usr/local/ispconfig/interface/web/index.php on line 31\nPHP message: PHP Stack trace:\nPHP message: PHP 1. {main}() /usr/local/ispconfig/interface/web/index.php:0\nPHP message: PHP Fatal error: require_once(): Failed opening required '../lib/config.inc.php' (include_path='.:/usr/share/php') in /usr/local/ispconfig/interface/web/index.php on line 31\nPHP message: PHP Stack trace:\nPHP message: PHP 1. {main}() /usr/local/ispconfig/interface/web/index.php:0\n' [Sat Feb 20 15:00:06.186098 2021] [proxy_fcgi:error] [pid 18541:tid 140530507765504] [client 8XX.94.X40.2X6:5670] AH01071: Got error 'PHP message: PHP Warning: require_once(/usr/local/ispconfig/interface/lib/config.inc.php): failed to open stream: Permission denied in /usr/local/ispconfig/interface/web/index.php on line 31\nPHP message: PHP Stack trace:\nPHP message: PHP 1. {main}() /usr/local/ispconfig/interface/web/index.php:0\nPHP message: PHP Fatal error: require_once(): Failed opening required '../lib/config.inc.php' (include_path='.:/usr/share/php') in /usr/local/ispconfig/interface/web/index.php on line 31\nPHP message: PHP Stack trace:\nPHP message: PHP 1. {main}() /usr/local/ispconfig/interface/web/index.php:0\n' ISPConfig Update Console Code: PHP Warning: Undefined array key "do_backup" in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 63 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->simple_query($query = 'Shall the script create a ISPConfig backup in /var/backup/ now?', $answers = [0 => 'yes', 1 => 'no'], $default = 'yes', $name = 'do_backup') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:196 PHP Warning: Trying to access array offset on value of type null in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 69 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->simple_query($query = 'Shall the script create a ISPConfig backup in /var/backup/ now?', $answers = [0 => 'yes', 1 => 'no'], $default = 'yes', $name = 'do_backup') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:196 Shall the script create a ISPConfig backup in /var/backup/ now? (yes,no) [yes]: Creating backup of "/usr/local/ispconfig" directory... Creating backup of "/etc" directory... Checking ISPConfig database .. OK Starting incremental database update. Loading SQL patch file: /tmp/update_runner.sh.hEMOg7AXgd/install/sql/incremental/upd_dev_collection.sql PHP Warning: Undefined array key "reconfigure_permissions_in_master_database" in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 63 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->simple_query($query = 'Reconfigure Permissions in master database?', $answers = [0 => 'yes', 1 => 'no'], $default = 'no', $name = 'reconfigure_permissions_in_master_database') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:331 PHP Warning: Trying to access array offset on value of type null in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 69 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->simple_query($query = 'Reconfigure Permissions in master database?', $answers = [0 => 'yes', 1 => 'no'], $default = 'no', $name = 'reconfigure_permissions_in_master_database') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:331 Reconfigure Permissions in master database? (yes,no) [no]: PHP Warning: Undefined array key "svc_detect_change_xmpp_server" in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 63 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. check_service_config_state($servicename = 'xmpp_server', $detected_value = TRUE) /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:347 PHP 3. installer->simple_query($query = 'Service \'xmpp_server\' has been detected (currently disabled) do you want to enable and configure it? ', $answers = [0 => 'yes', 1 => 'no'], $default = 'no', $name = 'svc_detect_change_xmpp_server') /tmp/update_runner.sh.hEMOg7AXgd/install/lib/update.lib.php:453 PHP Warning: Trying to access array offset on value of type null in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 69 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. check_service_config_state($servicename = 'xmpp_server', $detected_value = TRUE) /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:347 PHP 3. installer->simple_query($query = 'Service \'xmpp_server\' has been detected (currently disabled) do you want to enable and configure it? ', $answers = [0 => 'yes', 1 => 'no'], $default = 'no', $name = 'svc_detect_change_xmpp_server') /tmp/update_runner.sh.hEMOg7AXgd/install/lib/update.lib.php:453 Service 'xmpp_server' has been detected (currently disabled) do you want to enable and configure it? (yes,no) [no]: PHP Warning: Undefined array key "svc_detect_change_firewall_server" in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 63 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. check_service_config_state($servicename = 'firewall_server', $detected_value = TRUE) /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:348 PHP 3. installer->simple_query($query = 'Service \'firewall_server\' has been detected (currently disabled) do you want to enable and configure it? ', $answers = [0 => 'yes', 1 => 'no'], $default = 'no', $name = 'svc_detect_change_firewall_server') /tmp/update_runner.sh.hEMOg7AXgd/install/lib/update.lib.php:453 PHP Warning: Trying to access array offset on value of type null in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 69 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. check_service_config_state($servicename = 'firewall_server', $detected_value = TRUE) /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:348 PHP 3. installer->simple_query($query = 'Service \'firewall_server\' has been detected (currently disabled) do you want to enable and configure it? ', $answers = [0 => 'yes', 1 => 'no'], $default = 'no', $name = 'svc_detect_change_firewall_server') /tmp/update_runner.sh.hEMOg7AXgd/install/lib/update.lib.php:453 Service 'firewall_server' has been detected (currently disabled) do you want to enable and configure it? (yes,no) [no]: PHP Warning: Undefined variable $firewall_server_enabled in /tmp/update_runner.sh.hEMOg7AXgd/install/update.php on line 354 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP Warning: Undefined variable $xmpp_server_enabled in /tmp/update_runner.sh.hEMOg7AXgd/install/update.php on line 354 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP Warning: Undefined array key "reconfigure_services" in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 63 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->simple_query($query = 'Reconfigure Services?', $answers = [0 => 'yes', 1 => 'no', 2 => 'selected'], $default = 'yes', $name = 'reconfigure_services') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:373 PHP Warning: Trying to access array offset on value of type null in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 69 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->simple_query($query = 'Reconfigure Services?', $answers = [0 => 'yes', 1 => 'no', 2 => 'selected'], $default = 'yes', $name = 'reconfigure_services') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:373 Reconfigure Services? (yes,no,selected) [yes]: Configuring Postfix Configuring Dovecot Configuring Mailman Configuring Spamassassin Configuring Amavisd Configuring Getmail Configuring BIND PHP Warning: Undefined variable $config_dir in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 2129 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->configure_bind() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:444 PHP 3. installer->process_bind_file($configfile = 'named.conf.options', $target = '/etc/bind/', $absolute = TRUE) /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php:2160 Configuring Pureftpd Configuring Apache Configuring vlogger Configuring Apps vhost Configuring Jailkit Configuring Database Updating ISPConfig PHP Warning: Trying to access array offset on value of type null in /tmp/update_runner.sh.hEMOg7AXgd/install/update.php on line 541 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP Warning: Undefined array key "ispconfig_port" in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 106 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->free_query($query = 'ISPConfig Port', $default = 8080, $name = 'ispconfig_port') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:545 PHP Warning: Trying to access array offset on value of type null in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 112 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->free_query($query = 'ISPConfig Port', $default = 8080, $name = 'ispconfig_port') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:545 ISPConfig Port [8080]: PHP Warning: Undefined array key "create_new_ispconfig_ssl_cert" in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 63 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->simple_query($query = 'Create new ISPConfig SSL certificate', $answers = [0 => 'yes', 1 => 'no'], $default = 'no', $name = 'create_new_ispconfig_ssl_cert') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:550 PHP Warning: Trying to access array offset on value of type null in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 69 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->simple_query($query = 'Create new ISPConfig SSL certificate', $answers = [0 => 'yes', 1 => 'no'], $default = 'no', $name = 'create_new_ispconfig_ssl_cert') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:550 Create new ISPConfig SSL certificate (yes,no) [no]: PHP Warning: Undefined array key "reconfigure_crontab" in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 63 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->simple_query($query = 'Reconfigure Crontab?', $answers = [0 => 'yes', 1 => 'no'], $default = 'yes', $name = 'reconfigure_crontab') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:574 PHP Warning: Trying to access array offset on value of type null in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/installer_base.lib.php on line 69 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. installer->simple_query($query = 'Reconfigure Crontab?', $answers = [0 => 'yes', 1 => 'no'], $default = 'yes', $name = 'reconfigure_crontab') /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:574 Reconfigure Crontab? (yes,no) [yes]: Updating Crontab Restarting services ... PHP Warning: Packets out of order. Expected 1 received 0. Packet size=30 in /tmp/update_runner.sh.hEMOg7AXgd/install/lib/mysql.lib.php on line 207 PHP Stack trace: PHP 1. {main}() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:0 PHP 2. setDefaultServers() /tmp/update_runner.sh.hEMOg7AXgd/install/update.php:637 PHP 3. db->queryAllRecords($sQuery = 'SELECT * FROM dbispconfig.client') /tmp/update_runner.sh.hEMOg7AXgd/install/lib/update.lib.php:421 PHP 4. db->query($sQuery = 'SELECT * FROM dbispconfig.client') /tmp/update_runner.sh.hEMOg7AXgd/install/lib/mysql.lib.php:327 PHP 5. db->_query($sQuery = 'SELECT * FROM dbispconfig.client') /tmp/update_runner.sh.hEMOg7AXgd/install/lib/mysql.lib.php:271 PHP 6. mysqli_ping($mysql = class mysqli { public $affected_rows = -1; public $client_info = 'mysqlnd 8.0.2'; public $client_version = 80002; public $connect_errno = 0; public $connect_error = NULL; public $errno = 2006; public $error = 'MySQL server has gone away'; public $error_list = [0 => [...]]; public $field_count = 12; public $host_info = 'Localhost via UNIX socket'; public $info = NULL; public $insert_id = 0; public $server_info = '5.5.5-10.1.48-MariaDB-0+deb9u1'; public $server_version = 100148; public $sqlstate = 'HY000'; public $protocol_version = 10; public $thread_id = 77919; public $warning_count = 0 }) /tmp/update_runner.sh.hEMOg7AXgd/install/lib/mysql.lib.php:207 Update finished.
Sounds like a recent php packaging issue, see https://www.howtoforge.com/communit...uexec-all-sites-running-under-www-data.86419/
The config files "/etc/apache2/conf-available/php*-fpm.conf" had the correct entry. I had to do this to fix my problem but i can't use php8.0 and i had mpm_event running before. Code: a2dismod php7.0 a2dismod php7.2 a2dismod php7.3 a2dismod php7.4 a2dismod php8.0 a2dismod mpm_event systemctl reload apache2 a2enmod mpm_prefork systemctl reload apache2 a2enmod php7.0 a2enmod php7.2 a2enmod php7.3 a2enmod php7.4 a2enmod reload apache2 Here is the Error i get when i use mpm_event or mpm_worker not sure why php8.0 won't work with mpm_prefork anymore. Code: Considering dependency mpm_prefork for php7.0: Considering conflict mpm_event for mpm_prefork: Considering conflict mpm_worker for mpm_prefork:
Can you undo those changes after doing a forced update and see if it works: Code: ispconfig_update.sh --force
Yes the command "ispconfig_update.sh --force" now works also without any warnings or errors. Not sure what the heck they do with those PHP updates. Whiteout the help i would probably never have figure this out.
I would suggest this: https://www.howtoforge.com/communit...php-and-restore-if-changed.83288/#post-412147
This problem with the "/usr/bin/update-alternatives --set php /usr/bin/php7.X" i had a few weeks ago. But now with this weeks big PHP update there is a new problem. Where i had to switch to mpm_prefork and disable PHP8.0 for the Apache server to start again. Never had problems since Debian 7 but looks like now i get all the problems in one package.
This is not the problem, the problem is https://www.howtoforge.com/communit...tes-running-under-www-data.86419/#post-418511