<p>Had the same problem. I my case, it was the following code in my nginx config file:</p>

<pre><code>location ~* (?:\.(?:bak|config|sql|fla|ini|log|sh|inc|swp|dist)|~)$ {
    deny all;
}
</code></pre>

<p>After removing <strong>log|</strong> from the list, the problem was solved.</p>

CC BY-SA 3.0
2016-03-13T00:20:29.843Z
2016-03-13T00:20:29.843Z
Jay Berg
<p>Sounds like a file permission issue. Make sure that <code>phperrors.log</code> has acceptable read permissions.</p>

CC BY-SA 3.0
2016-02-05T12:07:24.727Z
I also have this issue, all the files in /craft/storage/runtime/logs are: `-rw-r--r--  1 forge forge` - I can access `/admin/utils/logs` but if I select another logfile, I get the same nginx 403.
Adam Menczykowski
CC BY-SA 3.0
2014-12-03T17:31:46.020Z
Not working. Read permissions are the same as craft.log. And they work normal. 

Tried other permission settings. Same error.
Johannes Lamers
CC BY-SA 3.0
2014-12-03T17:27:31.377Z
2014-12-03T17:27:31.377Z
Lindsey D
<p>If I want to view the PHP Error logs from craft true utils/logs I get an 403 Forbidden error. </p>

<p>nginx/1.6.2</p>

<p>../admin/utils/logs/phperrors.log</p>

<p>What could be wrong?</p>

CC BY-SA 3.0
2014-12-03T23:37:23.477Z
You can view the `craft.log`, `craft.log.1`, etc. files fine? Is it an nginx 403 or a Craft one?
Brad Bell
CC BY-SA 3.0
2014-12-04T09:23:34.760Z
craft.log works. and yes it is an nginx error.
Johannes Lamers
CC BY-SA 3.0
2014-12-04T16:26:02.893Z
Sounds like some weird nginx configuration/permissions issue. Strange.
Brad Bell
<error-message>
PHP Error log in CP gives me 403 forbidden
# PHP Error log in CP gives me 403 forbidden

(Asked by: username_0 on 2014-12-03)

If I want to view the PHP Error logs from craft true utils/logs I get an 403 Forbidden error.

nginx/1.6.2

../admin/utils/logs/phperrors.log

What could be wrong?

**Tags:** error-message

> **Comments:**
> **username_1**: You can view the `craft.log`, `craft.log.1`, etc. files fine? Is it an nginx 403 or a Craft one?  
> **username_0**: craft.log works. and yes it is an nginx error.  
> **username_1**: Sounds like some weird nginx configuration/permissions issue. Strange.  

---

## 2 answers

### Answer by username_2 on 2016-03-13. Score: 4

Had the same problem. I my case, it was the following code in my nginx config file:
location ~* (?:\.(?:bak|config|sql|fla|ini|log|sh|inc|swp|dist)|~)$ {
    deny all;
}

After removing log| from the list, the problem was solved.


---

### Answer by username_3 on 2014-12-03. Score: 1

Sounds like a file permission issue. Make sure that `phperrors.log` has acceptable read permissions.

> **Comments:**
> **username_0**: Not working. Read permissions are the same as craft.log. And they work normal.   Tried other permission settings. Same error.  
> **username_4**: I also have this issue, all the files in /craft/storage/runtime/logs are: `-rw-r--r--  1 forge forge` - I can access `/admin/utils/logs` but if I select another logfile, I get the same nginx 403.  

---

