Home > Database > Mysql Tutorial > php+apache+mysql windows安装_MySQL

php+apache+mysql windows安装_MySQL

WBOY
Release: 2016-06-01 13:12:25
Original
913 people have browsed it

Apache

要在windows中搭建php运行环境,参考了两篇文章

http://wenku.baidu.com/link?url=7REzCU45Olx1NfK8Sz_TExQeMQR3OFm0bP6BrWKgUxeOHeI9Tz_OLz3ylj2rGtXRHURTvhGetn2kEGrsS99QZU8PNLpFhiaXisYp9S1Mj6e

http://www.cnblogs.com/tigertall/archive/2010/01/28/1658869.html

先来配置php:

打开php.ini-development文件,复制一份,取名php.ini。



为了使php能够调用其他模块,以extension关键字搜索,将前面的分号去掉即可,就先去掉;extension=php_mysql.dll这一个模块吧。


然后配置apache:

1.为了让apache加载php执行,打开apache安装文件夹下的httpd.conf文件,在最后加入

(假设你的php在D:/PHP/php-5.3.1-Win32-VC6-x86)

LoadModule php5_module D:/PHP/php-5.3.1-Win32-VC6-x86/php5apache2_2.dll

PHPIniDir "D:/PHP/php-5.3.1-Win32-VC6-x86"




2.定义那些类型文件需要php解析器处理

以关键字AddType application搜索,可以定义能够执行php文件类型,

在附近加入AddType application/x-httpd-php .php(注意空格)

资源在:http://download.csdn.net/detail/guanweiliang/7433709

附:

资源在:http://download.csdn.net/detail/guanweiliang/7433723

http://download.csdn.net/detail/guanweiliang/7433709

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template