Increase web server performance: we put nginx in front of apache
In one of the notes we described how to configure nginx + php-fpm. But nginx can be used in a slightly different way. For example, if you don't want to completely abandon apache, but you want to speed up the web server. (Perhaps you have implemented a complex redirect system that you don't want to port to nginx).
In this case, a possible solution is to use nginx only for serving static files (images, css, js, etc.). Other requests (to the php engine, for example) will still be redirected to apache (assuming you already have a site configured to work with it). To do this, configure nginx to serve static files, and proxy all other requests to apache. (In this case, you can do without php-fpm).
Installation of previous/old versions of packages in Debian
Recently, I encountered a problem installing the previous version of php on Debian. (I'm using the testing branch, php came as 5.6.x, but I needed to roll back to 5.5.x). Let's see how we can install the previous version.
Setting up nginx + php-fpm on Debian/Ubuntu
Nginx is an HTTP server. Compared to apache, it is more resilient and capable of handling a larger number of connections. It is mainly used on production servers, although it is rarely configured for local development, even though it is no more difficult than configuring apache + php.