Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1101596
  • 博文数量: 1310
  • 博客积分: 3980
  • 博客等级: 中校
  • 技术积分: 8005
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-09 22:05
文章分类

全部博文(1310)

文章存档

2011年(1)

2008年(1309)

我的朋友

分类:

2008-07-06 13:25:56

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


To solve the problem to config apache2 for php5 that cannot load  the modual php5apache2.dll


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  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 : , 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  again.


[新闻]FriendFeed介绍
阅读(194) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~