Just because I find it frustrating how obtuse the install directions for PHP are…
- Download and install Apache
- Download, install, and configure MySQL
- Download PHP and unzip to somewhere like “C:\php5.2”
- Update php.ini file in PHP install directory; update or uncomment the following line:
- extension=php_mysql.dll
- SMTP = localhost
- Copy these two files from the php dir to the apache\bin dir:
- php5ts.dll
- libmysql.dll
- Update your httpd.conf to have the following lines (they can be at the bottom):
AddType application/x-httpd-php .php
PHPIniDir "C:/php5.2/"
LoadModule php5_module "C:/php5.2/php5apache2_2.dll"
- Restart apache service; test with phpinfo()