Install and config Apache, PHP, MySql on windows XP

Software version:

Apache              :        2.2.4
PHP                   :        5.2.0
MySql                :        5.0.27
phpMyAdmin     :         2.10.0


To install the four by the instructions on
http://www.qqread.com/php/n652282101.html

To solve the problem to config apache2 for php5 that cannot load  the modual php5apache2.dll
http://library.monx007.com/computer/install_webserver4/1

Install order:
            apache
            php
            mysql
            zendoptimizer
            phpmyadmin

Recommend: please use apache(2.0.59).
Config PHP5:
1. Create a php.ini file by the content of the file php.ini-dist in the php install root
2.register_globals

;modify 
register_globals 
= Off
;
as
register_globals 
= On

3.Add extentions:
e.x.: add mysql extention
;Modify
;extension
=php_mysql.dll
;as
extension
=php_mysql.dll
4.Add php extention location to system variable: PATH
Config Apache for Apache for PHP5 by modify the config of apache
1.Load php module
#Add the following lines in the LoadModule section
LoadModule php5_module C:/Program Files/Apache Software Foundation/PHP/php5apache2.dll
PHPIniDir 
"C:/Program Files/Apache Software Foundation/PHP/"
2.Add execut file type
#Add the following lines in <IfModule mime_module> section
AddType application/x-httpd-php .php
AddType application
/x-httpd-php .html

2 Add directory index index.php
#modify 
<IfModule dir_module>
    DirectoryIndex 
index.html
</IfModule>
#as
<IfModule dir_module>
    DirectoryIndex 
index.php index.html
</IfModule>

Install phpmyadmin:
1.Create phpmyadmin directory in web server root
2.Copy the phpmyadmin source to the the created directory
3.Copy config.sample.inc.php to the same folder with the file name: config.inc.php
4.Config phpmyadmin by modifying the config.inc.php
      a.blowfish_secret
         
//Modify
$cfg['blowfish_secret'= ''/* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
//as
$cfg['blowfish_secret'= 'test'/* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

      b.Access mysql account information
//Add the following lines
$cfg['Servers'][$i]['user']          = 'root';
$cfg['Servers'][$i]['password']      = 'yourpasswordhere'// use here your password
5.On IE access the path : http://localhost/phpmyadmin/, then the phpmyadmin will display

Error:
If you see the exception:#1045 - Access denied for user 'pmausr'@'localhost' (using password: YES)
Just do the following:
//Modify 
/*
 User for advanced features */
$cfg['Servers'][$i]['controluser'= 'pmausr';
$cfg['Servers'][$i]['controlpass'= 'pmapass';
//As
/*
 User for advanced features */
$cfg['Servers'][$i]['controluser'= 'root';
$cfg['Servers'][$i]['controlpass'= 'rootpassword';
Then access the http://localhost/phpmyadmin/ again.
posted @ 2007-02-04 00:22  Freedom  阅读(682)  评论(0编辑  收藏  举报