Apache 配置 php 模块

WBOY
Release: 2016-06-23 14:29:12
Original
855 people have browsed it

打开 httpd.conf 文件 加入以下配置

以php模块配置apache2 .2 .x 

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL by hooyes
PHPIniDir  " D:/php-5.2.6-Win32/ "
LoadFile D:/php- 5.2.6 -Win32/php5ts.dll
LoadFile D:/php- 5.2.6 -Win32/libmysql.dll  
LoadFile D:/php- 5.2.6 -Win32/ntwdblib.dll
LoadModule php5_module  " D:/php-5.2.6-Win32/php5apache2_2.dll "
AddType application/x-httpd-php .php

#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL 


 D:/php-5.2.6-Win32/

为php程序包的目录,根据具体情况修改

 

其它:

IIS 配置 php 支持:

微软官方已提供 IIS php 支持:

登录:http://php.iis.net/ 即可轻松获取安装包

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!