Skip to main content

Questions tagged [mpm-event]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
16 votes
2 answers
31k views

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 ...
S. Imp's user avatar
  • 585
6 votes
8 answers
17k views

(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 ...
user43403's user avatar
  • 163
4 votes
1 answer
3k views

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 <Proxy "unix:/run/php/php7.3-fpm.sock|fcgi://php-fpm"> ProxySet disablereuse=on timeout=...
Alexey Ozerov's user avatar
3 votes
1 answer
12k views

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....
Michal Černý's user avatar
2 votes
1 answer
4k views

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. ...
Hillcow's user avatar
  • 121
2 votes
0 answers
1k views

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 ...
James Connigan's user avatar
2 votes
0 answers
304 views

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 ...
YesItsMe's user avatar
  • 201
1 vote
1 answer
1k views

apache mpm event-check current number of servers and threads

I'm using apache MPM event on my centos server with these configs: <IfModule event.c> StartServers 8 ServerLimit 32 ThreadsPerChild 256 MaxRequestWorkers 8192 MaxConnectionsPerChild 10000 ...
Soheil's user avatar
  • 123
1 vote
1 answer
13k views

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]**:...
TheMonkeyKing's user avatar
1 vote
1 answer
2k views

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 ...
user5858's user avatar
  • 283
1 vote
1 answer
175 views

Apache mpm event not working as expected with SSL/HTTPS

I have a server with Apache/2.4.6 (CentOS) + OpenSSL/1.0.2k-fips (I know this is an old version of Apache but it cannot be upgraded right now). mpm event is used for multi processing. When serving ...
tigrou's user avatar
  • 111
1 vote
0 answers
1k views

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) ...
aRoldan's user avatar
  • 11
1 vote
0 answers
384 views

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 ...
user5858's user avatar
  • 283
1 vote
1 answer
3k views

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: ...
S. Imp's user avatar
  • 585
0 votes
1 answer
934 views

Module mpm_prefork is enabled - cannot proceed due to conflicts. It needs to be disabled first

We've configured a Dockerfile containing the following code snippet: ############################################# #### Image containing compiled libraries #### ####################################...
IT-Girl's user avatar
  • 143
0 votes
1 answer
1k views

Apache mpm event-increasing StartServers has no effect on memory

I'm using apache mpm event on centos server with the following configs: <IfModule event.c> StartServers 8 ServerLimit 64 ThreadsPerChild 256 MaxRequestWorkers 16384 MaxConnectionsPerChild 10000 ...
Soheil's user avatar
  • 123
0 votes
1 answer
1k views

Accessing default MPM prefork values in Ubuntu(debian based architecture) vs CentOS (Red Hat Enterprise Linux)

I was trying to list the MPM prefork default configuration values in apache web server. In ubuntu, apache web server, I could access the values inside /etc/apache2/mods-available/mpm_prefork.conf file....
know_a_guy_hu_knows_anothr_guy's user avatar
0 votes
1 answer
1k views

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,...
s11111's user avatar
  • 151
0 votes
0 answers
68 views

Apache crashes causing 504s

I have a Centos 7 server on which I installed apache 2.4.58, it has been crashing for 2 days after a short time that it is online, I keep stopping the apache service (systemctl stop httpd.service) and ...
Matteo Cigognini's user avatar
0 votes
0 answers
10 views

How to log each virtual machine resource usage cpu time, mem etc

Running Apache with mpm_event on a shared linux server with about 5 websites (VMs) I would like to log each VM's usage of the memory, cpu time and bandwidth for each 24hr period and have it email to ...
SolaceBeforeDawn's user avatar
0 votes
1 answer
699 views

Apache Server 2.4.57 / Increasing the maximum number of conections/requests accepted & Check the number of concurrent process

We are using the following configuration and as far as I know this configuration can execute 8000 requests/processes concurrent. Apache Server Version: 2.4.57, Server MPM: event <IfModule ...
rndm_acct1's user avatar
0 votes
0 answers
196 views

501 Not Implemented error when making request to localhost

I'm using apache mpm event and php-fpm on my CentOS 8 server. I need to be able to make http requests from my server to a php api on my server, so the url of the api would be something like: http://...
Soheil's user avatar
  • 123
0 votes
1 answer
944 views

Why does apache work only with mpm-prefork?

I have 2 websites of wordpress on LAMP (Linux, Apache2, MariaDB and PHP-FPM). If I disable mpm-prefork and enable either mpm-worker or mpm-event, apache shows only a blank page (I have a few wordpress ...
sebelk's user avatar
  • 702
0 votes
1 answer
348 views

Why Apache2 total threadcount is more than MaxRequestWorkers

I recently moved my mpm from perfork to event (& also mod_php (php7.0) to php-fpm (proxy_fgi)) I estimated my max concurrent connection load to be around 300. So i set the following configuration ...
dgarg's user avatar
  • 101
0 votes
0 answers
369 views

apache-calculating ServerLimit based on buff/cache, available memory? or both?

I have been reading many articles to understand how to configure apache server for a high traffic website. the article here tries to calculate Thrashing point-where swapping occurs-and then calculates ...
user589154's user avatar
0 votes
1 answer
478 views

Does MaxClients determine the number of active users in a site

Keeping all factors constant , assuming my apache server is configured as below , in event mpm <IfModule mpm_prefork_module> StartServers 2 MinSpareServers 2 MaxSpareServers 5 MaxClients 200 # ...
salimsaid's user avatar
  • 101
0 votes
0 answers
1k views

Apache2 can't handle 200 concurrent requests with 8GB Ram and 4 core cpu

I am load testing a worpress site with loader.io , i am sending 100 concurrent requests per second, running the test in exactly 1 minute. The test fails considerably after 20 seconds or so, nothing ...
salimsaid's user avatar
  • 101
0 votes
0 answers
348 views

Apache won’t run some PHP scripts

I am very new to this php-fpm thing, but I decided I need to get into it. I recently migrated to Centos 8, and with it to Apache 2.4. I have a number of virtual hosts using PHP which worked well until ...
Manngo's user avatar
  • 115
0 votes
1 answer
215 views

What do these sporadic floods of 301 GET log entries every mean?

I have a new CentOS7 web server running virtualmin. It hosts a new WordPress site that just went into production. Starting mid-day today, on the quarter hour, to the second, I am troubleshooting ...
Rocky's user avatar
  • 101
0 votes
0 answers
63 views

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 (...
Zama Ques's user avatar
  • 523
-1 votes
2 answers
4k views

How to make apache and php use more memory?

I am working on one server having 16GB of RAM. It runs on Apache with php-fpm. The site hosted on this server is taking about 10 seconds to load. First I thought that it's a resources issue, but when ...
Adarsh Sojitra's user avatar