I don’t think this is specific to CentOS only. Nevertheless, on my system with CentOS7 with PHP 7 installed as the default php version, the web page was not displaying; rather, the php page was offered to be downloaded:
The following line had to be changed in “.htaccess” file:
BAD: AddType application/x-httpd-php .php .php7 .phtml
GOOD: AddType application/x-httpd-php7 .php7
AddType application/x-httpd-php7 .php7 # AddType application/x-httpd-php7 .php .php7 .phtml # php -- END cPanel-generated handler, do not edit # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]