After switching the PHP version to 8.4, the following error occurred!

I created a new configuration for the .conf domain name in /etc/php/8.4/fpm/pool.d
Then use sudo systemctl restart php8.4-fpm

Problem solved