# FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

**URL:** <https://forum.hestiacp.com/t/fastcgi-sent-in-stderr-primary-script-unknown-while-reading-response-header-from-upstream/7124>\
**Category:** Uncategorized\
**Created:** [July 31, 2022, 1:20pm UTC](https://forum.hestiacp.com/t/fastcgi-sent-in-stderr-primary-script-unknown-while-reading-response-header-from-upstream/7124 "2022-07-31T13:20:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fakruzaruret](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/f/cab0a1/32.png) [@fakruzaruret](https://forum.hestiacp.com/u/fakruzaruret)\
**Post date:** [July 31, 2022, 1:20pm UTC](https://forum.hestiacp.com/t/fastcgi-sent-in-stderr-primary-script-unknown-while-reading-response-header-from-upstream/7124/1 "2022-07-31T13:20:39Z")

</div>

I have a problem about FastCGI. Also I cant update themes from wordpress. It gives me forbidden error. How can I solve the problem?

`2022/07/31 00:37:45 [error] 234400#234400: *25349 FastCGI sent in stderr: "PHP message: [ERROR] : WP_CACHE constant is not present in wp-config.phpPHP message: [ERROR] : WP_CACHE constant is not present in wp-config.php" while reading response header from upstream, client: xxx.xxx.xxx.xx, server: mydomain.com, request: "GET /tag/oznur/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm-mydomain.com.sock:", host: "mydomain.com"`

`2022/07/31 00:37:46 [error] 234400#234400: *25360 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 208.67.105.73, server: mydomain.com, request: "GET //1index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm-mydomain.com.sock:", host: "mydomain.com"`

Wordpress theme update error:

 ![image](https://forum.hestiacp.com/uploads/default/original/2X/6/601d8240ea8be81e21591f68712b83d70ef7d42f.png)

> I set cache duration as “2m” on hestiapanel but it shows 10minutes on fastcgi\_cache\_pool.conf file
> 
> `fastcgi_cache_path /var/cache/nginx/micro/mydomain.com levels=1:2 keys_zone=mydomain.com:10m max_size=512m inactive=30m;`

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [July 31, 2022, 7:17pm UTC](https://forum.hestiacp.com/t/fastcgi-sent-in-stderr-primary-script-unknown-while-reading-response-header-from-upstream/7124/2 "2022-07-31T19:17:59Z")

</div>

In /home/user/conf/web/domain/nginx.fastcgi\_cache.conf we set the valid time for the cache:

fastcgi\_cache\_valid 200 2m;

---

<div class="post-metadata">

**Author:** ![fakruzaruret](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/f/cab0a1/32.png) [@fakruzaruret](https://forum.hestiacp.com/u/fakruzaruret)\
**Post date:** [August 1, 2022, 1:23pm UTC](https://forum.hestiacp.com/t/fastcgi-sent-in-stderr-primary-script-unknown-while-reading-response-header-from-upstream/7124/3 "2022-08-01T13:23:19Z")

</div>

> [@fakruzaruret](#):
>
> `2022/07/31 00:37:45 [error] 234400#234400: *25349 FastCGI sent in stderr: "PHP message: [ERROR] : WP_CACHE constant is not present in wp-config.phpPHP message: [ERROR] : WP_CACHE constant is not present in wp-config.php" while reading response header from upstream, client: xxx.xxx.xxx.xx, server: mydomain.com, request: "GET /tag/oznur/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm-mydomain.com.sock:", host: "mydomain.com"`
> 
> `2022/07/31 00:37:46 [error] 234400#234400: *25360 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 208.67.105.73, server: mydomain.com, request: "GET //1index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm-mydomain.com.sock:", host: "mydomain.com"`

Ok but I could not understand why I am getting this error?

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [August 1, 2022, 1:48pm UTC](https://forum.hestiacp.com/t/fastcgi-sent-in-stderr-primary-script-unknown-while-reading-response-header-from-upstream/7124/4 "2022-08-01T13:48:54Z")

</div>

First one WP\_CACHE constant is not present in wp-config.php

Second one is a 404:

1index.php doesn’t exists
