Apache worker, which is correct syntax?
I'm seeing several posts around that some use:
and some use
which one is correct? Thanks in advance.
-
Hello :) Per the Apache documentation: [url=http://httpd.apache.org/docs/current/mod/module-dict.html]Terms Used to Describe Modules - Apache HTTP Server Source File: This quite simply lists the name of the source file which contains the code for the module. This is also the name used by the directive. Module Identifier: This is a string which identifies the module for use in the LoadModule directive when dynamically loading modules. In particular, it is the name of the external variable of type module in the source file. Thus, you should use the source module (worker.c) when using IfModule directives. That being said, I believe either of the entries you listed would technically work as intended. Thank you. 0 -
Thank you. 0 -
One last question. I added this in pre_main_global.conf: [QUOTE] ServerLimit 40 StartServers 2 MaxClients 1000 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0
Do I need to run /usr/local/cpanel/bin/apache_conf_distiller --update and /scripts/rebuildhttpdconf for the include to take effect?0 -
You do not have to run the distiller, but it's a good idea to test the changes before restarting Apache with a command such as: /usr/local/apache/bin/apachectl configtest
Thank you.0 -
[quote="cPanelMichael, post: 1633452">You do not have to run the distiller, but it's a good idea to test the changes before restarting Apache with a command such as: /usr/local/apache/bin/apachectl configtest
Thank you.
Michael, Sorry one last thing. I just somewhere that I do not need to use Was I right to use it when adding it in pre_main_global.conf? and how do I know if it actually work? Thanks that's my last question.0 -
[quote="OooLong, post: 1634222">I just somewhere that I do not need to use
Those are normal entries when configuring MPM Worker settings. You can use the "Pre Main Include" editor via "WHM Home " Service Configuration " Apache Configuration " Include Editor" if you prefer to add those values in Web Host Manager, but editing that file in the command line will do the same thing. Thanks.0
Please sign in to leave a comment.
Comments
6 comments