我用的就是默认路径,安装php后,提示说需要配置apache的文件,这个怎么配置呀?

解决方案 »

  1.   

    需要配置apache里conf里一个httpd.conf的文件
    用记事本打开,在最下面添加
    ScriptAlias /php4/ "C:/php4/"
         AddType application/x-httpd-php4 .php
    AddType application/x-httpd-php4 .php3
    AddType application/x-httpd-php4 .php4
    Action application/x-httpd-php4 "/php4/php.exe"
       DirectoryIndex index.html
       DirectoryIndex index.htm 
       DirectoryIndex index.php 
       DirectoryIndex index.php3 
       DirectoryIndex index.php4 目录根据你安装时定至于你说那个,我以前也碰到过
    我感觉是,PHP解析没弄好,也就是PHP没配置好,不能解析PHP语法
    所以1.php没解析出来,不能显示该页面,就直接提示下载了