1.下載apache安裝包,并執(zhí)行安裝。
2.下載php5的zip包,并解壓到c:\php
3.修改apache的配置文件httpd.conf,添加以下:成都服務(wù)器托管
復(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.如果出錯,則將php目錄下的dll 復(fù)制到c:\windows\system32目錄。