Symptoms
- Cannot login into WordPress admin dashboard because the
wp-login.php
file is downloaded instead of opening. -
Opening website leads to the
index.php
being downloaded instead of being opened.
Cause
PHP support is disabled for the example.com
domain at Plesk > Domains > example.com > PHP Settings.
Resolution
Enable the PHP Support for the example.com
website in one of the following ways:
via Plesk Graphical Interface
-
Log into Plesk and navigate to Domains > example.com > PHP Settings.
-
Mark the PHP Support checkbox and press the OK button: