apache 支援 php5 的配置方法

NO IMAGE

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

您可能感興趣的文章:

CentOS 6.4安裝配置LAMP伺服器(Apache PHP5 MySQL)Centos搭建PHP5.3.8 Nginx1.0.9 Mysql5.5.17詳細配置關於nginx php5.3.8 eclipse3.7工作空間的配置方法php5 apache 2.2 webservice 建立與配置(java)Apache2.2.16 PHP5.3.3 MySQL5.1.49的配置方法Windows下Nginx PHP5 的安裝與配置方法Windows下Nginx PHP5的安裝與配置方法apache Php5配置方法IIS 環境下配置PHP5 MySql PHPMyAdmin安裝apache2.2.22配置php5.4(具體操作步驟)