情况:为apache2.2配置php6
问题1. 打开localhost时,蹦出下载框,提示下载index.php
解决办法:
检查httpd.conf
1.设置默认文档:默认为DirectoryIndex index.html,修改添加index.php
2.添加以下选项
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
PHPIniDir "D:/PHP5-2-13"
注意空格不能多也不能少 这个往往是最后的原因