首页 > 代码库 > Apache与PHP整合

Apache与PHP整合

在conf/httpd.conf里添加

LoadModule php5_module "C:/MyPHP/php-5.3.5/php5apache2_2.dll"
PHPIniDir "C:/MyPHP/php-5.3.5"
AddType application/x-httpd-php .php .html .htm

 

php配置 
php.ini-development 文件重命名为 php.ini 
指定PHP扩展包的具体目录,以便调用相应的DLL文件 

; Directory in which the loadable extensions (modules) reside. 
; http://php.net/extension-dir 
; extension_dir = "./" 
; On windows: 
; extension_dir = "ext" 


修改为 

; Directory in which the loadable extensions (modules) reside. 
; http://php.net/extension-dir 
; extension_dir = "./" 
; On windows: 
extension_dir = "C:/MyPHP/php-5.3.5/ext"

Apache与PHP整合