PHP can be downloaded for free at https://www.php.net/downloads.php
Just make sure you get the latest version that is supported by the operating system of your server.
Create a new folder at your root drive (C:\). C:\php is a good example for a name. The files downloaded previously are in a zip file. Extract the contents and place it in the new folder.
Copy php.ini-development and rename it as php.ini in the same directory. This will be your configuration file. Set any configurations you prefer, or leave as default. However if you want to use mail functions, add your SMTP details in the [mail function] section.
On a PC, type "environment" into the start menu and select "Edit the system environment variables". In the new window, enter the advanced tab and click "Environment Variables". Scroll though system variables, select PATH, then press EDIT, then NEW and add C:\php, then click OK. You may need to restart for changes to take place.
Look for the Apache24\conf directory and open httpd.conf in a text editor. Add the following lines to the bottom:
# PHP8 moduleTry running a test file. Create one called index.php in C:\Apache24\htdocs with these contents:
<?phpFirst step is to open a terminal window and run the following:
npm install -g @angular/cli