Switching from prefork MPM to worker MPM + php-fpm on ubuntu

后端 未结 1 773
一生所求
一生所求 2021-02-03 11:27

All tutorials I found were how to fresh install worker MPM + PHP-FPM, since my wordpress blog\'s already up and running with prefork MPM, correct me if I\'m wrong in the simulat

1条回答
  •  迷失自我
    2021-02-03 12:29

    1. yes, it has to at least replace the httpd process running. you definitely want to test this on a development set up first. it's easy to have a mistake in a config file that takes a while to figure out.

    2. no changes to php, mysql. yes changes to apache httpd.conf to put in worker configurations - they are very different from prefork settings. you need to do these changes yourself in httpd.conf.

    3. no, since this is a php module, whenever php runs it works. that said, it will run one copy for each pool in php-fpm, so if you have multiple domains, you could group them into a pool to share...but be aware of security concerns if you do that.

    4. httpd -V shows "server mpm"

    good luck!

    0 讨论(0)
提交回复
热议问题