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工具之Nethogs按進(jìn)程監(jiān)控網(wǎng)絡(luò)帶寬的安裝部署
NetHogs是一個(gè)小型的net top工具,不像大多數(shù)工具那樣拖慢每個(gè)協(xié)議或者是每個(gè)子網(wǎng)的速度而是按照進(jìn)程進(jìn)行帶寬分組,這篇文章主要介紹了Linux工具Nethogs按進(jìn)程監(jiān)控網(wǎng)絡(luò)帶寬,值得收藏,需要的朋友可以參考下2019-07-07
CentOS 7 虛擬機(jī)無法開機(jī)問題的快速解決方法
這篇文章主要介紹了CentOS 7 虛擬機(jī)無法開機(jī)問題的快速解決方法,非常不錯(cuò),具有一定的參考借鑒價(jià)值,感興趣的朋友一起看看吧2016-11-11
linux操作系統(tǒng)下配置ssh/sftp和權(quán)限設(shè)置方法
這篇文章主要介紹了linux操作系統(tǒng)下配置ssh/sftp和權(quán)限設(shè)置方法 ,非常不錯(cuò),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2018-11-11
Apache中Virtual Host虛擬主機(jī)配置及rewrite參數(shù)說明
這篇文章主要介紹了Apache中Virtual Host虛擬主機(jī)配置及rewrite模塊中的重要參數(shù)說明,是在同一個(gè)Apache服務(wù)器軟件上部署多個(gè)站點(diǎn)的基礎(chǔ)方法,需要的朋友可以參考下2016-03-03

