Hi, Can anyone help me with php problem. Update-alternatives shows (also php -v) that my php version is 7.4 (default). However ISPC ignores that and treats higher installed version as default (in my case 8.2). Is it an error or config problem?
Never alter the default PHP version of the OS, as this likely breaks your ISPConfig system. The default PHP version of the OS gets only changed in case you upgrade the OS to a new version that has a different default PHP version. Take care to change back the default version of the OS before your system gets broken and do not use ISPConfig until you reversed the PHP version change.
Find your OS default php version and follow this step here to change back to that php version: https://www.howtoforge.com/ispconfig-php-debian/#-set-the-os-default-php-back-to-the-correct-version
Hi... so if I understand... i should revert default php to version that comes with Debian 10 (my present system) and ISP should work fine?
php -v will be showing you the php version that the cli is using, not the sites or control panel.. ispconfig, and your websites, will be using php-cgi or php-fpm you should check what the alternatives for those are set to, (php-cgi, php-cgi-bin, & php-fpm.sock) and change them back to the default version if different.
The same command for each type of php in the said tutorial should already show what is set when one run such command, while at the same time giving options for change, if needed.