Report this

What is the reason for this report?

Stuck in FastCGI, setting it up on Nginx

Posted on February 8, 2020

I need help setting up fastcgi on our droplet, here is our configuration for /etc/nginx/sites-enabled/nanirj.com

https://ibb.co/ZVJbfqQ https://ibb.co/jWYzQnV

when I run sudo service nginx reload, it returns ‘ok’. but when I try to test it using timestamps, its not working.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @MrStarfish,

Looking at the configuration, I would assume you’ve actually followed this tutorial - https://www.digitalocean.com/community/tutorials/how-to-setup-fastcgi-caching-with-nginx-on-your-vps .

Can you confirm you’ve followed this part as I can’t see it on the screenshots :

*Next, move the location directive that passes PHP requests to php5-fpm. Inside “location ~ .php$ { }” add the following lines.

fastcgi_cache MYAPP;
fastcgi_cache_valid 200 60m;

The “fastcgicache” directive references to the memory zone name which we specified in the “fastcgicache_path” directive and stores the cache in this area.*

Please try and configure this and see if everything will work properly then.

Regards, KDSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.