DEV Community

Discussion on: How to setup Nginx and PHP7.1 with FPM on Mac OS X without crying

Collapse
 
chiefoleka profile image
Valentine

Hi Sher,

I apologise for getting to this late. This usually happens when PHP is not properly configured. Nginx isn't passing the PHP script to FPM or FPM is not processing it at all (probably not set up properly), so it is sending the file because it does not know what to do.

Also, be sure your PHP installation is not using the .sock file but is processing via port 9000. Look at /etc/php/{PHP_VERSION}/fpm/pool.d/www.conf and be sure what it is listening to sock file: prnt.sc/s2dr4p or port 9000: prnt.sc/s2dvdv. It may also be in /etc/php/{PHP_VERSION}/php-fpm.d/www.conf depending on your installation. Just find it.

Let me know if you have found a solution for it.