【问题标题】:Can't access .htaccess; Too many open files无法访问.htaccess;打开的文件太多
【发布时间】:2018-07-25 09:37:56
【问题描述】:

最近安装了 phpStorm 和 xDebug。 随机出现以下错误,导致我的开发页面无法加载:

Forbidden
You don't have permission to access /admin/subscription/add/16603 on this server.
Server unable to read htaccess file, denying access to be safe

tail -f /var/log/apache2/error_log 显示:

24)Too many open files: [client 127.0.0.1:54206] AH00529:         /Users/jeshuadunham/Sites/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/Users/jeshuadunham/Sites/' is executable, referer: http://dev2.evesun.com/blog/

大约 30 秒后,刷新工作正常。

【问题讨论】:

  • 您对 .htaccess 文件以及文档根文件夹的权限是什么?
  • @Java-DK 我已经在使用该链接中的建议选项了。
  • @PanamaJack 的权限都属于我,除了需要www拥有的日志文件。
  • 我提到permissions不是所有权。

标签: .htaccess apache2 xdebug


【解决方案1】:

显然这是 xdebug 中的一个错误。

http://bugs.xdebug.org/view.php?id=1070

解决方法如下:

我使用的解决方法是关闭自动启动:

xdebug.remote_autostart = 0

然后在 Firefox 中安装名为 The Easiest XDebug 的附加组件

在 PHPStorm 中,当您要调试时打开监听器。它不会 除非您单击 Firefox 工具栏中的错误图标,否则会中断。你可能 如果您在 PHPStorm 中打开侦听器会出现一些错误,因此请打开它 不使用时关闭。

【讨论】:

    猜你喜欢
    • 2013-04-02
    • 2015-12-17
    • 2012-08-14
    • 2021-01-15
    • 1970-01-01
    • 1970-01-01
    • 2021-12-28
    • 2013-11-15
    • 2012-08-03
    相关资源
    最近更新 更多