http://localhost/index.php 能够正常访问
而访问http://localhost 出现了下载的提示.请问为什么?
我的httpd.conf:
<IfModule dir_module>
    DirectoryIndex index.phtml index.php index.html index.php3 
</IfModule><IfModule mod_php5.c>
  AddType application/x-httpd-php .php
  AddType application/x-httpd-php .php .phtml .php3
  AddType application/x-httpd-php-source .phps
</IfModule> 

解决方案 »

  1.   

    在该配置文件中添加:
    ScriptAlias /php/ "C:/PHP/" 
        AddType application/x-httpd-php .php3
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php .phtml 
        Action application/x-httpd-php "/php/php.exe"
    重启apache
      

  2.   

    谢谢你的回答。
    我的操作系统是ubuntu的。php是用新立得安装的。
      

  3.   

    配置HTTP.CONF.文件
    c:/windows目录下php.ini文件也要相应改