mod-event using old pre-fork directives
We have a server running apache with the event mpm. It was (at some time) using pre-fork but it seems that some of the old prefork directives are still listed causing some values to be ignored or conflict. Example, MinSpareServers and MaxSpareServers are listed in global config but as we understand it, they don't exist in the event mpm.
The currentThreadsPerChild directive listed is being completely ignored by Apache because Prefork does not use threads.
But we are using event. Tried adding event directives to the apache include file but no luck.
Editing httpd.conf is not an option either as it gets overwritten on cpanel updates.
Update. Created an apache over ride template which works well, but would appreciate a permanent solution.
-
in WHM go to Service Configuration -> Apache Configuration -> Include Editor -> Pre Virtualhost Include -> All versions
in there add (use your own values)
<IfModule mpm_event_module>
StartServers 3
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 375
ServerLimit 15
MaxConnectionsPerChild 0
</IfModule>.
0 -
Thanks for the suggestion @quietFinn , we tried the include editor first off but it gets ignored. It seems like parts of the old default cpanel apache prefork mpm are still active, probably hard coded somewhere.
0 -
It's not clear to me exactly what the issue is or what you're trying to change. Are you trying to adjust some of those values but they are being ignored?
0 -
Example, MinSpareServers and MaxSpareServers are listed in global config but as we understand it, they don't exist in the event mpm so why are they listed?
But it doesn't matter now as we have created our own template which is working great. You can close this post, thank you.
0 -
And that's your answer right there - I believe it's just because it's part of the main template, so they appear whether they are read or not.
0
Please sign in to leave a comment.
Comments
5 comments