Chinaunix首页 | 论坛 | 博客
  • 博客访问: 379055
  • 博文数量: 466
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2015-03-16 13:59
文章分类

全部博文(466)

文章存档

2015年(466)

我的朋友

分类: 系统运维

2015-03-16 14:44:52

安装apache到c:/webSite/apache/

解压php到c:/webSite/php/

安装mysql到c:/webSite/mysql/

解压phpMyAdmin 到 /webSite/apache/htdocs/phpmyadmin/




修改文件/apache/conf/httpd.conf:

找到 DirectoryIndex index.html  在后面加入 index.htm index.php

文件最后加入:
LoadModule php5_module "c:/webSite/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "c:/webSite/php"



php目录里
 将php5ts.dll、libmysql.dll拷到系统目录c:\windows\system32

 
将php.ini-recommended 改为php.ini
修改php.ini
extension_dir   =   "c:/webSite/php/ext"  
extension=php_mysql.dll
extension=php_mssql.dll
extension=php_mysqli.dll
short_open_tag=on

include_path=".;c:\webSite\php\includes;c:\webSite\apache\htdocs
在php目录下建立sessions目录,用于存放session信息
session.save_path="c:/webSite/php/sessions"



解压phpMyAdmin到/apache/htdocs下
/phpmyadmin/config.inc.php:
$cfg['Servers'][$i]['host']          = 'localhost';
$['Servers'][$i]['port']             = '3306';  
$cfg['Servers'][$i]['auth_type']     = 'config';   
$cfg['Servers'][$i]['user']          = 'root';      
$cfg['Servers'][$i]['password']      = 'your mysql password';
$cfg['PmaAbsoluteUri'] = '';

restart your apache server ------ok
阅读(304) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~