{"id":70780,"date":"2026-10-22T00:17:20","date_gmt":"2026-10-21T21:17:20","guid":{"rendered":"https:\/\/trueconf.ru/blog\/?p=70780"},"modified":"2026-10-22T00:54:10","modified_gmt":"2026-10-21T21:54:10","slug":"patch-bezopasnosti-dlya-php-sluzhby-v-sostave-trueconf-server","status":"publish","type":"post","link":"https:\/\/trueconf.ru/blog\/news\/patch-bezopasnosti-dlya-php-sluzhby-v-sostave-trueconf-server","title":{"rendered":"\u041f\u0430\u0442\u0447 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f PHP \u0441\u043b\u0443\u0436\u0431\u044b \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 TrueConf Server"},"content":{"rendered":"<p>\u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/www.php.net\/archive\/2026.php#2026-10-21-5\" target=\"_blank\" rel=\"noopener\">\u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/a> \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 PHP, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0435\u0431-\u0441\u043b\u0443\u0436\u0431\u043e\u0439 TrueConf Server (\u043b\u044e\u0431\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u0434\u043e 5.5.7 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e), <span style=\"text-decoration: underline;\"><strong>\u043c\u044b \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0430\u0442\u0447<\/strong><\/span> \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u041f\u041a \u0438\u043b\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0433\u0434\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b \u0441\u043b\u0443\u0436\u0431\u044b TrueConf Web Manager \u0434\u043b\u044f \u041e\u0421 Windows \u0438\u043b\u0438 trueconf-php \u0434\u043b\u044f Linux.<\/p>\n<p>\u0412\u044b\u0445\u043e\u0434 \u043e\u0431\u043d\u043e\u0432\u043b\u0451\u043d\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 5.5, 5.4 \u0438 5.3 \u0434\u043b\u044f TrueConf Server \u0441 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 PHP \u0431\u0443\u0434\u0435\u0442 \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f.<\/p>\n<h3><b>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u041e\u0421 Windows Server<\/b><\/h3>\n<p>1. \u0417\u0430\u0434\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 <code>C:\\Program Files\\TrueConf Server\\php\\php.ini<\/code> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>memory_limit=-1<\/code><\/p>\n<p>2. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b <code>C:\\Program Files\\TrueConf Server\\php\\php.ini<\/code> \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 <code>[Session]<\/code>:<\/p>\n<pre class=\"lang:default decode: true\">session.upload_progress.enabled = 0<\/pre>\n<p>3. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b <code>C:\\Program Files\\TrueConf Server\\httpconf\\opt\\rewrite.conf<\/code> \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 (\u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c):<\/p>\n<pre class=\"lang:default decode: true\">RewriteEngine On\r\nRewriteCond %{REQUEST_METHOD} ^(POST|PUT|PATCH)$ [NC]\r\nRewriteCond %{HTTP:Content-Type} ^multipart\/form-data [NC]\r\nRewriteRule ^ - [F]<\/pre>\n<p>4. \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre class=\"lang:default decode: true\">net stop TrueConfWebManager\r\nnet start TrueConfWebManager<\/pre>\n<h3><b>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u041e\u0421 Linux<\/b><\/h3>\n<p>1. \u0417\u0430\u0434\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 <code>\/opt\/trueconf\/server\/etc\/php\/php.ini<\/code> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>memory_limit=-1<\/code><\/p>\n<p>2. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b <code>\/opt\/trueconf\/server\/etc\/php\/php.ini<\/code> \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 <code>[Session]<\/code>:<\/p>\n<pre class=\"lang:default decode: true\">session.upload_progress.enabled = 0<\/pre>\n<p>3. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b <code>\/opt\/trueconf\/server\/etc\/backend\/opt\/rewrite.conf<\/code> \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 (\u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c):<\/p>\n<pre class=\"lang:default decode: true\">RewriteEngine On\r\nRewriteCond %{REQUEST_METHOD} ^(POST|PUT|PATCH)$ [NC]\r\nRewriteCond %{HTTP:Content-Type} ^multipart\/form-data [NC]\r\nRewriteRule ^ - [F]<\/pre>\n<p>4. \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre class=\"lang:default decode: true\">sudo systemctl set-property trueconf-php MemoryMax=4G\r\nsudo systemctl restart trueconf-php<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 PHP, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0435\u0431-\u0441\u043b\u0443\u0436\u0431\u043e\u0439 TrueConf Server (\u043b\u044e\u0431\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u0434\u043e 5.5.7 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e), \u043c\u044b \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0430\u0442\u0447 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u041f\u041a \u0438\u043b\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0433\u0434\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b \u0441\u043b\u0443\u0436\u0431\u044b TrueConf Web Manager \u0434\u043b\u044f \u041e\u0421 Windows \u0438\u043b\u0438 trueconf-php \u0434\u043b\u044f Linux. \u0412\u044b\u0445\u043e\u0434 \u043e\u0431\u043d\u043e\u0432\u043b\u0451\u043d\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 5.5, 5.4 \u0438 5.3 \u0434\u043b\u044f TrueConf Server \u0441 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[51],"tags":[651],"class_list":["post-70780","post","type-post","status-publish","format-standard","hentry","category-news","tag-php","wpautop"],"_links":{"self":[{"href":"https:\/\/trueconf.ru/blog\/wp-json\/wp\/v2\/posts\/70780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trueconf.ru/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trueconf.ru/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trueconf.ru/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/trueconf.ru/blog\/wp-json\/wp\/v2\/comments?post=70780"}],"version-history":[{"count":13,"href":"https:\/\/trueconf.ru/blog\/wp-json\/wp\/v2\/posts\/70780\/revisions"}],"predecessor-version":[{"id":70795,"href":"https:\/\/trueconf.ru/blog\/wp-json\/wp\/v2\/posts\/70780\/revisions\/70795"}],"wp:attachment":[{"href":"https:\/\/trueconf.ru/blog\/wp-json\/wp\/v2\/media?parent=70780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trueconf.ru/blog\/wp-json\/wp\/v2\/categories?post=70780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trueconf.ru/blog\/wp-json\/wp\/v2\/tags?post=70780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}