I am new to web development and recently got a Mac running macOS Catalina. I am eager to start building websites using PHP, but I'm unsure about how to set it up to work with the built-in macOS web server (Apache) or other web servers like Nginx.
I have installed Xcode Command Line Tools on my Mac and read that PHP comes pre-installed with macOS. However, I'm not sure how to configure it to work with Apache or Nginx. Can someone please guide me through the installation and configuration process?
I would greatly appreciate any guidance or step-by-step instructions on how to properly configure PHP with the macOS web server or other web servers. Thank you in advance for your help!