Hacker News new | ask | show | jobs
by ausjke 3437 days ago
Isn't nginx for static pages mostly, and it proxies load-balance/dynamic-content to other servers behind, will LEMP make development less straightforward comparing to LAMP? I'm actually using lighttpd these days due to its light-weight, and dynamic/static page support all-in-one.
1 comments

Correct, you can't run PHP inside the NGINX process like Apache can with mod_php. You have to run a PHP service listening for Fast CGI connections and configure NGINX to proxy via FastCGI to that service. The `php-fpm` package on Linux makes this easy to do.