You can enable or disable PHP or Python for websites, using the Server app.
You use PHP or Python scripts to create dynamic web content or web apps.
In the Websites pane of the Server app, select or deselect the desired web scripting language:
Enable PHP web apps
Enable Python web apps
If web service isn’t turned on, click the On/Off switch to turn it on.