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:
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;