您的位置:首页 > 运维架构 > Apache

Apache+php+mysql在windows下的安装与配置图解(最新版)

2012-10-21 23:08 941 查看
http://tech.163.com/06/0206/11/299AMBLT0009159K.html

1、apache配置(httpd.conf )

a、DocumentRoot "E:/Apache2/root"  文档根路径,将文件放入此文件夹中,加载到server。

b、<Directory "E:/Apache2/root"> 

c、DirectoryIndex DirectoryIndex index.php index.html index.html.var 默认加载哪种类型的文件

2、以模块化的方式加载php

LoadModule php5_module E:/php/php5apache2.dll

PHPIniDir "E:/php"

添加可执行php代码的文件类型

AddType application/x-httpd-php .php

AddType application/x-httpd-php .html

AddType application/x-httpd-php .htm

AddType application/x-httpd-php .txt

3、在php.ini里加载mysql模块。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: