Problem solved. As a result, there was an error in php. I opened php 7.4 and saw the following error there: json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
. I decided to remove and reinstall php 7.4 after the installation was successfully completed, it turned out that 7.4 was not installed, as if it had not been installed (the inscription to install is fun after reloading the page), and I tried this several times, in the end Failed to install php 7.4. I decided to install php 8.0 - and it was successfully installed, and the errors disappeared on the WordPress site.