apache的httpd.conf文件里还要
DirectoryIndex index.html index.html.var
变成
DirectoryIndex index.html index.html.var index.php
DirectoryIndex index.html index.html.var
变成
DirectoryIndex index.html index.html.var index.php
在连续的#LoadModule后追加如下语句:
#LoadModule php4_module C:/php/sapi/php4apache2.dll上面的“#”要去掉!!!不然,加了也是白加
AddType application/x-httpd-php.php
改成
AddType application/x-httpd-php .php
|---> 这里需要空格分开
php还没运行,着重修改相关配置。