apache 支持 php5 的配置方法
更新時(shí)間:2010年03月18日 23:29:14 作者:
httpd.conf下讓apache 支持 php5 的配置
1.下載apache安裝包,并執(zhí)行安裝。
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.如果出錯(cuò),則將php目錄下的dll 復(fù)制到c:\windows\system32目錄。
2.下載php5的zip包,并解壓到c:\php
3.修改apache的配置文件httpd.conf,添加以下:
復(fù)制代碼 代碼如下:
#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.如果出錯(cuò),則將php目錄下的dll 復(fù)制到c:\windows\system32目錄。
您可能感興趣的文章:
- CentOS 6.4安裝配置LAMP服務(wù)器(Apache+PHP5+MySQL)
- Centos搭建PHP5.3.8+Nginx1.0.9+Mysql5.5.17詳細(xì)配置
- 關(guān)于nginx+php5.3.8+eclipse3.7工作空間的配置方法
- php5 apache 2.2 webservice 創(chuàng)建與配置(java)
- Apache2.2.16+PHP5.3.3+MySQL5.1.49的配置方法
- Windows下Nginx + PHP5 的安裝與配置方法
- Windows下Nginx+PHP5的安裝與配置方法
- apache Php5配置方法
- IIS 環(huán)境下配置PHP5+MySql+PHPMyAdmin
- 安裝apache2.2.22配置php5.4(具體操作步驟)
相關(guān)文章
Linux 創(chuàng)建子進(jìn)程執(zhí)行任務(wù)的實(shí)現(xiàn)方法
下面小編就為大家分享一篇Linux 創(chuàng)建子進(jìn)程執(zhí)行任務(wù)的實(shí)現(xiàn)方法,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,一起跟隨小編過(guò)來(lái)看看吧2018-01-01在CentOS VPS上通過(guò)SSH安裝 MySQL的方法圖解
這篇文章主要介紹了在CentOS VPS上通過(guò)SSH安裝 MySQL,需要的朋友可以參考下2018-12-12Linux系統(tǒng)下Nginx支持ipv6配置的方法
這篇文章主要介紹了Linux系統(tǒng)下Nginx支持ipv6的方法,小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2018-12-12vmware中CentOS7網(wǎng)絡(luò)設(shè)置教程詳解
這篇文章主要為大家詳細(xì)介紹了vmware中CentOS7網(wǎng)絡(luò)設(shè)置教程,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2017-07-07linux文件系統(tǒng)調(diào)整大小的方法(linux調(diào)整分區(qū)大小)
本文歸納了在不破快文件系統(tǒng)數(shù)據(jù)的前提下對(duì)文件系統(tǒng)大小進(jìn)行調(diào)整的方法.這里采用的是"拆東墻, 補(bǔ)西墻"的方法, 當(dāng)然, 如果你的磁盤(pán)中有未分區(qū)的空閑空間, 你就不用減小某個(gè)分區(qū)的空間了2014-01-01centos7修改系統(tǒng)語(yǔ)言為簡(jiǎn)體中文的實(shí)現(xiàn)
這篇文章主要介紹了centos7修改系統(tǒng)語(yǔ)言為簡(jiǎn)體中文的實(shí)現(xiàn),文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2020-04-04