apache 支持 php5 的配置方法(php5.6 apache)

apache 支持 php5 的配置方法(php5.6 apache)

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目录。

分享到 :
相关推荐

美国服务器部署海外直播业务如何加速(美国服务器部署海外直播业务如何加速播放)

美国服务器部署海外直播业务的选择因素:1.租用美国服务器部署海外直播业务的话首先要选...

海外虚拟云主机和VPS有哪些区别(海外虚拟云主机和vps有哪些区别)

海外虚拟云主机和VPS的区别有:1。性能不同。vps的性能受部署的物理服务器影响。服...

windows中apache 301页面跳转实现方法

实现301页面跳转之前需要对apache配置做下修改如apache默认是没有开启m[...

低价香港服务器托管要注意哪些事项(低价香港服务器托管要注意哪些事项呢)

低价香港服务器托管要注意的事项有:1。香港服务器的数据中心大小。选择大且好的香港服务...

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注