Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    104
    Likes Received:
    0
    Trophy Points:
    66
    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:
    830
    Likes Received:
    26
    Trophy Points:
    178
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,339
    Likes Received:
    1,851
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice