How to Install PHP

Step 1: Download the files!

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.

Step 2: Extract files

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.

Step 3: Configure php.ini

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.

Step 4: Add C:\php to the system's path environment variable

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.

Step 5: Configure PHP as an Apache module

Look for the Apache24\conf directory and open httpd.conf in a text editor. Add the following lines to the bottom:

# PHP8 module
PHPIniDir "C:/php"
LoadModule php_module "C:/php/php8apache2_4.dll"
AddType application/x-httpd-php .php

Save changes, then test in command prompt:

cd C:\Apache24\bin
httpd -t

Test it!

Try running a test file. Create one called index.php in C:\Apache24\htdocs with these contents:

<?php
phpinfo();
?>

Try running your server address, and if you see a "PHP version" page, it worked!



How to Install Angular

Step 1: Instal the Angular CLI

First step is to open a terminal window and run the following:

npm install -g @angular/cli

Step 2: Create a workspace


After the CLI is installed, run the following:
ng new my-app
You will be met with a prompt. For this, let's select CSS.

Step 3: Run it!


After that is finished, enter the following into the terminal:

cd my-app
ng serve --open

This will launch the server within your browser. Any changes made to the app will be seen here automatically.