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

Install and config Apache, PHP, MySql on windows XP;modify 
Install and config Apache, PHP, MySql on windows XPregister_globals 
= Off
Install and config Apache, PHP, MySql on windows XP;
as
Install and config Apache, PHP, MySql on windows XPregister_globals 
= On

3.Add extentions:
e.x.: add mysql extention
Install and config Apache, PHP, MySql on windows XP;Modify
Install and config Apache, PHP, MySql on windows XP;extension
=php_mysql.dll
Install and config Apache, PHP, MySql on windows XP;as
Install and config Apache, PHP, MySql on windows XPextension
=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
Install and config Apache, PHP, MySql on windows XP#Add the following lines in the LoadModule section
Install and config Apache, PHP, MySql on windows XP
LoadModule php5_module C:/Program Files/Apache Software Foundation/PHP/php5apache2.dll
Install and config Apache, PHP, MySql on windows XPPHPIniDir 
"C:/Program Files/Apache Software Foundation/PHP/"
Install and config Apache, PHP, MySql on windows XP
2.Add execut file type
Install and config Apache, PHP, MySql on windows XP#Add the following lines in <IfModule mime_module> section
Install and config Apache, PHP, MySql on windows XP
AddType application/x-httpd-php .php
Install and config Apache, PHP, MySql on windows XPAddType application
/x-httpd-php .html

2 Add directory index index.php
Install and config Apache, PHP, MySql on windows XP#modify 
Install and config Apache, PHP, MySql on windows XP
<IfModule dir_module>
Install and config Apache, PHP, MySql on windows XP    DirectoryIndex 
index.html
Install and config Apache, PHP, MySql on windows XP
</IfModule>
Install and config Apache, PHP, MySql on windows XP
#as
Install and config Apache, PHP, MySql on windows XP
<IfModule dir_module>
Install and config Apache, PHP, MySql on windows XP    DirectoryIndex 
index.php index.html
Install and config Apache, PHP, MySql on windows XP
</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
         
Install and config Apache, PHP, MySql on windows XP//Modify
Install and config Apache, PHP, MySql on windows XP
$cfg['blowfish_secret'= ''/* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
Install and config Apache, PHP, MySql on windows XP
//as
Install and config Apache, PHP, MySql on windows XP
$cfg['blowfish_secret'= 'test'/* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
Install and config Apache, PHP, MySql on windows XP

      b.Access mysql account information
Install and config Apache, PHP, MySql on windows XP//Add the following lines
Install and config Apache, PHP, MySql on windows XP
$cfg['Servers'][$i]['user']          = 'root';
Install and config Apache, PHP, MySql on windows XP
$cfg['Servers'][$i]['password']      = 'yourpasswordhere'// use here your password
Install and config Apache, PHP, MySql on windows XP
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:
Install and config Apache, PHP, MySql on windows XP//Modify 
Install and config Apache, PHP, MySql on windows XP/*
 User for advanced features */
Install and config Apache, PHP, MySql on windows XP
$cfg['Servers'][$i]['controluser'= 'pmausr';
Install and config Apache, PHP, MySql on windows XP
$cfg['Servers'][$i]['controlpass'= 'pmapass';
Install and config Apache, PHP, MySql on windows XP
//As
Install and config Apache, PHP, MySql on windows XP/*
 User for advanced features */
Install and config Apache, PHP, MySql on windows XP
$cfg['Servers'][$i]['controluser'= 'root';
Install and config Apache, PHP, MySql on windows XP
$cfg['Servers'][$i]['controlpass'= 'rootpassword';
Then access the http://localhost/phpmyadmin/ again.

相关文章: