Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 来自apache localhost的xtreme慢速响应_Php_Macos_Apache_Localhost - Fatal编程技术网

Php 来自apache localhost的xtreme慢速响应

Php 来自apache localhost的xtreme慢速响应,php,macos,apache,localhost,Php,Macos,Apache,Localhost,我对本地主机和PHP5.5.8上的apache2有问题。关于Macosx 一切都是用自制软件安装的 延误的原因可能是什么? 当我想停止服务器时,它有时会以 httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.43.114 for ServerName 我就是这样设置的 <VirtualHost *:80> ServerAdmin webmast

我对本地主机和PHP5.5.8上的apache2有问题。关于Macosx 一切都是用自制软件安装的

延误的原因可能是什么? 当我想停止服务器时,它有时会以

httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.43.114 for ServerName
我就是这样设置的

<VirtualHost *:80>
    ServerAdmin webmaster@test.dev  
    DocumentRoot "/Users/redres/Webdev/testsetup/public"
    ServerName test.dev
    ServerAlias test.dev
    <Directory "/Users/redres/Webdev/testsetup/public">
       Options FollowSymLinks Indexes MultiViews
       Options All
       AllowOverride All
       Order allow,deny
       Allow from All
       Header Set Cache-Control no-cache
    </Directory>
</VirtualHost>

服务器管理员webmaster@test.dev  
DocumentRoot“/Users/redres/Webdev/testsetup/public”
ServerName test.dev
ServerAlias test.dev
选项如下符号链接索引多视图
选项全部
允许超越所有
命令允许,拒绝
通融
标头集缓存控制无缓存

尝试启用缓存:

Header Set Cache-Control public
另外,请阅读:

深入阅读:

我知道在macosx下为vhost使用
.local
地址时会有5秒的延迟,这是由于某些特定于bonjour的查找。由于您没有使用。local,那么您需要提供有关问题的更多信息以获得帮助。您需要什么,我有一个来自homebrew的基本安装,所以我只做了这些设置,还有hosts文件。@Dagon,谢谢。我也发现了这个链接,我正在阅读它。另外,这里可能有人在迁移到apache2时遇到过同样的问题。我将查看这些链接。谢谢,缓存帮助解决了这个问题。