How to install PHP on Windows 10

How to install PHP on Windows 10, configuring PHP to run as Apache module. Download PHP Thread Safe version from

This PHP video tutorial is for Apache web server, install it first before you install PHP.

Correction at 3:20
A mistyped in the session path directory “c”/apache/temp/session” It should be “c:/apache/temp/session”

Here are the PHP configurations for Apache (httpd.conf):

LoadModule php7_module “C:/Apache/php/php7apache2_4.dll”
ScriptAlias /php/ “C:/Apache/php/”
AddType application/x-httpd-php .php .php5
Action application/x-httpd-php “/php/php-cgi.exe”
SetEnv PHPRC “C:/Apache/php”
PHPIniDir “C:/Apache/php/”

Please watch my video tutorials in the correct order (in the playlist below) to make it make sense.

If you want to install PHP as FastCGI you can follow the instructions in this video:



Build A Site Info