各位大侠,我刚学php,apache和php环境都配好了,在eclipse中也陪了php的插件,可以创建了php项目了,我想问一下怎样让我在eclipse中的php项目在apache中跑起来呢?

解决方案 »

  1.   

    帮不了你,我只会用记事本...话说只要你的php文件修改了,用浏览器直接访问就跑起来了啊
      

  2.   

    把你eclipse中的 workspace 设为你apache的DocumentRoot
      

  3.   

    我问一下二楼,apache的DocumentRoot可以自己随便修改吗?是不是修改http.conf中的:<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
        #
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.2/mod/core.html#options
        # for more information.
        #
        Options Indexes FollowSymLinks    #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        AllowOverride None    #
        # Controls who can get stuff from this server.
        #
        Order allow,deny
        Allow from all</Directory>
      

  4.   

    可以随意修改 
    DocumentRoot 跟 Directory 
      

  5.   

    单是我改了以后怎样才能有效呢,重启apache?