安装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
阅读(1792) | 评论(0) | 转发(1) |