I prefer installing Apache, PHP, and MySQL manually as you can know all of its configuration and settings for later usage.
- Prefer installing Apache 2.2.6 using a MSI Installer (Easy to install for Widows Users)
- Use the AccessFileName Directive to alter the filename of Accessfile. (I'm suggesting this because Windows MAY not allow you to have files starting with a period character.) Prefer using
Code:
AccessFileName ht.access .htaccess
in your httpd.conf
- Install PHP (Prefer using php.ini-dist)
- Add the following lines to your httpd.conf
Code:
LoadModule php5_module php/php5apache2_2.dll
AddType application/x-httpd-php .php
I have installed PHP inside the Apache Installation directory and that's why I have used a relative path to LoadModule directive.
- Install MySQL
- Edit the PHP.ini
---- Set Error_reporting = E_ALL (Useful for Testing Environment)
---- Set Extension Directory
---- Un-Comment the Extensions you want to use. (mysql & mysqli - For using MySQL)
I think, this is enough for you to complete your task successfully.
All the best.