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
Please sign in to leave a comment.
Comments
2 comments