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

下载软件

安装配置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

《Apache+PHP+MySQL安装配置摘要@Windows》有2条评论

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据