{"id":385,"date":"2017-06-03T11:30:42","date_gmt":"2017-06-03T08:30:42","guid":{"rendered":"https:\/\/galaxydata.ru\/community\/?p=385"},"modified":"2025-07-23T00:07:35","modified_gmt":"2025-07-22T21:07:35","slug":"optimizaciya-veb-serverov-prilozheniy","status":"publish","type":"post","link":"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385","title":{"rendered":"\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 nginx+php-fpm"},"content":{"rendered":"<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e\u0434 linux. \u0412\u0430\u0436\u043d\u043e\u0439 \u0446\u0435\u043b\u044c\u044e \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u043a\u0430 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a linux. \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0442\u0435\u043a\u0430 tcp\/ip. \u0424\u0430\u0439\u043b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u043f\u0443\u0442\u0438 \/etc\/sysctl.conf.<br \/>\n\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430<\/p>\n<pre class=\"lang:sh decode:true\"># Kernel sysctl configuration file for Red Hat Linux\r\n#\r\n# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and\r\n# sysctl.conf(5) for more details.\r\n\r\n# Disables packet forwarding\r\nnet.ipv4.ip_forward=0\r\n\r\n# Disables IP source routing\r\nnet.ipv4.conf.all.accept_source_route = 0\r\nnet.ipv4.conf.lo.accept_source_route = 0\r\nnet.ipv4.conf.eth0.accept_source_route = 0\r\nnet.ipv4.conf.default.accept_source_route = 0\r\n\r\n# Enable IP spoofing protection, turn on source route verification\r\nnet.ipv4.conf.all.rp_filter = 1\r\nnet.ipv4.conf.lo.rp_filter = 1\r\nnet.ipv4.conf.eth0.rp_filter = 1\r\nnet.ipv4.conf.default.rp_filter = 1\r\n\r\n# Disable ICMP Redirect Acceptance\r\nnet.ipv4.conf.all.accept_redirects = 0\r\nnet.ipv4.conf.lo.accept_redirects = 0\r\nnet.ipv4.conf.eth0.accept_redirects = 0\r\nnet.ipv4.conf.default.accept_redirects = 0\r\n\r\n# Enable Log Spoofed Packets, Source Routed Packets, Redirect Packets\r\nnet.ipv4.conf.all.log_martians = 0\r\nnet.ipv4.conf.lo.log_martians = 0\r\nnet.ipv4.conf.eth0.log_martians = 0\r\n\r\n# Disables IP source routing\r\nnet.ipv4.conf.all.accept_source_route = 0\r\nnet.ipv4.conf.lo.accept_source_route = 0\r\nnet.ipv4.conf.eth0.accept_source_route = 0\r\nnet.ipv4.conf.default.accept_source_route = 0\r\n\r\n# Enable IP spoofing protection, turn on source route verification\r\nnet.ipv4.conf.all.rp_filter = 1\r\nnet.ipv4.conf.lo.rp_filter = 1\r\nnet.ipv4.conf.eth0.rp_filter = 1\r\nnet.ipv4.conf.default.rp_filter = 1\r\n\r\n# Disable ICMP Redirect Acceptance\r\nnet.ipv4.conf.all.accept_redirects = 0\r\nnet.ipv4.conf.lo.accept_redirects = 0\r\nnet.ipv4.conf.eth0.accept_redirects = 0\r\nnet.ipv4.conf.default.accept_redirects = 0\r\n\r\n# Disables the magic-sysrq key\r\nkernel.sysrq = 0\r\n\r\n# Decrease the time default value for tcp_fin_timeout connection\r\nnet.ipv4.tcp_fin_timeout = 15\r\n\r\n# Decrease the time default value for tcp_keepalive_time connection\r\nnet.ipv4.tcp_keepalive_time = 1800\r\n\r\n# Turn off the tcp_window_scaling\r\nnet.ipv4.tcp_window_scaling = 0\r\n\r\n# Turn off the tcp_sack\r\nnet.ipv4.tcp_sack = 0\r\n\r\n# Turn off the tcp_timestamps\r\nnet.ipv4.tcp_timestamps = 0\r\n\r\n# Enable TCP SYN Cookie Protection\r\nnet.ipv4.tcp_syncookies = 1\r\n\r\n# Enable ignoring broadcasts request\r\nnet.ipv4.icmp_echo_ignore_broadcasts = 1\r\n\r\n# Enable bad error message Protection\r\nnet.ipv4.icmp_ignore_bogus_error_responses = 1\r\n\r\n# Log Spoofed Packets, Source Routed Packets, Redirect Packets\r\nnet.ipv4.conf.all.log_martians = 1\r\n\r\n# Increases the size of the socket queue (effectively, q0).\r\nnet.ipv4.tcp_max_syn_backlog = 1024\r\n\r\n# Increase the tcp-time-wait buckets pool size\r\nnet.ipv4.tcp_max_tw_buckets = 1440000\r\n\r\n<\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 upstream php-fpm (\/etc\/php-fpm.d\/*) \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0432\u044b\u0431\u043e\u0440 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u0438\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u044b. \u0414\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u043b\u0443\u0447\u0448\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439. \u0422\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 php-fpm \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0412\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0414\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435<\/p>\n<p>(&#171;\u041e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u043c\u044f\u0442\u0438&#187; &#8212; &#171;\u041f\u0430\u043c\u044f\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432&#187;)\/&#187;\u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 php-fpm&#187;<br \/>\n\u041f\u0430\u043c\u044f\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 &#8212; \u044d\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u0440\u0430\u0441\u0445\u043e\u0434\u0443\u0435\u043c\u043e\u0435 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0431\u0435\u0437 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 php-fpm (\u043f\u0430\u043c\u044f\u0442\u044c \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 nginx \u0438.\u0442.\u0434.). \u041e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 100-200\u041c\u0431.<\/p>\n<p>\u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 php-fpm &#8212; \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u043e\u0442 \u043f\u0438\u043a\u043e\u0432\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 php-fpm \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u0438 \u0445\u043e\u043b\u043e\u0441\u0442\u043e\u043c \u0445\u043e\u0434\u0435 php-fpm \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430. \u041e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 50-120 \u041c\u0411.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 2\u0413\u0431 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0440\u0430\u0432\u043d\u043e (2048\u041c &#8212; 200\u041c\u0431)\/80\u041c\u0431 = 23,1 \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u0443\u043a\u0430\u0436\u0435\u043c pm.max_children 20 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043d\u0430 \u0445\u043e\u043b\u043e\u0441\u0442\u043e\u043c \u0445\u043e\u0434\u0443. \u041b\u0443\u0447\u0448\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c 1\/4 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e pm.min_spare_servers = 5. \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u043d\u0435\u0438\u0435 &#8212; \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 2 \u0413\u0431 \u043f\u0430\u043c\u044f\u0442\u0438 \u043b\u0443\u0447\u0448\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c pm.max_spare_servers = 10. \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043b\u0443\u0447\u0448\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0440\u0430\u0432\u043d\u044b\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c pm.start_servers = 10. \u0422\u0430\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u043a\u043e\u043c\u043f\u0435\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u0434\u043e\u043b\u0433\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435, \u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e pm.min_spare_servers, pm.max_spare_servers, pm.start_servers \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0434\u043e 1\/6, 1\/10, 1\/14, 1\/20 (\u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f) \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u0435\u0440\u0435\u0434 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043b\u0443\u0447\u0448\u0435 \u0432\u044b\u044f\u0441\u043d\u044f\u0442\u044c \u043d\u0430 \u043e\u043f\u044b\u0442\u0435. \u041d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0434\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 pm.max_requests = 500<\/p>\n<p>\u041e\u0431\u0449\u0438\u0439 \u0432\u0438\u0434 \u043a\u043e\u043d\u0444\u0438\u0433\u0430<\/p>\n<pre class=\"lang:sh decode:true \">; Start a new pool named 'www'.\r\n; the variable $pool can we used in any directive and will be replaced by the\r\n; pool name ('www' here)\r\n[www0]\r\n\r\n; Per pool prefix\r\n; It only applies on the following directives:\r\n; - 'slowlog'\r\n; - 'listen' (unixsocket)\r\n; - 'chroot'\r\n; - 'chdir'\r\n; - 'php_values'\r\n; - 'php_admin_values'\r\n; When not set, the global prefix (or \/usr) applies instead.\r\n; Note: This directive can also be relative to the global prefix.\r\n; Default Value: none\r\n;prefix = \/path\/to\/pools\/$pool\r\n\r\n; The address on which to accept FastCGI requests.\r\n; Valid syntaxes are:\r\n; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on\r\n; a specific port;\r\n; 'port' - to listen on a TCP socket to all addresses on a\r\n; specific port;\r\n; '\/path\/to\/unix\/socket' - to listen on a unix socket.\r\n; Note: This value is mandatory.\r\nlisten = \/var\/run\/php-fpm.sock\r\n\r\n; Set listen(2) backlog. A value of '-1' means unlimited.\r\n; Default Value: 128 (-1 on FreeBSD and OpenBSD)\r\nlisten.backlog = 65536\r\n\r\n; List of ipv4 addresses of FastCGI clients which are allowed to connect.\r\n; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original\r\n; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address\r\n; must be separated by a comma. If this value is left blank, connections will be\r\n; accepted from any ip address.\r\n; Default Value: any\r\n;listen.allowed_clients = 127.0.0.1\r\n\r\n; Set permissions for unix socket, if one is used. In Linux, read\/write\r\n; permissions must be set in order to allow connections from a web server. Many\r\n; BSD-derived systems allow connections regardless of permissions.\r\n; Default Values: user and group are set as the running user\r\n; mode is set to 0666\r\nlisten.owner = www\r\nlisten.group = www\r\nlisten.mode = 0600\r\n\r\n; Unix user\/group of processes\r\n; Note: The user is mandatory. If the group is not set, the default user's group\r\n; will be used.\r\nuser = www\r\ngroup = www\r\n\r\n; Choose how the process manager will control the number of child processes.\r\n; Possible Values:\r\n; static - a fixed number (pm.max_children) of child processes;\r\n; dynamic - the number of child processes are set dynamically based on the\r\n; following directives:\r\n; pm.max_children - the maximum number of children that can\r\n; be alive at the same time.\r\n; pm.start_servers - the number of children created on startup.\r\n; pm.min_spare_servers - the minimum number of children in 'idle'\r\n; state (waiting to process). If the number\r\n; of 'idle' processes is less than this\r\n; number then some children will be created.\r\n; pm.max_spare_servers - the maximum number of children in 'idle'\r\n; state (waiting to process). If the number\r\n; of 'idle' processes is greater than this\r\n; number then some children will be killed.\r\n; Note: This value is mandatory.\r\npm = dynamic\r\n\r\n; The number of child processes to be created when pm is set to 'static' and the\r\n; maximum number of child processes to be created when pm is set to 'dynamic'.\r\n; This value sets the limit on the number of simultaneous requests that will be\r\n; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.\r\n; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP\r\n; CGI.\r\n; Note: Used when pm is set to either 'static' or 'dynamic'\r\n; Note: This value is mandatory.\r\npm.max_children = 20\r\n\r\n; The number of child processes created on startup.\r\n; Note: Used only when pm is set to 'dynamic'\r\n; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) \/ 2\r\npm.start_servers = 10\r\n\r\n; The desired minimum number of idle server processes.\r\n; Note: Used only when pm is set to 'dynamic'\r\n; Note: Mandatory when pm is set to 'dynamic'\r\npm.min_spare_servers = 5\r\n\r\n; The desired maximum number of idle server processes.\r\n; Note: Used only when pm is set to 'dynamic'\r\n; Note: Mandatory when pm is set to 'dynamic'\r\npm.max_spare_servers = 10\r\n\r\n; The number of requests each child process should execute before respawning.\r\n; This can be useful to work around memory leaks in 3rd party libraries. For\r\n; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.\r\n; Default Value: 0\r\npm.max_requests = 500\r\n\r\n; The URI to view the FPM status page. If this value is not set, no URI will be\r\n; recognized as a status page. By default, the status page shows the following\r\n; information:\r\n; accepted conn - the number of request accepted by the pool;\r\n; pool - the name of the pool;\r\n; process manager - static or dynamic;\r\n; idle processes - the number of idle processes;\r\n; active processes - the number of active processes;\r\n; total processes - the number of idle + active processes.\r\n; max children reached - number of times, the process limit has been reached,\r\n; when pm tries to start more children (works only for\r\n; pm 'dynamic')\r\n; The values of 'idle processes', 'active processes' and 'total processes' are\r\n; updated each second. The value of 'accepted conn' is updated in real time.\r\n; Example output:\r\n; accepted conn: 12073\r\n; pool: www\r\n; process manager: static\r\n; idle processes: 35\r\n; active processes: 65\r\n; total processes: 100\r\n; max children reached: 1\r\n; By default the status page output is formatted as text\/plain. Passing either\r\n; 'html' or 'json' as a query string will return the corresponding output\r\n; syntax. Example:\r\n; http:\/\/www.foo.bar\/status\r\n; http:\/\/www.foo.bar\/status?json\r\n; http:\/\/www.foo.bar\/status?html\r\n; Note: The value must start with a leading slash (\/). The value can be\r\n; anything, but it may not be a good idea to use the .php extension or it\r\n; may conflict with a real PHP file.\r\n; Default Value: not set\r\npm.status_path = \/fpm-status-zwei\r\n\r\n; The ping URI to call the monitoring page of FPM. If this value is not set, no\r\n; URI will be recognized as a ping page. This could be used to test from outside\r\n; that FPM is alive and responding, or to\r\n; - create a graph of FPM availability (rrd or such);\r\n; - remove a server from a group if it is not responding (load balancing);\r\n; - trigger alerts for the operating team (24\/7).\r\n; Note: The value must start with a leading slash (\/). The value can be\r\n; anything, but it may not be a good idea to use the .php extension or it\r\n; may conflict with a real PHP file.\r\n; Default Value: not set\r\nping.path = \/ping-zwei\r\n\r\n; This directive may be used to customize the response of a ping request. The\r\n; response is formatted as text\/plain with a 200 response code.\r\n; Default Value: pong\r\n;ping.response = pong\r\n\r\n; The timeout for serving a single request after which the worker process will\r\n; be killed. This option should be used when the 'max_execution_time' ini option\r\n; does not stop script execution for some reason. A value of '0' means 'off'.\r\n; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)\r\n; Default Value: 0\r\nrequest_terminate_timeout = 0\r\n\r\n; The timeout for serving a single request after which a PHP backtrace will be\r\n; dumped to the 'slowlog' file. A value of '0s' means 'off'.\r\n; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)\r\n; Default Value: 0\r\n; request_slowlog_timeout = 15s\r\n\r\n; The log file for slow requests\r\n; Default Value: not set\r\n; Note: slowlog is mandatory if request_slowlog_timeout is set\r\n; slowlog = \/var\/log\/php-fpm\/$pool.log.slow\r\n\r\n; Set open file descriptor rlimit.\r\n; Default Value: system defined value\r\nrlimit_files = 65536\r\n\r\n; Set max core size rlimit.\r\n; Possible Values: 'unlimited' or an integer greater or equal to 0\r\n; Default Value: system defined value\r\nrlimit_core = 'unlimited'\r\n\r\n; Chroot to this directory at the start. This value must be defined as an\r\n; absolute path. When this value is not set, chroot is not used.\r\n; Note: you can prefix with '$prefix' to chroot to the pool prefix or one\r\n; of its subdirectories. If the pool prefix is not set, the global prefix\r\n; will be used instead.\r\n; Note: chrooting is a great security feature and should be used whenever\r\n; possible. However, all PHP paths will be relative to the chroot\r\n; (error_log, sessions.save_path, ...).\r\n; Default Value: not set\r\n;chroot =\r\n\r\n; Chdir to this directory at the start.\r\n; Note: relative path can be used.\r\n; Default Value: current directory or \/ when chroot\r\nchdir = \/dataKM\r\n\r\n; Redirect worker stdout and stderr into main error log. If not set, stdout and\r\n; stderr will be redirected to \/dev\/null according to FastCGI specs.\r\n; Note: on highloaded environement, this can cause some delay in the page\r\n; process time (several ms).\r\n; Default Value: no\r\ncatch_workers_output = yes\r\n\r\n; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from\r\n; the current environment.\r\n; Default Value: clean env\r\n;env[HOSTNAME] = $HOSTNAME\r\n;env[PATH] = \/usr\/local\/bin:\/usr\/bin:\/bin\r\n;env[TMP] = \/tmp\r\n;env[TMPDIR] = \/tmp\r\n;env[TEMP] = \/tmp\r\n\r\nenv[ORACLE_HOME] = \/usr\/lib\/oracle\/12.1\/client64\/lib\r\nenv[LD_LIBRARY_PATH] = \/usr\/lib\/oracle\/12.1\/client64\/lib\r\n\r\n; Additional php.ini defines, specific to this pool of workers. These settings\r\n; overwrite the values previously defined in the php.ini. The directives are the\r\n; same as the PHP SAPI:\r\n; php_value\/php_flag - you can set classic ini defines which can\r\n; be overwritten from PHP call 'ini_set'.\r\n; php_admin_value\/php_admin_flag - these directives won't be overwritten by\r\n; PHP call 'ini_set'\r\n; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.\r\n\r\n; Defining 'extension' will load the corresponding shared extension from\r\n; extension_dir. Defining 'disable_functions' or 'disable_classes' will not\r\n; overwrite previously defined php.ini values, but will append the new value\r\n; instead.\r\n\r\n; Note: path INI options can be relative and will be expanded with the prefix\r\n; (pool, global or \/usr)\r\n\r\n; Default Value: nothing is defined by default except the values in php.ini and\r\n; specified at startup with the -d argument\r\n;php_admin_value[sendmail_path] = \/usr\/sbin\/sendmail -t -i -f www@my.domain.com\r\n;php_flag[display_errors] = off\r\n;php_admin_value[error_log] = \/var\/log\/fpm-php.www.log\r\n;php_admin_flag[log_errors] = on\r\n;php_admin_value[memory_limit] = 32M<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e\u0434 linux. \u0412\u0430\u0436\u043d\u043e\u0439 \u0446\u0435\u043b\u044c\u044e \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u043a\u0430 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a linux. \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0442\u0435\u043a\u0430 tcp\/ip. \u0424\u0430\u0439\u043b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u043f\u0443\u0442\u0438&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52,6,12],"tags":[44,100],"class_list":["post-385","post","type-post","status-publish","format-standard","hentry","category-application","category-linux","category-webserver","tag-nginx","tag-php-fpm"],"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>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 nginx+php-fpm - GalaxyData Community<\/title>\n<meta name=\"description\" content=\"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439: \u0442\u043e\u043d\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0432\u044f\u0437\u043a\u0438 nginx+php-fpm \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.\" \/>\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\/optimizaciya-veb-serverov-prilozheniy-385\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 nginx+php-fpm\" \/>\n<meta property=\"og:description\" content=\"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439: \u0442\u043e\u043d\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0432\u044f\u0437\u043a\u0438 nginx+php-fpm \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385\" \/>\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=\"2017-06-03T08:30:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-22T21:07:35+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=\"2 \u043c\u0438\u043d\u0443\u0442\u044b\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385#article\",\"isPartOf\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385\"},\"author\":{\"name\":\"Eduard Yamaltdinov\",\"@id\":\"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b\"},\"headline\":\"\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 nginx+php-fpm\",\"datePublished\":\"2017-06-03T08:30:42+00:00\",\"dateModified\":\"2025-07-22T21:07:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385\"},\"wordCount\":295,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#organization\"},\"keywords\":[\"nginx\",\"php-fpm\"],\"articleSection\":[\"Application\",\"Linux\",\"Web Server\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385\",\"url\":\"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385\",\"name\":\"\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 nginx+php-fpm - GalaxyData Community\",\"isPartOf\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/#website\"},\"datePublished\":\"2017-06-03T08:30:42+00:00\",\"dateModified\":\"2025-07-22T21:07:35+00:00\",\"description\":\"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439: \u0442\u043e\u043d\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0432\u044f\u0437\u043a\u0438 nginx+php-fpm \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.\",\"breadcrumb\":{\"@id\":\"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385#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\":\"\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 nginx+php-fpm\"}]},{\"@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":"\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 nginx+php-fpm - GalaxyData Community","description":"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439: \u0442\u043e\u043d\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0432\u044f\u0437\u043a\u0438 nginx+php-fpm \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.","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\/optimizaciya-veb-serverov-prilozheniy-385","og_locale":"ru_RU","og_type":"article","og_title":"\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 nginx+php-fpm","og_description":"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439: \u0442\u043e\u043d\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0432\u044f\u0437\u043a\u0438 nginx+php-fpm \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.","og_url":"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385","og_site_name":"GalaxyData Community","article_publisher":"https:\/\/vk.com\/galaxydata","article_published_time":"2017-06-03T08:30:42+00:00","article_modified_time":"2025-07-22T21:07:35+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":"2 \u043c\u0438\u043d\u0443\u0442\u044b"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385#article","isPartOf":{"@id":"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385"},"author":{"name":"Eduard Yamaltdinov","@id":"https:\/\/galaxydata.ru\/community\/#\/schema\/person\/674f493b626af18d90fe784aa69dfd7b"},"headline":"\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 nginx+php-fpm","datePublished":"2017-06-03T08:30:42+00:00","dateModified":"2025-07-22T21:07:35+00:00","mainEntityOfPage":{"@id":"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385"},"wordCount":295,"commentCount":0,"publisher":{"@id":"https:\/\/galaxydata.ru\/community\/#organization"},"keywords":["nginx","php-fpm"],"articleSection":["Application","Linux","Web Server"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385#respond"]}]},{"@type":"WebPage","@id":"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385","url":"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385","name":"\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 nginx+php-fpm - GalaxyData Community","isPartOf":{"@id":"https:\/\/galaxydata.ru\/community\/#website"},"datePublished":"2017-06-03T08:30:42+00:00","dateModified":"2025-07-22T21:07:35+00:00","description":"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439: \u0442\u043e\u043d\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0432\u044f\u0437\u043a\u0438 nginx+php-fpm \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.","breadcrumb":{"@id":"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/galaxydata.ru\/community\/optimizaciya-veb-serverov-prilozheniy-385#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":"\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 nginx+php-fpm"}]},{"@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\/385","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=385"}],"version-history":[{"count":1,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts\/385\/revisions"}],"predecessor-version":[{"id":1989,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/posts\/385\/revisions\/1989"}],"wp:attachment":[{"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/media?parent=385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/categories?post=385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/galaxydata.ru\/community\/wp-json\/wp\/v2\/tags?post=385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}