Answer the question
In order to leave comments, you need to log in
How to switch from apache to php_fpm?
Debian6 64bit server, ISPManager panel. A dozen sites are running on the server, almost all of them are on symfony. All sites use php+mysql+apache. I would like to get rid of apache in favor of php_fpm. How to do it? What to foresee? What are the possible negative consequences?
Answer the question
In order to leave comments, you need to log in
Maybe my draft will help.
www.admin4eg.ru/2010/pereezzhaem-na-php5fpm/
1. Install nginx on port 81 and configure request proxying to Apache (according to the nginx manual).
2. Check carefully that everything works. Especially rewrites.
3. Change ports: apache 81, enginx 80, do not forget in the proxy settings.
4. Next, transfer the necessary hosts to php-fpm (this is also in the nginx manual)
For me personally there were only 2 problems:
1. Rewrite mod_rewirte rules. There is some strange concept of regexp in nginx. Moreover, when rewriting, you have to distort the server every time, because. no more .htaccess If I'm not mistaken, ISPmanager was completely disabled due to the fact that it was not possible to run it purely under nginx. Switched to webmin, it's really harder.
2. Some of my sites use SSI. In nginx, it is severely curtailed (nested ifs, for example, are not supported). Here, unfortunately, it was easier to leave them on Apache (or rather, html, and pictures, js and css gives nginx) until I rewrite the site.
I have a bunch of lighttpd + php_fpm spinning. Everything suits me. Is that inconvenience due to unsupported .htaccess. Treated by lighttpd configuration.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question