牛骨文教育服务平台(让学习变的简单)
博文笔记

现象:APACHE调用PHP执行慢4到5秒

创建时间:2012-07-01 投稿人: 浏览次数:141

环境是:XAMPP APACHE PHP MYSQL SERVER2003

现象是:APACHE日志记录收信息是10:00:00

                执行PHP的时间是10:00:04,非常有规律,每次都慢4到5秒



解决方案:

1.

DocumentRoot "D:/www"设置好


2.

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/www">
    #
    # 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 Includes ExecCGI


    #
    # 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 All


    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all


</Directory>


#

3.所有/xampp/

   修改为绝对路径C:/xampp/




声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。