Question

Stuck in FastCGI, setting it up on Nginx

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.

Subscribe
Share

Submit an 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

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