1. mampsupportmod
  2. MAMP - Troubleshooting
  3. Monday, 02 November 2020

*UPDATE* - This had to do with https://httpd.apache.org/docs/2.4/vhosts/fd-limits.html. In my scenario, the many VHOSTS I have running that are each outputting to separate log files. I don't think the ulimit of additional files is applied before apache starts and thus hangs each time on reboots. What I did was combine all access to a single file (not under VHOST areas) as outlined in that link so I can still analyze each host, and now Apache has not trouble starting up right away after booting. 

 

 

I have 63 apache hosts in MAMP Pro v6.0.1 in macOS 10.15.7. When I try starting Apache, I get "too many open files error" below. This seems to have started happening after I created 2 additional hosts in MAMP. I am familiar with increasing the macOS system max files and process limits which I have done in my user account and by creating startup plist's in macOS launchdameons folder. My current limits are <maxproc 2784 4176> <maxfiles 262144 52488>

 

[Mon Nov 02 12:55:05.016751 2020] [core:error] [pid 780] AH00100: httpd: could not log pid to file /Applications/MAMP/Library/logs/httpd.pid
[Mon Nov 02 12:55:05.017942 2020] [:notice] [pid 884] FastCGI: process manager initialized (pid 884)
[Mon Nov 02 12:55:05.018056 2020] [:crit] [pid 884] (24)Too many open files: FastCGI: can't create server "/Applications/MAMP/fcgi-bin/php7.4.9.fcgi": socket() failed
[Mon Nov 02 13:08:02.024250 2020] [:alert] [pid 781] (24)Too many open files: mod_wsgi (pid=781): Couldn't create unix domain socket.
[Mon Nov 02 13:08:02.026894 2020] [fastcgi:error] [pid 781] (24)Too many open files: FastCGI: apr_dir_open() failed
[Mon Nov 02 13:08:02.026939 2020] [fastcgi:error] [pid 781] (24)Too many open files: FastCGI: pipe() failed
[Mon Nov 02 13:08:02.029286 2020] [core:error] [pid 781] (24)Too many open files: AH00099: could not create /Applications/MAMP/Library/logs/httpd.pid
[Mon Nov 02 13:08:02.029396 2020] [core:error] [pid 781] AH00100: httpd: could not log pid to file /Applications/MAMP/Library/logs/httpd.pid
[Mon Nov 02 13:08:02.031245 2020] [:notice] [pid 889] FastCGI: process manager initialized (pid 889)
[Mon Nov 02 13:08:02.031332 2020] [:crit] [pid 889] (24)Too many open files: FastCGI: can't create server "/Applications/MAMP/fcgi-bin/php7.4.9.fcgi": socket() failed





There are no replies made for this post yet.
Be one of the first to reply to this post!