1. Install apache2 server
2. Install PHP5 from zip file not from windows installer.
- Download "Thread Safe" version
- Unzip the file
- Add the PHP unzipped directory to system's path (c:/php)
(If using windows installer to install PHP, php5apache2_2.dll will not be available. so use ZIP archive to install PHP)
Configure PHP with apache2
add the below end of #LoadModule linesLoadModule php5_module "c:/php/php5apache2_2.dll"AddHandler application/x-httpd-php .php# configure the path to php.iniPHPIniDir "c:/php"
configure MySql
Install MySql by windows installer
edit "php.ini" file to enable Mysql in PHP
add the extextion path:
extension_dir = "c:\php\ext"
load mysql extensions:
;extension=php_mysql.dll
;extension=php_mysqli.dll
remove ";" from above
extension=php_mysql.dll
extension=php_mysqli.dll
restart/ start the apache2 server.
Comments
Post a Comment