PHP 8 removed many outdated commands. It may require reworking some of your PHP code. This is not really a technical issue, but simply a change in the language. Please check your error_log file (or the "Logs" link on "Websites & Domains"). The log file will show the exact error message what PHP doesn't like about the code.