Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Any advice on how to get PHP working after upgrading from Ubuntu default 1.1.19 to the latest from the http://nginx.org/en/linux_packages.html repo?

No errors thrown anywhere, but php5-fpm is dead in the water... Rolling back until I can find anything on how to fix this.



Try replacing /etc/nginx/fastcgi_params with the one from http://wiki.nginx.org/PHPFcgiExample

Also, the packaging is done differently by ubuntu and nginx upstream, so I don't think you can just replace it. They are also bundled with different modules. For example, I have to use the package from ubuntu because the one from nginx upstream lacks the geoip module.


Following up - this fixed it! (Took a while to get a virtualbox set up with my old config and simulate the upgrade a few times to make sure everything was the same)

Thanks, eh!


I'll try that when I get home - thanks!


From memory the Debianish distro packages read the configs from different locations than the mainline nginx packages.


What's wrong with PHP? I wasn't aware that any more recent Nginx version broke it.


Nothing wrong with PHP itself, but the stock/newer nginx must read configs differently, and so it's not a simple "remove old nginx, install new nginx" upgrade, as it no longer served up php when I upgraded...


I don't think Nginx has ever changed its config format. Care to share the problem description?




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: