A little search will take you to pages on how to configure apache to enable PHP. https://websitebeaver.com/set-up-localhost-on-macos-high-sierra-apache-mysql-and-php-7-with-sslhttps
The recommended version is PHP 8.
Topic:
App & System Services
SubTopic:
Core OS
Tags: