要在apace的config文件中配置可以支持php文件

解决方案 »

  1.   

    我已经配置过了,可是还是不能解释php程序,有高手吗,真的很急
      

  2.   

    你是如何配置的呢?
    是配成cgi还是dso?你最好把php相关部分的配置代码贴一下
      

  3.   

    我也不晓得我配的对不对,都是从网上看到的一些配置配的,
    httpd.conf的配置AddType application/x-httpd-php .php .php3 .php4
    AddType  application/x-httpd-php-source  .phps LoadModule php4_module c:/php/sapi/php4apache2.dllphp.ini的配置我只改了extension_dir和doc_dir
      

  4.   

    to  cloudwon(地球之巅) 
    呵呵,不好意思阿,能不能给我解释一下cgi和dso都是什么东东??
      

  5.   

    以下是我的http.conf文件内容
        #
        # ScriptAlias: This controls which directories contain server scripts.
        # ScriptAliases are essentially the same as Aliases, except that
        # documents in the realname directory are treated as applications and
        # run by the server when requested rather than as documents sent to the client.
        # The same rules about trailing "/" apply to ScriptAlias directives as to
        # Alias.
        #
        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"    #
        # "C:/Program Files/Apache Group/Apache/cgi-bin" should be changed to whatever your ScriptAliased
        # CGI directory exists, if you have that configured.
        #
        <Directory "C:/PHP">
            AllowOverride None
            Options None
            Order allow,deny
            Allow from all
        </Directory></IfModule>
    # End of aliases.
      

  6.   

    http://www.ccidnet.com/tech/os/2001/06/20/58_2407.html