存档

文章标签 ‘MySQL’

Apache+PHP+MySQL安装配置摘要@Windows

2010年9月1日 2 条评论

下载软件

安装配置Apache

修改httpd文件:

# PHP Configuration
PHPIniDir "D:/Program Files/PHP/"
LoadModule php5_module "D:/Program Files/PHP/php5apache2_2.dll"

修改mime.types文件:

# PHP Configuration
application/x-httpd-php    php
application/x-httpd-php-source    phps

安装配置PHP

PHP使用的是zip版,解压缩后将php.ini-recommended更名为php.ini

修改php.ini文件:

; Directory in which the loadable extensions (modules) reside
extension_dir = "D:\Program Files\PHP\ext"

; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
extension=php_mysql.dll
;

系统环境变量Path可增加:”D:\Program Files\PHP;D:\Program Files\PHP\ext”

安装配置MySQL

装完MySQL再装GUI Tools,因为喜欢MySQL System Tray Monitor。

软件版本

Windows:7(6.1.7600.16385)
Apache:2.2.15
PHP:5.2.14
MySQL:5.1.50
MySQL GUI Tools:5.0-r17

分类: 文档 标签: , , ,