P
P
psyloss2011-10-02 09:32:15
PHP
psyloss, 2011-10-02 09:32:15

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

4 answer(s)
A
admin4eg, 2011-10-02
@admin4eg

Maybe my draft will help.
www.admin4eg.ru/2010/pereezzhaem-na-php5fpm/

R
Roman Gogolev, 2011-10-02
@romka777

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)

S
Sergey Savostin, 2011-10-02
@savostin

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.

S
Sergey Fedotov, 2011-10-02
@FSA

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 question

Ask a Question

731 491 924 answers to any question