PHP pages on domains in Plesk are downloaded instead of being opened

Started by Suhitha, Dec 31, 2025, 05:52 AM

Previous topic - Next topic

Suhitha

Question: PHP pages on domains in Plesk are downloaded instead of being opened


Applicable to:

  • Plesk
  • Plesk for Linux
  • Plesk for Windows


Symptoms

  • WordPress admin dashboard can not be opened for a Plesk domain. The wp-login.php file is being downloaded instead of opening.
  • Opening website leads to the index.php being downloaded instead.


Cause

PHP support is disabled for the example.com domain in 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

1.Log into Plesk.

2.Navigate to Domains > example.com > PHP Settings.

3.Select the PHP Support checkbox and press the OK button:




                                    via Command Line Interface (CLI)

1.Connect to the server via SSH or RDP.

2.For Plesk for Windows, additionally start the Command Prompt.

3.Execute the following command:

Note: change the "example.com" domain in the command below to the correct one

# plesk bin subscription -u example.com -php true