MPM Prefork vs Worker

Discussion in 'Apache' started by qwikad.com, Oct 11, 2017.

  1. #1
    The support suggested that I switch to MPM Worker to speed up the site. Which I did but, if anything, it made it run slower. I switched back to MPM Prefork.

    Any particular reason why people believe that MPM Worker should be faster when I see the opposite?
     
    qwikad.com, Oct 11, 2017 IP
  2. billzo

    billzo Well-Known Member

    Messages:
    961
    Likes Received:
    278
    Best Answers:
    15
    Trophy Points:
    113
    #2
    It depends on what your complete setup is, including Apache and PHP versions, PHP setup, memory, CPU cores, etc. Switching to a different MPM means a completely different configuration setup.
     
    billzo, Oct 11, 2017 IP
  3. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,263
    Likes Received:
    1,693
    Best Answers:
    31
    Trophy Points:
    475
    #3
    As of now everything seems to work nice (fast). But if I do decided to rebuild it back to MPM Worker (or Event) what other things should I tweak to make it work like it should? I usually go with the latest everything (PHP, Apache, etc.).
     
    qwikad.com, Oct 16, 2017 IP
  4. billzo

    billzo Well-Known Member

    Messages:
    961
    Likes Received:
    278
    Best Answers:
    15
    Trophy Points:
    113
    #4
    Just make sure you pay attention to whether or not your PHP is built to be thread-safe or not.
     
    billzo, Oct 20, 2017 IP