eugenesidash
@eugenesidash
WEB Developer

Как изменить лимит времени ожидания или исправить код ответа 500 в MAMP PRO 5.7?

Использую MAMP PRO 5.7 (под macOS Catalina 10.15.4), работаю с сайтами на WordPress. Часто при работе "вылетает" 500 код ответа (Internal Server Error). При этом я могу раз 5-10 перезагружать страницу и в какой-то момент она заработает и я смогу работать с ней.

Пробовал менять версии PHP с 7.2 на 5.6 или выше - на 7.4 - не помогло. Добавлял PHP такое:

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

В частности окончание этой строки - -idle-timeout 3600

В файле httpd.conf рекомендовали закомментирвовать строку MAMP_FastCgiServer_MAMP и под ней прописать следующее:
FastCgiServer /Applications/MAMP/fcgi-bin/php7.2.22.fcgi -idle-timeout 3600

Ничего не дало.

Та же проблема возникает и когда я хочу сделать импорт БД через phpMyAdmin, причем, иногда база может загрузиться, но не полностью.

Меня значения в файле /Applications/MAMP/bin/phpMyAdmin/config.inc.php с 300 на 0, но это также не дало результата:

$cfg['ExecTimeLimit'] = 0;

Вчера переустановил MAMP PRO, это не помогло. Проблема возникла давно, но только сейчас уже стало работать невозможно из-за вечного выскакивания 500 кода ответа. Это происходит практически со всеми сайтами, с которыми я работаю.

Последние строки из лог 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


Буду очень признателен за любую помощь!
  • Вопрос задан
  • 274 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы