5

nginx + php-fpm serves php statically

view full story
linux-howto

http://serverfault.com – I'm trying to setup nginx and php-fpm on Arch Linux. I've been reading through the nginx wiki and its linked guides. Static pages work great. PHP pages don't seem to get passed to php-fpm. When I view source on my test index.php, I see the actual php source. What am I doing wrong? I've read through some similar questions here, but they're a bit out of date, using spawn-fcgi, whereas I'm using php-fpm with a linux socket instead of tcp. nginx.conf worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/ (HowTos)