2015-06-24 28 views
1

最近安裝了phpStorm和xDebug。 隨機,我碰到下面的錯誤導致我開發的網頁不負載:無法訪問.htacess;打開的文件太多

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秒後,刷新工作正常。

+0

試試這個:http://stackoverflow.com/questions/10873295/error-message-forbidden-you-dont-have-permission-to-access-on-this-server –

+0

什麼是您的權限您.htaccess文件以及您的文檔根文件夾? –

+0

@ Java-DK我已經從該鏈接使用了sugessted選項。 – JeshuaD

回答

2

顯然這是xdebug中的一個錯誤。

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

的解決方案如下:

我使用的解決辦法是,關閉自動啓動:

xdebug.remote_autostart = 0

然後在Firefox安裝的添加 - 被稱爲The Easiest XDebug

在PHPStorm中打開當你想調試的時候監聽器。除非您單擊Firefox工具欄中的錯誤圖標,否則不會破壞 。如果您將偵聽程序置於PHPStorm中,您可能會在 中發生一些錯誤,因此在您不使用它時請將其關閉 。