{"id":665,"date":"2018-01-18T15:55:05","date_gmt":"2018-01-18T12:55:05","guid":{"rendered":"https:\/\/galaxydata.ru\/community\/?p=665"},"modified":"2025-07-22T23:40:15","modified_gmt":"2025-07-22T20:40:15","slug":"pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim","status":"publish","type":"post","link":"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665","title":{"rendered":"\u041f\u043e\u0431\u0435\u0436\u0434\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid\/php-cgi \u0430\u043a\u0430 suexec HTTP 500 \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, mod_fcgid: error reading data from FastCGI server"},"content":{"rendered":"<div class=\"entry-content text-justify\">\n<div class=\"visible-phone visible-tablet visible-desktop\" style=\"text-align: inherit;\">\n<div class=\"clear oh\">\u00a0\u0421\u0430\u043c\u044b\u043c\u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 mod_fcgid \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f &#171;Premature end of script headers&#187;, &#171;can&#8217;t lock process table in pid&#187;, &#171;can&#8217;t apply process slot&#187;, &#171;couldn&#8217;t bind unix domain socket&#187;, &#171;exit(communication error), get unexpected signal 11&#8243;&#8230;<\/div>\n<\/div>\n<p>\u041f\u0440\u0438\u0447\u0438\u043d\u044b \u044d\u0442\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435, \u043e\u0442 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0430\u0432 \u043d\u0430 \u0444\u0430\u0439\u043b\u044b \u0434\u043e \u043d\u0435\u043f\u043e\u043b\u043d\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u043d\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0444\u0430\u0439\u043b\u0430 ASCII\/\u0414\u0432\u043e\u0438\u0447\u043d\u044b\u0439. \u0418\u043d\u043e\u0433\u0434\u0430 \u0431\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u0441\u0442\u0440\u043e\u043a Windows \u0444\u043e\u0440\u043c\u0430\u0442\u0430, \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <kbd>col -bx &lt;input_file&gt; output_file<\/kbd> (<em>\u0441\u043a\u043e\u0431\u043a\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b!<\/em>) \u0438\u043b\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 notepad++ &#171;<samp>\u041a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u044f \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u043e\u043a\u0438<\/samp>&#171;.<\/p>\n<p>\u041d\u043e \u043a\u043e\u0433\u0434\u0430 mod_fcgid \u0432 \u0446\u0435\u043b\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u0430 &#171;<samp>Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: &#8230;<\/samp>&#187; \u0438 &#171;<samp>Premature end of script headers: php-fcgi-wrapper, referer: &#8230;<\/samp>&#187; \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 error_log, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c php_errors.log \u0438 \/var\/log\/httpd\/suexec.log \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0442\u043e \u043a\u043e\u043f\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0433\u043b\u0443\u0431\u0436\u0435 &#8212; \/var\/log\/messages \u0438\u043b\u0438 \/var\/log\/kernel.log.<\/p>\n<h2 id=\"Connection_reset_by_peer:_mod_fcgid:_error_reading_data_from_FastCGI_server\" >Chapter 1. Connection reset by peer: mod_fcgid: error reading data from FastCGI server<\/h2>\n<div class=\"geshi\">\n<pre class=\"lang:sh decode:true text\">[Fri Dec 16 04:30:14.424452 2016] [fcgid:warn] [pid 26593] (104)Connection reset by peer: [client 127.0.0.1:42657] mod_fcgid: error reading data from FastCGI server, referer: http:\/\/example.com\/install\/index.php?restart=true\r\n[Fri Dec 16 04:30:14.424564 2016] [core:error] [pid 26593] [client 127.0.0.1:42657] End of script output before headers: index.php, referer: http:\/\/example.com\/install\/index.php?restart=true<\/pre>\n<\/div>\n<p>\u0415\u0441\u043b\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 <var>FcgidProcessLifeTime<\/var>, <var>FcgidIOTimeout<\/var>, <var>FcgidIdleTimeout<\/var>, <var>FcgidBusyTimeout<\/var>, \u043d\u0435 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u0442\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0430 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043b\u0438 PHP \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0442\u0438\u043f\u0430 APC. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 opcache \u0432 PHP 7 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 PrestaShop 1.7 \u043e\u0431\u043b\u0430\u043c\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 &#171;<samp>Connection reset by peer: mod_fcgid: error reading data from FastCGI server<\/samp>&#171;, \u0432 <span class=\"tt\">php.ini<\/span> \u0431\u044b\u043b\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0434\u043b\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0439\u0442\u043a\u043e\u0434\u0430 &#171;<code>opcache.file_cache=\/var\/www\/.tmp<\/code>&#171;, \u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a &#171;<code>;opcache.file_cache=\/var\/www\/.tmp<\/code>&#187; \u0431\u044b\u043b\u0430 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 &#8212; \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0438\u0441\u0447\u0435\u0437\u043b\u0430.<\/p>\n<h2 id=\"Premature_end_of_script_headers:_php-fcgi-wrapper\" >Chapter 2. Premature end of script headers: php-fcgi-wrapper<\/h2>\n<h3 id=\"\u041f\u0440\u0438\u0447\u0438\u043d\u0430_\u21161_&#8212;_\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435_&#171;\u0447\u043c\u043e\u0434\u044b&#187;\" >Section 1. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u21161 &#8212; \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 &#171;\u0447\u043c\u043e\u0434\u044b&#187;<\/h3>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u043e\u0439, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0430 \u043f\u0440\u0430\u0432\/\u043f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u0439 \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 FastCGI \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0420\u041d\u0420 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435.<\/p>\n<p>\u041f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u044e\u0437\u0435\u0440\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043b\u0435\u0436\u0430\u0442 \u0444\u0430\u0439\u043b\u044b \u0441\u0430\u0439\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c 0755 \u0438 \u043d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435, \u0430 \u0438\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0435\u0442 &#171;\u0444\u043e\u0440\u0431\u0430\u0439\u0434\u0435\u043d&#187; (\u041d\u0422\u0422\u0420 403: <a title=\"\" href=\"\/go.php?url=aHR0cHM6Ly93aWtpLmFwYWNoZS5vcmcvaHR0cGQvMTNQZXJtaXNzaW9uRGVuaWVk\" target=\"_blank\" rel=\"nofollow noopener\" data-original-title=\"13PermissionDenied - Httpd Wiki\">13PermissionDenied &#8212; Httpd Wiki<\/a>), \u043d\u0430 \u0444\u0430\u0439\u043b \u0436\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 (\u043e\u043d\u0436\u0435 FcgidWrapper) CGI \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 &#171;\u0447\u043c\u043e\u0434\u044b&#187; (chmod) \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c 750.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u043e, \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b&#8230;<\/p>\n<h3 id=\"\u041f\u0440\u0438\u0447\u0438\u043d\u0430_\u21162_&#8212;_\u043d\u0430\u0445\u0432\u0430\u0442\u043a\u0430_\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445_\u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432\" >Section 2. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u21162 &#8212; \u043d\u0430\u0445\u0432\u0430\u0442\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/h3>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0435\u0440\u0432\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0432 error_log &#171;<samp>Fri Mar 08 13:42:10 2013<\/samp>&#171;:<\/p>\n<div class=\"geshi\">\n<pre class=\"lang:sh decode:true text\">[Fri Mar 08 13:42:10 2013] [warn] [client 81.83.\u0445\u0445.\u0445\u0445\u0445] (104)Connection reset by \r\npeer: mod_fcgid: error reading data from FastCGI server, referer: ...\r\n[Fri Mar 08 13:42:10 2013] [error] [client 81.83.\u0445\u0445.\u0445\u0445\u0445] Premature end of script \r\nheaders: php-fcgi-wrapper, referer: ...<\/pre>\n<\/div>\n<p>\u0422\u043e\u0433\u0434\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c <span class=\"tt\">\/var\/log\/messages<\/span> \u0438\u043b\u0438 <span class=\"tt\">\/var\/log\/kernel<\/span>, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0432\u0448\u0438\u0435 \u0432 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e\u0435 \u0432\u044b\u0448\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u0436\u0435 \u0442\u0430\u043c \u0442\u0432\u043e\u0440\u0438\u043b\u043e\u0441\u044c \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 <strong>\u043e\u0448\u0438\u0431\u043a\u0438 php-cgi<\/strong>: http:\/\/pastebin.com\/Gz5ccSNV<\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c <strong>OOM Killer<\/strong> (<em>oom-killer<\/em>) \u043d\u0430\u0447\u0430\u043b \u043f\u0440\u0438\u0431\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0443\u0436\u0435 \u043a\u043e\u0433\u0434\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c. OOM Killer \u2014 \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f &#171;<a title=\"\" href=\"\/go.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9PdXRfb2ZfbWVtb3J5\" target=\"_blank\" rel=\"nofollow noopener\" data-original-title=\"Out of memory\">Out of memory<\/a> Killer&#187; \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u044f\u0434\u0440\u0430 Linux.<\/p>\n<p>\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 (<em>swap<\/em>) \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u043c\u0435\u0440\u044f\u043d\u043e, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 HDD, \u0430 \u0432\u043e\u0442 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 (<em>RAM-\u044b<\/em>) \u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u0435\u0451 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e. \u0411\u044b\u0432\u0430\u044e\u0442 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043a\u043e\u0433\u0434\u0430 &#171;\u0447\u0438\u043b\u0434\u044b&#187; (<em>\u0444\u043e\u0440\u043a\u0438<\/em>) \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u0435\u0434\u0430\u044e\u0442 \u0435\u0435 \u0432\u0441\u044e (<em>swap + RAM<\/em>), \u0438 \u0442\u0443\u0442 OOM Killer \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u043a\u0440\u043e\u043c\u0435 kernel init \u0438 threads, \u0442\u0430\u043a\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e \u0435\u0433\u043e (<em>oom-killer<\/em>) \u043c\u043d\u0435\u043d\u0438\u044e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u0443\u0449\u0435\u0440\u0431\u043d\u044b\u043c (<em>badness<\/em>) \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0435\u0433\u043e \u0443\u0431\u0438\u0432\u0430\u0442\u044c.<\/p>\n<p>\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u044b\u0448\u0435 \u043a\u0430\u043a \u0440\u0430\u0437 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 &#171;<samp>Free swap = 0kB<\/samp>&#187; \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 (<em>\u0438\u0445 \u0447\u0438\u043b\u0434\u0430\u043c\u0438\/\u0444\u043e\u0440\u043a\u0430\u043c\u0438 httpd-\u043e\u043b\u0438\u0433\u0430\u0440\u0445\u043e\u0432<\/em>) httpd \u0438 php-cgi \u0441\u044a\u0435\u0434\u0435\u043d\u0430 \u0432\u0441\u044f \u043f\u0430\u043c\u044f\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0444\u0430\u0439\u043b \u043f\u043e\u0434\u043a\u0430\u0447\u043a\u0438, &#171;<samp>Swap is 100% used<\/samp>&#187; \u0438 &#171;<samp>Memory is 99% used<\/samp>&#187; &#8212; \u043e\u0431\u044b\u0447\u043d\u043e \u0432 \u0442\u0430\u043a\u0438\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 \u043d\u0438\u0440\u0432\u0430\u043d\u0443 \u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c\/\u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<p>\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u043e\u0435\u0434\u0430\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e \u0447\u0438\u043b\u0434\u043e\u0432 (<em>CHILDREN<\/em>) \u0430\u043f\u0430\u0447\u0430 \u0438 PHP, \u0435\u0441\u043b\u0438 PHP_FCGI_CHILDREN \u0431\u043e\u043b\u044c\u0448\u0435 2. \u041f\u043e\u043d\u0438\u0437\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 PHP_FCGI_CHILDREN, \u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f PHP \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0442\u0438\u043f\u0430 APC \u0438 \u0442.\u0434. <strong>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c PHP_FCGI_CHILDREN = 0<\/strong> \u0438\u0431\u043e \u043a\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 &#171;<samp>Special PHP considerations<\/samp>&#187; \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u043d\u0430 mod_fcgid, \u0447\u0442\u043e<cite>PHP \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440 APC \u043d\u0435 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0440\u0430\u0441\u0448\u0430\u0440\u0438\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u044d\u0448 \u0434\u043b\u044f PHP \u043c\u043e\u0434\u0443\u043b\u044f mod_fcgid \u0435\u0441\u043b\u0438 mod_fcgid\/PHP \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438!<\/cite> \u041f\u0440\u043e \u0438\u043d\u044b\u0435 \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u043d\u043e, \u043d\u043e \u0432\u0441\u0451 \u0436\u0435 \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043b\u044e\u0431\u044b\u0435 \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440\u044b, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0441\u043e\u0432\u0435\u0441\u0442\u0438 httpd \u0434\u0435\u043c\u043e\u043d\u0430.<\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0431\u043e\u0440\u043e\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 &#171;<strong>Connection reset by peer: mod_fcgid: error reading data from FastCGI server<\/strong>&#187; \u0438 &#171;<strong>Premature end of script headers: php-fcgi-wrapper<\/strong>&#187; &#8212; \u044d\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0432\u044b\u0441\u043e\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 PHP_FCGI_MAX_REQUESTS, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0440\u0430\u0432\u043d\u043e = 500. \u0412\u043c\u0435\u0441\u0442\u0435 \u0441 \u044d\u0442\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443 FcgidMaxRequestsPerProcess, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c &lt;= PHP_FCGI_MAX_REQUESTS &#8212; \u0442.\u0435. <strong>\u0435\u0441\u043b\u0438 PHP_FCGI_MAX_REQUESTS = 1000, \u0442\u043e \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 FcgidMaxRequestsPerProcess \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c = 1000 \u0438\u043b\u0438 \u043c\u0435\u043d\u044c\u0448\u0435<\/strong>, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u0432 php-cgi \u043d\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0442.\u0435. FcgidMaxRequestsPerProcess = 0.<\/p>\n<p>\u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0420\u041d\u0420 \u043b\u0438\u043c\u0438\u0442\u0430 \u0432 php.ini, \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430\u0445 &#171;<samp>max_execution_time = 180<\/samp>&#171;, &#171;<samp>max_input_time = 120<\/samp>&#187; \u0438 &#171;<samp>default_socket_timeout = 180<\/samp>&#171;, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 &#171;<samp>FcgidIOTimeout 300<\/samp>&#187; \u0438 &#171;<samp>FcgidBusyTimeout 500<\/samp>&#187; \u0432 <kbd>vi \/etc\/httpd\/conf\/httpd.conf<\/kbd> \u0438\u043b\u0438 \u0436\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430 &#8212; \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u044b\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c.<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u043e\u0440 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 (<em>OVERCOMMIT_GUESS (0), OVERCOMMIT_ALWAYS (1), OVERCOMMIT_NEVER (2)<\/em>) \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u043e\u0442 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <kbd>sysctl -w vm.overcommit_memory=0<\/kbd> \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0436\u0435 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0435\u0442 \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0435\u0451 \u043f\u043e\u043b\u043d\u043e\u0439 \u0443\u0442\u0435\u0447\u043a\u0438, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u0439 \u0432\u044b\u0448\u0435 OOM Killer (<em>oom-killer<\/em>) \u0443\u0436\u0435 \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443\u0448\u043b\u0430 \u0432 \u043d\u0438\u0440\u0432\u0430\u043d\u0443 &#171;Free swap = 0kB&#187;, &#171;Swap is 100% used&#187; \u0438 &#171;Memory is 99% used&#187;.<\/p>\n<p>vm.overcommit_memory=1 \u043f\u043e\u0447\u0442\u0438 \u0442\u043e\u0436\u0435 \u0447\u0442\u043e \u0438 = 0, \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0436\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0435 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0438\u0434, \u0447\u0442\u043e \u0435\u0451 \u0432\u0441\u0435\u0433\u0434\u0430 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0435\u0451 \u043f\u043e\u043b\u043d\u043e\u0439 \u0443\u0442\u0435\u0447\u043a\u0438. vm.overcommit_memory=2 \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442 \u0432\u044b\u0434\u0435\u043b\u044f\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0447\u0435\u043c \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 \u043f\u043e\u0434\u043a\u0430\u0447\u043a\u0438 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043d\u043e\u043c \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 <a title=\"\" href=\"\/go.php?url=aHR0cHM6Ly93d3cua2VybmVsLm9yZy9kb2MvRG9jdW1lbnRhdGlvbi9zeXNjdGwvdm0udHh0\" target=\"_blank\" rel=\"nofollow noopener\" data-original-title=\"vm.overcommit_ratio\">vm.overcommit_ratio<\/a>=?. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0440\u0443\u0431\u0438\u0442\u044c \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0438\u0441\u043a \u0443\u0449\u0435\u0440\u0431\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0434\u043b\u044f \u0443\u0431\u0438\u0432\u0430\u043d\u0438\u044f, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e vm.oom_kill_allocating_task=0 (<em>OOM Killer<\/em>) \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0432\u0435\u0441\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u0434\u0430\u0447 \u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043b\u044f \u0443\u0431\u0438\u0432\u0430\u043d\u0438\u044f, \u0447\u0442\u043e \u043e\u0442\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u044b\u0448\u0435 0 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u0434\u0430\u0447 \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 &#171;OOM Killer-\u0443&#187; \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0432\u0448\u0438\u0439 \u0431\u043e\u043b\u044c\u0448\u0435 \u0420\u0410\u041c-\u044b \u0447\u0435\u043c \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438.<\/p>\n<pre class=\"lang:sh decode:true  \">sysctl -w vm.overcommit_memory=2\r\nsysctl -w vm.overcommit_ratio=90\r\nsysctl -w vm.oom_kill_allocating_task=1<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0414\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043d\u0430 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \/etc\/sysctl.conf. \u0415\u0449\u0451 \u043a\u0430\u043a \u0432\u0430\u0440\u0438\u0430\u043d\u0442 <strong>\u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \u043f\u043e\u0434\u043a\u0430\u0447\u043a\u0438<\/strong>, \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0432\u043e\u043d\u044e\u0447\u0438\u0439:)<\/p>\n<pre class=\"lang:sh decode:true \">dd if=\/dev\/zero of=\/root\/swap1 bs=1024 count=1024K\r\n1048576+0 records in\r\n1048576+0 records out\r\n1073741824 bytes (1.1 GB) copied, 8.61173 s, 125 MB\/s\r\n\u00a0\r\nmkswap \/root\/swap1\r\nSetting up swapspace version 1, size = 1048572 KiB\r\nno label, UUID=ba18ffde-b25b-4844-9da4-6fd095c9182f\r\n\u00a0\r\nswapon \/root\/swap1\r\n\u00a0\r\nvi \/etc\/fstab\r\n\/root\/swap1 swap swap defaults 0 0<\/pre>\n<p>&nbsp;<\/p>\n<h2 id=\"mod_fcgid:_can&#8217;t_lock_process_table_in_pid\" >Chapter 3. mod_fcgid: can&#8217;t lock process table in pid<\/h2>\n<p>\u042d\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 &#171;<strong>mod_fcgid: can&#8217;t lock process table in pid<\/strong>&#187; (<em>mod_fcgid: \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0432 pid<\/em>) \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0442\u044c \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 &#171;<kbd>apachectl graceful<\/kbd>&#187; &#8212; \u0442.\u0435. \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a \u0431\u0435\u0437 \u0440\u0430\u0437\u0440\u044b\u0432\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439, \u0430 \u0435\u0451 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\/\u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<h2 id=\"mod_fcgid:_can&#8217;t_apply_process_slot\" >Chapter 4. mod_fcgid: can&#8217;t apply process slot<\/h2>\n<p>&#171;mod_fcgid: can&#8217;t apply process slot&#187; &#8212; mod_fcgid \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u043b\u043e\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430&#8230;<\/p>\n<h3 id=\"\u041f\u0440\u0438\u0447\u0438\u043d\u0430_\u21161_&#8212;_\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b_\u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438\" >Section 1. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u21161 &#8212; \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/h3>\n<p>\u0412 \u043b\u043e\u0433 \u0444\u0430\u0439\u043b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 &#171;<samp>[warn] [client 78.159.53.233] mod_fcgid: can&#8217;t apply process slot for \/var\/www\/user\/php\/php-cgi-wrapper, referer: https:\/\/www.google.com.ua\/<\/samp>&#171;, \u0430 \u0432 \u043b\u043e\u0433 \u0444\u0430\u0439\u043b \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 &#171;<samp>[crit] (22)Invalid argument: ap_queue_pop failed<\/samp>&#171;.<\/p>\n<p>\u041e\u0448\u0438\u0431\u043a\u043e\u0439 &#171;<strong>Invalid argument: ap_queue_pop failed<\/strong>&#187; \u0432 \u043b\u043e\u0433 \u0444\u0430\u0439\u043b \/var\/log\/httpd\/error_log \u043d\u0430\u0433\u0430\u0434\u0438\u043b\u043e \u043c\u0435\u0433\u043e\u0432 \u043d\u0430 300 \u0441 \u043b\u0438\u0448\u043d\u0438\u043c \u0437\u0430 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435 \u043c\u0438\u043d\u0443\u0442\u044b. \u042d\u0442\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0435 \u043f\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f &#171;<samp>[alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread<\/samp>&#187; \u0438 &#171;<samp>[notice] child pid 2839 exit signal Segmentation fault (11) Error in my_thread_global_end(): 1 threads didn&#8217;t exit<\/samp>&#171;.<\/p>\n<p>\u041d\u0430 <a title=\"\" href=\"\/go.php?url=aHR0cDovL3d3dy0wMS5pYm0uY29tL3N1cHBvcnQvZG9jdmlldy53c3M%2FdWlkPXN3ZzIxNjE2NTky\" target=\"_blank\" rel=\"nofollow noopener\" data-original-title=\"IBM HTTP Server reports ap_queue_info_set_idle failed errors\"> ibm.com<\/a> \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 &#171;<kbd>sysctl -w kernel.threads-max=120000<\/kbd>&#187; (<em>\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e 3525 \u0432 CentOS 6 \u0438 7877 \u0432 CentOS 5<\/em>) \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c &#171;stack size&#187; \u0441 10240 \u043a\u0431 \u0434\u043e &#171;<kbd>ulimit -s 256<\/kbd>&#171;.<\/p>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430 &#171;thread&#187; \u0440\u0430\u0432\u0435\u043d \u0440\u0430\u0437\u043c\u0435\u0440\u0443 &#171;stack size&#187;, \u0430 \u0435\u0441\u043b\u0438 Apache \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043a\u0430\u043a Worker\u0438 \u0437\u0430\u0432\u044b\u0448\u0435\u043d\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f MaxClients, MinSpareThreads, MaxSpareThreads \u0438 ThreadsPerChild, \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c &#171;<samp>[alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread Error in my_thread_global_end(): 1 threads didn&#8217;t exit<\/samp>&#187;<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c <strong>kernel.threads-max<\/strong>, \u043d\u043e &#171;stack size&#187; \u043b\u0443\u0447\u0448\u0435 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u0430 \u0438\u043d\u0430\u0447\u0435 \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u0441\u0430\u0439\u0442\u0430 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443 &#171;<samp>exit(communication error), get unexpected signal 11<\/samp>&#171;! \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044f \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0430\u0431\u0437\u0430\u0446, &#171;stack size&#187; \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0443\u0440\u0435\u0437\u0430\u0442\u044c \u0432 3-5 \u0440\u0430\u0437\u0430 \u0438\u043b\u0438 \u0436\u0435 \u0443\u0440\u0435\u0437\u0430\u0442\u044c ThreadsPerChild \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c &#171;<samp>Resource temporarily unavailable: apr_thread_create: unable to create worker thread<\/samp>&#171;.<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f &#171;stack size&#187; \u043d\u0430 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u043e\u0441\u043d\u043e\u0432\u0435 \u043c\u043e\u0436\u043d\u043e \u0432 \u043a\u043e\u043d\u0444. \u0444\u0430\u0439\u043b\u0435 \/etc\/security\/limits.conf:<\/p>\n<div class=\"geshi\">\n<pre class=\"text\" style=\"font-family: monospace;\">....\r\n\u00a0\r\n*               soft    stack            2048\r\napache               hard    stack            5120\r\n\u00a0\r\n# End of file<\/pre>\n<\/div>\n<p>\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u044b\u0448\u0435 \u043c\u044f\u0433\u043a\u0438\u0439 \u043b\u0438\u043c\u0438\u0442 \u043d\u0430 &#171;stack size&#187; \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 2 \u041c\u0411, \u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f apache \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d \u0436\u0435\u0441\u0442\u043a\u0438\u043c \u043b\u0438\u043c\u0438\u0442\u043e\u043c \u0432 5 \u041c\u0411. \u041f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043b\u0438\u043c\u0438\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e &#171;<kbd>ulimit -s 256<\/kbd>&#187; \u043d\u0443\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u0441\u043d\u043e\u0432\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 &#171;<kbd>service httpd stop &amp;&amp; service httpd start<\/kbd>&#171;, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0432 \u0441\u0438\u043b\u0443, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \/etc\/security\/limits.conf \u0432\u0441\u0442\u0443\u043f\u044f\u0442 \u0432 \u0441\u0438\u043b\u0443 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u041e\u0421!<\/p>\n<h3 id=\"\u041f\u0440\u0438\u0447\u0438\u043d\u0430_\u21162_&#8212;_\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430_\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\" >Section 2. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u21162 &#8212; \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/h3>\n<p>&#8230;&#187;mod_fcgid: can&#8217;t apply process slot&#187; \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043d\u043e \u0438 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c\u0438 \u0442\u0430\u043a\u0438\u043c\u0438, \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0433\u043e mod_fcgid. \u0420\u044f\u0434\u043e\u043c \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 &#171;mod_fcgid: can&#8217;t apply process slot&#187; \u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442 \u0438 &#171;apache https 503&#187; (\u0430\u043a\u0430 &#171;Service Unavailable&#187;).<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u043f\u043e\u0433\u043e\u0434\u0443 \u0434\u0435\u043b\u0430\u044e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<ul>\n<li>FcgidMaxProcesses &#8212; \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0447\u0438\u0441\u043b\u043e php-cgi \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e;<\/li>\n<li>FcgidMaxProcessesPerClass &#8212; \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0447\u0438\u0441\u043b\u043e php-cgi \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430.<\/li>\n<\/ul>\n<p>PerClass-\u043e\u043c \u0432 \u0410\u043f\u0430\u0447\u0435, \u0438\u043c\u0445\u043e &#8230; \u043a\u0430\u043a \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0445\u043e\u0441\u0442 \u0438 \u0432\u0441\u0435 \u0435\u0433\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0445\u043e\u0441\u0442\u044b. \u0417\u043d\u0430\u0447\u0438\u0442, \u0435\u0441\u043b\u0438 <span class=\"tt\">FcgidMaxProcessesPerClass 2<\/span>, \u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u043e\u0432 \u0443 \u043d\u0430\u0441 15 + 1 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0445\u043e\u0441\u0442, \u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c 32 php-cgi \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430, \u043d\u043e \u0435\u0441\u043b\u0438 <span class=\"tt\">FcgidMaxProcesses<\/span> (<em>1000 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/em>) \u0431\u0443\u0434\u0435\u0442 \u043d\u0438\u0436\u0435 32, \u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u0432 \u043b\u043e\u0433 \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c &#171;mod_fcgid: can&#8217;t apply process slot&#187;, \u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 &#171;503 Service Unavailable&#187;.<\/p>\n<p>\u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 (\u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438) \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00a0<span class=\"tt\">FcgidMaxProcessesPerClass<\/span> \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 3-5.<\/p>\n<h2 id=\"exit(communication_error),_get_unexpected_signal_11\" >Chapter 5. exit(communication error), get unexpected signal 11<\/h2>\n<p>\u042d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f &#171;stack size&#187;:<\/p>\n<div class=\"geshi\">\n<pre class=\"text\" style=\"font-family: monospace;\">less \/var\/log\/httpd\/error_log\r\n\u00a0\r\n[Sun Nov 03 00:40:30 2013] [error] mod_fcgid: process \/var\/www\/wrs\/php\/php-cgi-w\r\nrapper(2558) exit(communication error), get unexpected signal 11\r\n\u00a0\r\n[Sun Nov 03 00:40:30 2013] [warn] [client xxx.xxx.xxx.xxx] (104)Connection reset by\r\n peer: mod_fcgid: error reading data from FastCGI server, referer: http:\/\/example.\r\n com\r\n[Sun Nov 03 00:40:30 2013] [error] [client xxx.xxx.xxx.xxx] Premature end of script\r\n headers: index.php, referer: http:\/\/example.com\/\r\n\u00a0\r\n\u00a0\r\nless \/var\/log\/messages\r\n\u00a0\r\nNov  3 00:56:21 samp kernel: php-cgi[2666]: segfault at 7fffe9034f30 ip\r\n00000000004740c3 sp 00007fffe9034ef0 error 6 in php-cgi[400000+341000]<\/pre>\n<\/div>\n<p><strong>Premature end of script headers \/ exit(communication error), get unexpected signal 11<\/strong> \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0442\u044c \u0438\u0437-\u0437\u0430 PHP \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0442\u0438\u043f\u0430 APC, \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0441\u043b\u0438 PHP \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 &#171;\u041a\u0430\u043a \u043c\u043e\u0434\u0443\u043b\u044c APACHE&#187;.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0445, \u043e\u0431\u044b\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443, \u0433\u0434\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0440\u0430\u0441\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e Geshi \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u043c. \u0427\u0430\u0441\u0442\u043e \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0426\u041f \u0438 \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u0432 \u0432\u0441\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043b\u0438\u043c\u0438\u0442\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442 <strong>segfault<\/strong>.<\/p>\n<h2 id=\"user_mismatch_(daemon_instead_of_www)\" >Chapter 6. user mismatch (daemon instead of www)<\/h2>\n<p>\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<div class=\"geshi\">\n<pre class=\"text\" style=\"font-family: monospace;\">\/home\/user\/logs\/error_log\r\n[Mon Dec 16 12:36:19.011343 2013] [fcgid:warn] [pid 17033:tid 2183892224] [clien\r\nt 178.94.242.15:54550] mod_fcgid: error reading data, FastCGI server closed conn\r\nection\r\n[Mon Dec 16 12:36:19.016230 2013] [core:error] [pid 17033:tid 2183892224] [clien\r\nt 178.94.242.15:54550] End of script output before headers: writetest.php\r\n\u00a0\r\n---\r\n\u00a0\r\nlogs\/error_log\r\nsuexec policy violation: see suexec log for more details\r\n\u00a0\r\n---\r\n\u00a0\r\nlogs\/suexec_log\r\n[2013-12-16 12:36:19]: user mismatch (daemon instead of www)<\/pre>\n<\/div>\n<p>\u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u044b\u0437\u0432\u0430\u043d\u0430 \u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u043c \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435 AP_HTTPD_USER, \u0438\u043c\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 &#171;<kbd>suexec -V<\/kbd>&#171;, \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432 <span class=\"tt\">\/var\/www\/conf\/httpd.conf<\/span>.<\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 AP_HTTPD_USER \u0434\u043b\u044f suexec = www, \u0430 \u0438\u043c\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0432 httpd.conf = daemon. \u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 <span class=\"tt\">\/var\/www\/conf\/httpd.conf<\/span>, \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430\u0445 User \u0438 Group \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f www \u0432\u043c\u0435\u0441\u0442\u043e daemon.<\/p>\n<h2 id=\"mod_fcgid:_couldn&#8217;t_bind_unix_domain_socket_\/var\/www\/logs\/fcgidsock\/29944.19\" >Chapter 7. mod_fcgid: couldn&#8217;t bind unix domain socket \/var\/www\/logs\/fcgidsock\/29944.19<\/h2>\n<p>\u0421\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<div class=\"geshi\">\n<pre class=\"text\" style=\"font-family: monospace;\">[Mon Dec 16 12:40:29.310746 2013] [fcgid:warn] [pid 29944:tid 665836768] (13)Per\r\nmission denied: mod_fcgid: spawn process \/home\/user\/php\/php-cgi-wrapper error\r\n[Mon Dec 16 12:40:30.344063 2013] [fcgid:error] [pid 29944:tid 665836768] (13)Pe\r\nrmission denied: mod_fcgid: couldn't bind unix domain socket \/var\/www\/logs\/fcgid\r\nsock\/29944.19<\/pre>\n<\/div>\n<p>\u0420\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0441\u043c\u0435\u043d\u043e\u0439 \u043f\u0440\u0430\u0432 \u043d\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 &#171;<kbd>chmod 777 \/var\/www\/logs\/fcgidsock\/<\/kbd>&#187; \u0438\u043b\u0438 \u0436\u0435 \u0441\u043c\u0435\u043d\u043e\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u043e\u0439 <a title=\"\" href=\"\/go.php?url=aHR0cHM6Ly9odHRwZC5hcGFjaGUub3JnL21vZF9mY2dpZC9tb2QvbW9kX2ZjZ2lkLmh0bWwjZmNnaWRpcGNkaXI%3D\" target=\"_blank\" rel=\"nofollow noopener\" data-original-title=\"FcgidIPCDir\"> FcgidIPCDir<\/a><\/p>\n<p>&#8230;<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u043a\u0430\u043a\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0434\u0440\u0443\u0433\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0430\u043c mod_fcgid, \u0442\u043e \u043f\u0438\u0448\u0435\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438&#8230;<\/p>\n<h2 id=\"\u0421\u0441\u044b\u043b\u044c_\u043f\u043e_\u0442\u0435\u043c\u0435:\" >Chapter 8. \u0421\u0441\u044b\u043b\u044c \u043f\u043e \u0442\u0435\u043c\u0435:<\/h2>\n<ul>\n<li><a title=\"\" href=\"\/go.php?url=aHR0cDovL2h0dHBkLmFwYWNoZS5vcmcvbW9kX2ZjZ2lkL21vZC9tb2RfZmNnaWQuaHRtbA%3D%3D\" target=\"_blank\" rel=\"nofollow noopener\" data-original-title=\"Postfix Address Rewriting\"> mod_fcgid &#8212; Apache HTTP Server<\/a><\/li>\n<li><a title=\"\" href=\"\/go.php?url=aHR0cHM6Ly93d3cua2VybmVsLm9yZy9kb2MvRG9jdW1lbnRhdGlvbi9zeXNjdGwvdm0udHh0\" target=\"_blank\" rel=\"nofollow noopener\" data-original-title=\"Documentation for \/proc\/sys\/vm\/*\">Documentation for \/proc\/sys\/vm\/*<\/a><\/li>\n<\/ul>\n<p class=\"vcard author\"><span class=\"fn\">\u0410\u0432\u0442\u043e\u0440: \u041e\u043b\u0435\u0433 \u0413\u043e\u043b\u043e\u0432\u0441\u043a\u0438\u0439<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0\u0421\u0430\u043c\u044b\u043c\u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 mod_fcgid \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f &#171;Premature end of script headers&#187;, &#171;can&#8217;t lock process table in pid&#187;, &#171;can&#8217;t apply process slot&#187;, &#171;couldn&#8217;t bind unix domain socket&#187;, &#171;exit(communication error), get unexpected signal&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,12],"tags":[],"class_list":["post-665","post","type-post","status-publish","format-standard","hentry","category-linux","category-webserver"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.4 (Yoast SEO v25.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u041f\u043e\u0431\u0435\u0436\u0434\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid\/php-cgi \u0430\u043a\u0430 suexec HTTP 500 \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, mod_fcgid: error reading data from FastCGI server - GalaxyData Community<\/title>\n<meta name=\"description\" content=\"\u0421\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0441 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 mod_fcgid \u0438 php-cgi: \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 HTTP 500 \u0438 \u00abmod_fcgid: error reading data from FastCGI server\u00bb. \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0448\u0430\u0433\u0438 \u0434\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u041f\u043e\u0431\u0435\u0436\u0434\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid\/php-cgi \u0430\u043a\u0430 suexec HTTP 500 \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, mod_fcgid: error reading data from FastCGI server\" \/>\n<meta property=\"og:description\" content=\"\u0421\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0441 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 mod_fcgid \u0438 php-cgi: \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 HTTP 500 \u0438 \u00abmod_fcgid: error reading data from FastCGI server\u00bb. \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0448\u0430\u0433\u0438 \u0434\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665\" \/>\n<meta property=\"og:site_name\" content=\"GalaxyData Community\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/vk.com\/galaxydata\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-18T12:55:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-22T20:40:15+00:00\" \/>\n<meta name=\"author\" content=\"Eduard Yamaltdinov\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eduard Yamaltdinov\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 \u043c\u0438\u043d\u0443\u0442\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665#article\",\"isPartOf\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665\"},\"author\":{\"name\":\"Eduard Yamaltdinov\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b\"},\"headline\":\"\u041f\u043e\u0431\u0435\u0436\u0434\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid\/php-cgi \u0430\u043a\u0430 suexec HTTP 500 \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, mod_fcgid: error reading data from FastCGI server\",\"datePublished\":\"2018-01-18T12:55:05+00:00\",\"dateModified\":\"2025-07-22T20:40:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665\"},\"wordCount\":1680,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#organization\"},\"articleSection\":[\"Linux\",\"Web Server\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665\",\"url\":\"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665\",\"name\":\"\u041f\u043e\u0431\u0435\u0436\u0434\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid\/php-cgi \u0430\u043a\u0430 suexec HTTP 500 \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, mod_fcgid: error reading data from FastCGI server - GalaxyData Community\",\"isPartOf\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#website\"},\"datePublished\":\"2018-01-18T12:55:05+00:00\",\"dateModified\":\"2025-07-22T20:40:15+00:00\",\"description\":\"\u0421\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0441 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 mod_fcgid \u0438 php-cgi: \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 HTTP 500 \u0438 \u00abmod_fcgid: error reading data from FastCGI server\u00bb. \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0448\u0430\u0433\u0438 \u0434\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.\",\"breadcrumb\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/galaxydata.ru\/community\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u041f\u043e\u0431\u0435\u0436\u0434\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid\/php-cgi \u0430\u043a\u0430 suexec HTTP 500 \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, mod_fcgid: error reading data from FastCGI server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#website\",\"url\":\"https:\/\/galaxydata.ru\/community\/\",\"name\":\"GalaxyData Community\",\"description\":\"Tutorial for Cloud VDS\",\"publisher\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/galaxydata.ru\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#organization\",\"name\":\"GalaxyData Community\",\"url\":\"https:\/\/galaxydata.ru\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2026\/04\/cropped-galaxydata-site-v3.2.png\",\"contentUrl\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2026\/04\/cropped-galaxydata-site-v3.2.png\",\"width\":257,\"height\":44,\"caption\":\"GalaxyData Community\"},\"image\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/vk.com\/galaxydata\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b\",\"name\":\"Eduard Yamaltdinov\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png\",\"contentUrl\":\"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png\",\"caption\":\"Eduard Yamaltdinov\"},\"description\":\"Eduard Yamaltdinov \u2014 \u0430\u0432\u0442\u043e\u0440 \u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0445, \u043e\u043f\u044b\u0442\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435, \u043a\u0430\u043a\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c.\",\"url\":\"https:\/\/galaxydata.ru\/community\/author\/galaxydata\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u041f\u043e\u0431\u0435\u0436\u0434\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid\/php-cgi \u0430\u043a\u0430 suexec HTTP 500 \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, mod_fcgid: error reading data from FastCGI server - GalaxyData Community","description":"\u0421\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0441 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 mod_fcgid \u0438 php-cgi: \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 HTTP 500 \u0438 \u00abmod_fcgid: error reading data from FastCGI server\u00bb. \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0448\u0430\u0433\u0438 \u0434\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665","og_locale":"ru_RU","og_type":"article","og_title":"\u041f\u043e\u0431\u0435\u0436\u0434\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid\/php-cgi \u0430\u043a\u0430 suexec HTTP 500 \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, mod_fcgid: error reading data from FastCGI server","og_description":"\u0421\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0441 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 mod_fcgid \u0438 php-cgi: \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 HTTP 500 \u0438 \u00abmod_fcgid: error reading data from FastCGI server\u00bb. \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0448\u0430\u0433\u0438 \u0434\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.","og_url":"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665","og_site_name":"GalaxyData Community","article_publisher":"https:\/\/vk.com\/galaxydata","article_published_time":"2018-01-18T12:55:05+00:00","article_modified_time":"2025-07-22T20:40:15+00:00","author":"Eduard Yamaltdinov","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"Eduard Yamaltdinov","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"9 \u043c\u0438\u043d\u0443\u0442"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665#article","isPartOf":{"@id":"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665"},"author":{"name":"Eduard Yamaltdinov","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b"},"headline":"\u041f\u043e\u0431\u0435\u0436\u0434\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid\/php-cgi \u0430\u043a\u0430 suexec HTTP 500 \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, mod_fcgid: error reading data from FastCGI server","datePublished":"2018-01-18T12:55:05+00:00","dateModified":"2025-07-22T20:40:15+00:00","mainEntityOfPage":{"@id":"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665"},"wordCount":1680,"commentCount":0,"publisher":{"@id":"https:\/\/galaxydata.ru\/community\/#organization"},"articleSection":["Linux","Web Server"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665#respond"]}]},{"@type":"WebPage","@id":"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665","url":"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665","name":"\u041f\u043e\u0431\u0435\u0436\u0434\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid\/php-cgi \u0430\u043a\u0430 suexec HTTP 500 \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, mod_fcgid: error reading data from FastCGI server - GalaxyData Community","isPartOf":{"@id":"https:\/\/galaxydata.ru\/community\/#website"},"datePublished":"2018-01-18T12:55:05+00:00","dateModified":"2025-07-22T20:40:15+00:00","description":"\u0421\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0441 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 mod_fcgid \u0438 php-cgi: \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 HTTP 500 \u0438 \u00abmod_fcgid: error reading data from FastCGI server\u00bb. \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0448\u0430\u0433\u0438 \u0434\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.","breadcrumb":{"@id":"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/galaxydata.ru\/community\/pobezhdaem-oshibki-mod_fcgid-php-cgi-aka-suexec-http-500-i-izhe-s-nim-665#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/galaxydata.ru\/community"},{"@type":"ListItem","position":2,"name":"\u041f\u043e\u0431\u0435\u0436\u0434\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 mod_fcgid\/php-cgi \u0430\u043a\u0430 suexec HTTP 500 \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, mod_fcgid: error reading data from FastCGI server"}]},{"@type":"WebSite","@id":"https:\/\/galaxydata.ru\/community\/#website","url":"https:\/\/galaxydata.ru\/community\/","name":"GalaxyData Community","description":"Tutorial for Cloud VDS","publisher":{"@id":"https:\/\/galaxydata.ru\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/galaxydata.ru\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Organization","@id":"https:\/\/galaxydata.ru\/community\/#organization","name":"GalaxyData Community","url":"https:\/\/galaxydata.ru\/community\/","logo":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/","url":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2026\/04\/cropped-galaxydata-site-v3.2.png","contentUrl":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2026\/04\/cropped-galaxydata-site-v3.2.png","width":257,"height":44,"caption":"GalaxyData Community"},"image":{"@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/vk.com\/galaxydata"]},{"@type":"Person","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b","name":"Eduard Yamaltdinov","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/image\/","url":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png","contentUrl":"https:\/\/galaxydata.ru\/community\/wp-content\/uploads\/2016\/10\/cloud-server-150x150.png","caption":"Eduard Yamaltdinov"},"description":"Eduard Yamaltdinov \u2014 \u0430\u0432\u0442\u043e\u0440 \u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0445, \u043e\u043f\u044b\u0442\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435, \u043a\u0430\u043a\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c.","url":"https:\/\/galaxydata.ru\/community\/author\/galaxydata"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts\/665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/comments?post=665"}],"version-history":[{"count":1,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts\/665\/revisions"}],"predecessor-version":[{"id":1939,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts\/665\/revisions\/1939"}],"wp:attachment":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/media?parent=665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/categories?post=665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/tags?post=665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}