Skip to content
Advertisement

Tag: osx-elcapitan

Php file gets downloaded instead of executing on OSX with Nginx server

Hi I have followed https://www.sylvaindurand.org/setting-up-a-nginx-web-server-on-macos/ to install nginx and php. I am using OSX El-capitan, php-fpm and nginx versions are nginx 1.12.1 and php7 My server is working as I am able to open html file stored at document root in browser but when I try to open php file stored at same location it gets downloaded instead of executing

Advertisement