PHP support should run as Apache module. Please follow these steps to ensure your PHP scripts run without issues.
Login to your Plesk panel.
Go to Websites & Domains tab.
Click Hide Advanced Operations to expand the options.
Click on Website Scripting and Security.
Check the PHP support option if not already checked.
Select Apache module in the run as option field.