Questions tagged [mpm-event]
27 questions
14
votes
2 answers
switch apache from prefork to event in Ubuntu 16, get php 7 working
Apache was running slow in production. After searching for answers for some time, I finally went to #apache IRC channel and the pros had me check the apache mode with this command:
sudo apachectl -V
and were alarmed to find that Server MPM is…
S. Imp
- 506
- 1
- 3
- 17
6
votes
8 answers
(13) Permission denied on Apache CGI attempt
I have recently upgraded my Apache2 server, and am now unable to run a CGI app. My logs are showing
(13) Permission denied unable to connect to cgi deamon after multiple tries
I understand that the error message means Apache is being denied some…
user43403
- 163
- 1
- 1
- 3
3
votes
1 answer
Apache hangs on "child process X still did not exit, sending a SIGKILL"
I did update on server to php7.3-fpm to get http2 working. Setup everything needed, h2 works great, all websites is up. But like every 5 minutes server get stuck on these errors until I restart apache.
I checked all configs, tried to calculate…
Michal Černý
- 33
- 1
- 3
2
votes
0 answers
PHP7.3-FPM with Apache: Unknown script request execution timed out
I configured Apache 2.4 MPM Event with PHP7.3-FPM on a pretty busy web server as follows:
Timeout 90
ProxySet disablereuse=on timeout=90
SetHandler…
Alexey Ozerov
- 121
- 3
2
votes
0 answers
php.net discourages the use of threaded MPM in production with Apache 2
php.net discourages the use of
threaded MPM in production with Apache 2. Use the prefork MPM, which is the default MPM with Apache 2.0 and 2.2.
It doesn't mention anything about apache 2.4, I have apache 2.4, ubuntu 18.04, php 7.2
I would like to…
YesItsMe
- 181
- 1
- 5
2
votes
1 answer
Debian 8, Apache 2.4.10: Scoreboard is full, not at MaxRequestWorkers
Fresh install of Debian 8. After running my web server for a few minutes/hours, Apache2 stops working. I always get the error "Scoreboard is full, not at MaxRequestWorkers" from Apache2 error.log.
This workaround works for me, however - I do not…
Hillcow
- 121
- 1
- 5
1
vote
0 answers
Apache performance tuning for high traffic with MPM Event
I currently manage the following set of servers that serve about 700 web pages:
SERVER 1 (WEB)
Web server: Apache 2.4.29 with MPM Event
PHP 7.2.22
CPU: Intel Xeon CPU E5-2673 v4 @2.30GHz (4 cores) 16GB memory
S.O: Ubuntu Server 18.04.2 LTS
SERVER…
aRoldan
- 11
- 2
1
vote
0 answers
Server still overload after changing from prefork mpm to event mpm
On Ubuntu 14 with Apache/2.4.7. It is 6 CPU cores with 16GB RAM from Linode.com.
Even after changing to Event MPM it still is overloaded in the same way.
Till noon it was stopping temporarily then I tweaked PHP-FPM with these new values in…
user5858
- 243
- 1
- 5
- 16
1
vote
1 answer
Increasing the max execution time
Mine is Ubuntu 14 and I've enabled fpm-event with Apache.
apachectl -V | grep -i mpm shows:
Server MPM: event
It seems those pages which take more than 30 seconds to execute I'm getting this error:
Internal Server Error The server encountered…
user5858
- 243
- 1
- 5
- 16
1
vote
1 answer
apache mpm event-check current number of servers and threads
I'm using apache MPM event on my centos server with these configs:
StartServers 8
ServerLimit 32
ThreadsPerChild 256
MaxRequestWorkers 8192
MaxConnectionsPerChild 10000
MinSpareThreads 125
MaxSpareThreads 250
ThreadLimit…
Soheil
- 123
- 4
1
vote
0 answers
Which mpm setting to use to limit the number of connections on Centos 7 apache
I am googling around and finding myself going down a rabbit hole and getting nowhere.
My over all goal is to limit the number of connections that can be made at the same time to Apache on a Centos 7 server.
With the default setting:
[root@app1 ~]#…
James Connigan
- 137
- 2
- 12
1
vote
1 answer
Apache too many child process - mpm_event caught SIGTERM shutting down
My Apache with ModSecurity, mod_evasive20 enabled occasionally geting crashed:
These are glimpse of error log:
[core:warn]**: child process 24709 still did not exit, sending a SIGTERM
[core:error]**: child process 24709 still did not exit, sending a…
TheMonkeyKing
- 111
- 1
- 3
0
votes
1 answer
403 Forbidden on JS/CSS files after switching Apache to use Event MPM and php-fpm
(I see there are several existing questions about 403 errors and one or two of the rest of the parts of my configuration, but nothing that seems to match up to my exact situation that I've seen so far, and I'm unsure how to proceed as a result.)
I…
s11111
- 151
- 6
0
votes
0 answers
Increase in memory utilization after upgrading to httpd 2.4.34 from 2.4.23 for 7.2
We upgraded from httpd 2.4.23 to 2.4.32 . After upgrade, we noticed mpm module got changed from preforx to event in 2.4.23
$ /apps/httpd.2.4.23/bin/httpd -M | grep mpm
mpm_prefork_module (static
$ /apps/httpd-2.4.34/bin/httpd -M | grep…
Zama Ques
- 443
- 1
- 8
- 24
0
votes
1 answer
SetEnv in htaccess file doesn't work with PHP-FPM
I'm moving from a prefork apache setup to event mode with php-fpm. In prefork mode, I can use SetEnv directives in an htaccess file like so:
SetEnv CI_ENV testing
And that value ends up in PHP:
echo $_SERVER["CI_ENV"]; // outputs…
S. Imp
- 506
- 1
- 3
- 17