Multiple WordPress websites on WHM are downloading .php files instead of loading. Changing php version on any site is a temporary fix.
I have multiple WordPress websites on WHM and recently all sites start downloading .php files instead of loading them. If I switch the PHP version in the cPanel for any of the sites on the server they all start loading .php files correctly.
This is only a temporary fix because hours later the site start downloading .php files again. It seems like the server is disabling php and it becomes enabled again when I switch php versions. Any suggestions?