E
E
Eugene Sidash2020-04-16 16:40:07
Apache HTTP Server
Eugene Sidash, 2020-04-16 16:40:07

How to change timeout limit or fix 500 response code in MAMP PRO 5.7?

I use MAMP PRO 5.7 (under macOS Catalina 10.15.4), I work with sites on WordPress. Often, when working, a 500 response code (Internal Server Error) crashes. At the same time, I can reload the page 5-10 times and at some point it will work and I will be able to work with it.

Tried changing PHP versions from 7.2 to 5.6 or higher - to 7.4 - didn't help. Added PHP like this:

exec /Applications/MAMP/bin/php/php7.2.22/bin/php-cgi -c "/Library/Application Support/appsolute/MAMP PRO/conf/php7.2.22.ini" -idle-timeout 3600

In particular, the end of this line - -idle-timeout 3600

In the httpd.conf file, it was recommended to comment out the line MAMP_FastCgiServer_MAMPand write the following under it:
FastCgiServer /Applications/MAMP/fcgi-bin/php7.2.22.fcgi -idle-timeout 3600

Nothing.

The same problem occurs when I want to import the database through phpMyAdmin, and sometimes the database can be loaded, but not completely.

Changed the values ​​in the /Applications/MAMP/bin/phpMyAdmin/config.inc.php file from 300 to 0, but this also did not work:

$cfg['ExecTimeLimit'] = 0;

Yesterday I reinstalled MAMP PRO, it did not help. The problem arose a long time ago, but only now it has become impossible to work due to the eternal popping up of the 500 response code. This happens to almost every site I work with.

The last lines from the apache_error.log:

[Wed Apr 15 23:26:07 2020] [notice] caught SIGTERM, shutting down
[Wed Apr 15 23:26:11 2020] [notice] Digest: generating secret for digest authentication ...
[Wed Apr 15 23:26:11 2020] [notice] Digest: done
[Wed Apr 15 23:26:11 2020] [notice] FastCGI: process manager initialized (pid 9049)
[Wed Apr 15 23:26:11 2020] [notice] Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_perl/2.0.11 Perl/v5.24.0 configured -- resuming normal operations
[Wed Apr 15 23:26:17 2020] [error] [client ::1] File does not exist: /Library/Application Support/appsolute/MAMP PRO/phpMyAdmin/import.
[Wed Apr 15 23:27:10 2020] [error] [client ::1] FastCGI: comm with server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi" aborted: idle timeout (30 sec)
[Wed Apr 15 23:27:10 2020] [error] [client ::1] FastCGI: incomplete headers (0 bytes) received from server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi"
[Wed Apr 15 23:30:21 2020] [notice] caught SIGTERM, shutting down
[Wed Apr 15 23:30:28 2020] [notice] Digest: generating secret for digest authentication ...
[Wed Apr 15 23:30:28 2020] [notice] Digest: done
[Wed Apr 15 23:30:28 2020] [notice] FastCGI: process manager initialized (pid 9837)
[Wed Apr 15 23:30:28 2020] [notice] Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_perl/2.0.11 Perl/v5.24.0 configured -- resuming normal operations
[Wed Apr 15 23:31:25 2020] [error] [client ::1] FastCGI: comm with server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi" aborted: idle timeout (30 sec)
[Wed Apr 15 23:31:25 2020] [error] [client ::1] FastCGI: incomplete headers (0 bytes) received from server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi"
[Wed Apr 15 23:38:11 2020] [notice] caught SIGTERM, shutting down
[Wed Apr 15 23:38:16 2020] [notice] Digest: generating secret for digest authentication ...
[Wed Apr 15 23:38:16 2020] [notice] Digest: done
[Wed Apr 15 23:38:16 2020] [notice] FastCGI: process manager initialized (pid 23230)
[Wed Apr 15 23:38:17 2020] [notice] Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_perl/2.0.11 Perl/v5.24.0 configured -- resuming normal operations
[Wed Apr 15 23:39:25 2020] [error] [client ::1] FastCGI: comm with server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi" aborted: idle timeout (30 sec)
[Wed Apr 15 23:39:25 2020] [error] [client ::1] FastCGI: incomplete headers (0 bytes) received from server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi"
[Wed Apr 15 23:40:26 2020] [error] [client ::1] FastCGI: comm with server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi" aborted: idle timeout (30 sec)
[Wed Apr 15 23:40:26 2020] [error] [client ::1] FastCGI: incomplete headers (0 bytes) received from server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi"
[Wed Apr 15 23:41:03 2020] [error] [client ::1] FastCGI: comm with server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi" aborted: idle timeout (30 sec)
[Wed Apr 15 23:41:03 2020] [error] [client ::1] FastCGI: incomplete headers (0 bytes) received from server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi"
[Wed Apr 15 23:41:40 2020] [error] [client ::1] FastCGI: comm with server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi" aborted: idle timeout (30 sec)
[Wed Apr 15 23:41:40 2020] [error] [client ::1] FastCGI: incomplete headers (0 bytes) received from server "/Applications/MAMP/fcgi-bin/php7.2.22.fcgi"
[Thu Apr 16 14:11:19 2020] [notice] Graceful restart requested, doing restart
[Thu Apr 16 14:11:21 2020] [notice] FastCGI: process manager initialized (pid 36545)
[Thu Apr 16 14:11:22 2020] [notice] Digest: generating secret for digest authentication ...
[Thu Apr 16 14:11:22 2020] [notice] Digest: done
[Thu Apr 16 14:11:22 2020] [notice] Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_perl/2.0.11 Perl/v5.24.0 configured -- resuming normal operations


I would really appreciate any help!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question