1.下载apache安装包,并执行安装。
2.下载php5的zip包,并解压到c:\php
3.修改apache的配置文件httpd.conf,添加以下:
#load the php main library to avoid dll hell
loadfile "c:\php\php5ts.dll"
#load the sapi so that apache can use php
loadmodule php5_module "c:\php\php5apache2_2.dll"
#set the php.ini location so that you don't have to waste time guessing where it is
phpinidir "c:\php"
#hook the php file extensions, notice that addtype is not used, since that's just stupid
addhandler application/x-httpd-php .php
addhandler application/x-httpd-php-source .phps
4.如果出错,则将php目录下的dll 复制到c:\windows\system32目录。
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
-
-
为Nginx动态添加模块的方法
写在前面很多时候,我们根据当时的项目情况和业务需求安装完nginx后,后续随着业务的发展,往往会给安装好的nginx添加其他的功能模块。在为nginx添加功能模...
[阅读全文]
-
-
-
-
-
UOS arm换源
清华源mv/etc/apt/sources.list /etc/apt/sources.list.bak备份原始...
[阅读全文]
-
-
IT基础与云计算
软路由器(IPtable)iptable是Linux上常用的防火墙软件。负载均衡负载均衡是网络基础构架的关键组件...
[阅读全文]
网友评论