I'm using Apache 2.4 on my server. My scripts are using a lot of
system() commands and they require to work in one process mode.
When I start apache using the command:
(which normally is debug mode, which works as single process if I'm not wrong), it works fine. However if I start Apache as system daemon it doesn't work anymore and gives some pretty bizarre results.
I commented the following line in
LoadModule mpm_event_module modules/mod_mpm_event.so
it didn't helped, then I uncommented it and gave it the following configuration in
<IfModule mpm_event_module> StartServers 1 MinSpareThreads 1 MaxSpareThreads 1 ThreadsPerChild 1 MaxRequestWorkers 1 MaxConnectionsPerChild 0 </IfModule>
But it still won't work.
/etc/httpd/modules/ directory I have also other modules related to threading and processes:
mod_mpm_event.so mod_mpm_worker.so mod_mpm_prefork.so
I read in docs that they are supposed to be precompiled in Apache, but when I call the command
apachectl -l all I get is this:
# apachectl -l Compiled in modules: core.c mod_so.c http_core.c
So, my question is the following. How to configure Apache 2.4 in order it would work in the same mode as if it was started with the command
Thanks very much.