thank you very much for your work!
upgrade from Debian 9 (i-mscp nginx PHP version 7.0)
- Servers::php::preinstall: Couldn't stop the php8.1-fpm service: Couldn't resolve the php8.1-fpm unit: Couldn't resolve the php8.1-fpm SysVinit script at /usr/local/src/imscp-1.5.3-maintenance-joxi/engine/PerlLib/iMSCP/Service.pm line 205.
- at /usr/local/src/imscp-1.5.3-maintenance-joxi/engine/PerlLib/iMSCP/Service.pm line 205.
- at /usr/local/src/imscp-1.5.3-maintenance-joxi/engine/PerlLib/Servers/php.pm line 91.
PHP 8.0 and 8.1 packages missing in stretch packages file e.g.
php8.0-fpm
php8.1-fpm
...
etc.
These are required for an upgrade with a standard stretch system when PHP 8.0 & 8.1 packages are not already installed.
When PHPswitcher plugin is installed, a few changes must be made to the plugin before upgrading
- nano /var/www/imscp/gui/plugins/PhpSwitcher/backend/PhpSwitcher.pm
- for my $phpVersion ( qw/ 5.6 7.0 ... / )
- change to:
- for my $phpVersion ( qw/ 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 / ) {
- nano /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl
- search for "End of life"
- replace:
- '7.4' => [ # End of life: December 2022 - Unreleased yet
- '7.4.0RC4', 'https://downloads.php.net/~derick/php-7.4.0RC4.tar.gz'
- ]
- with:
- '7.4' => '7.4.28', # End of life: 28 November 2022
- '8.0' => '8.0.18', # End of life: 26 November 2023
- '8.1' => '8.1.5' # End of life:
Display More
After these changes the upgrade process finished successful ...
However, after the first login as administrator I see an error message (on login page)
An unexpected error occurred
An unexpected error occurred. Please contact your administrator.
### edit ###
with debug enabled it shows:
An exception has been thrown in file /var/www/imscp/gui/vendor/zendframework/zendframework1/library/Zend/Navigation/Page.php at line 503:
Invalid argument: $target must be a string or null