The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to switch from prefork to worker apache?

Discussion in 'Workarounds and Optimization' started by OooLong, Apr 21, 2014.

  1. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    The guide say to Check /etc/sysconfig/httpd. And uncomment the line

    HTTPD=/usr/sbin/httpd.worker

    I don't seem to have this file in /etc/sysconfig

    Do I just make one up? Thanks in advance.
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Re-run EasyApache (/scripts/easyapache or WHM -> Apache Update) and select MPM Worker in the list of Apache modules. I would not recommend modifying the init file on a cPanel server.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, please use the instructions from Vanessa in the previous post. Manually modifying files is not supported nor is it recommended due to the built-in functionality to change the MPM via EasyApache.

    Thank you.
     

Share This Page