During debugging, we often need to isolate problem first to make sure if its really PHP problem or Nginx is doing something wrong. In those cases, cgi-fcgi command might come handy. Installing cgi-fcgi of Ubuntu Just run following command: apt-get install libfcgi0ldbl Connect to PHP-FPM Directly Assuming you are running PHP-FPM using TCP/IP with IP and PORT values 127.0.0.1 and 9000 respectively,
![Directly connect to PHP-FPM](https://cdn-ak-scissors.b.st-hatena.com/image/square/4f59a103a2d79321e1928a0f61d16b0ebbd36f9b/height=288;version=1;width=512/https%3A%2F%2Frtcamp.com%2Fwp-content%2Fuploads%2Fsites%2F2%2F2020%2F10%2FFB%402x.jpg%3Ffit%3D1640%252C624%26quality%3D100%26strip%3Dall)