如果这是针对您的主站点的,我建议您判断您的cPanel > File Manager > public_html folder > look for .htaccess file
%的可能性是,您的htaccess
文件中指定了一个PHP版本,该版本覆盖了您的cPanel上设置的PHP版本.
你可能想要在你的.htAccess中寻找“ea-php74”
,并将其更新到8.1才能工作.
您也可以try 通过在文件.htaccess
文件的顶部添加以下PHP处理程序来替换它:
php – BEGIN cPanel-generated handler, do not edit
Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php81___lsphp .php .php8 .phtml
</IfModule>
php – END cPanel-generated handler, do not edit