{"id":1336,"date":"2018-01-09T22:54:16","date_gmt":"2018-01-09T14:54:16","guid":{"rendered":"http:\/\/sashakrasnoyarsk.ru\/?p=1336"},"modified":"2018-01-09T22:54:16","modified_gmt":"2018-01-09T14:54:16","slug":"%d1%80%d0%b5%d1%88%d0%b5%d0%bd%d0%be-%d0%be%d0%b1%d0%bd%d0%be%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-php7-%d0%bb%d0%be%d0%bc%d0%b0%d0%b5%d1%82-owncloud-%d0%b2-debian-9","status":"publish","type":"post","link":"https:\/\/sashakrasnoyarsk.ru\/?p=1336","title":{"rendered":"[\u0420\u0415\u0428\u0415\u041d\u041e] \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 php7 \u043b\u043e\u043c\u0430\u0435\u0442 owncloud :( \u0432 Debian 9."},"content":{"rendered":"<p>\u0418\u0437 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0435\u0433\u043e: &#171;\u043e\u0448\u0438\u0431\u043a\u0430 502 bad gateway&#187; \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u043b\u0430\u043a\u0430 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432.<br \/>\n\u0441\u043c\u043e\u0442\u0440\u0438\u043c \/var\/log\/apt\/history.log:<br \/>\nStart-Date: 2018-01-09  05:36:05<br \/>\nCommandline: apt-get -y install php7.0<br \/>\nUpgrade: php7.0:amd64 (7.0.19-1, 7.0.27-0+deb9u1)<br \/>\nEnd-Date: 2018-01-09  05:36:11                                                                      <\/p>\n<p>Start-Date: 2018-01-09  05:36:23<br \/>\nCommandline: apt-get -y install php7.0-cli<br \/>\nUpgrade: php7.0-cli:amd64 (7.0.19-1, 7.0.27-0+deb9u1), <strong>php7.0-fpm<\/strong>:amd64 (7.0.19-1, 7.0.27-0+deb9u1),<br \/>\n php7.0-gd:amd64 (7.0.19-1, 7.0.27-0+deb9u1), php7.0-opcache:amd64 (7.0.19-1, 7.0.27-0+deb9u1), php7<br \/>\n.0-common:amd64 (7.0.19-1, 7.0.27-0+deb9u1), php7.0-json:amd64 (7.0.19-1, 7.0.27-0+deb9u1), php7.0-m<br \/>\nbstring:amd64 (7.0.19-1, 7.0.27-0+deb9u1), php7.0-readline:amd64 (7.0.19-1, 7.0.27-0+deb9u1), php7.0<br \/>\n-xml:amd64 (7.0.19-1, 7.0.27-0+deb9u1), php7.0-curl:amd64 (7.0.19-1, 7.0.27-0+deb9u1), php7.0-zip:am<br \/>\nd64 (7.0.19-1, 7.0.27-0+deb9u1), php7.0-mysql:amd64 (7.0.19-1, 7.0.27-0+deb9u1)<br \/>\nEnd-Date: 2018-01-09  05:38:02<br \/>\n\u041e\u0431\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b php7 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0443\u0442\u0440\u043e\u043c.<!--more--><\/p>\n<p>\u0412 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \/etc\/php\/7.0\/fpm\/pool.d \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0430, \u0441\u0442\u0430\u0440\u044b\u0439 (\u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043b\u0441\u044f):<br \/>\ndiff .\/www.conf .\/www.conf.dpkg-old \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<br \/>\n36c36,37<br \/>\n< listen = \/run\/php\/php7.0-fpm.sock\n---\n> ;listen = \/run\/php\/php7.0-fpm.sock<br \/>\n> listen = 127.0.0.1:9000<br \/>\n376c377<br \/>\n< ; execute php code.\n---\n> ; exectute php code.<br \/>\n384,388c385,389<br \/>\n< ;env[HOSTNAME] = $HOSTNAME\n< ;env[PATH] = \/usr\/local\/bin:\/usr\/bin:\/bin\n< ;env[TMP] = \/tmp\n< ;env[TMPDIR] = \/tmp\n< ;env[TEMP] = \/tmp\n---\n> env[HOSTNAME] = $HOSTNAME<br \/>\n> env[PATH] = \/usr\/local\/bin:\/usr\/bin:\/bin<br \/>\n> env[TMP] = \/tmp<br \/>\n> env[TMPDIR] = \/tmp<br \/>\n> env[TEMP] = \/tmp<\/p>\n<p>\u0412\u0441\u0435 \u043c\u043e\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b OwnCloud \u043e\u0442\u043a\u0430\u0447\u0435\u043d\u044b. \u041a\u0430\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0438\u043c\u0435\u0435\u043c &#171;\u043e\u0448\u0438\u0431\u043a\u0430 502 bad gateway&#187; \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u043b\u0430\u043a\u0430 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<p>\u0420\u0415\u0428\u0415\u041d\u0418\u0415:<br \/>\n\u043e\u0442 \u0440\u0443\u0442\u0430:<br \/>\nrm -f \/etc\/php\/7.0\/fpm\/pool.d\/www.conf<br \/>\ncp \/etc\/php\/7.0\/fpm\/pool.d\/www.conf.dpkg-old \/etc\/php\/7.0\/fpm\/pool.d\/www.conf<br \/>\nservice php7.0-fpm restart<br \/>\nservice nginx restart<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u0437 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0435\u0433\u043e: &#171;\u043e\u0448\u0438\u0431\u043a\u0430 502 bad gateway&#187; \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u043b\u0430\u043a\u0430 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432. \u0441\u043c\u043e\u0442\u0440\u0438\u043c \/var\/log\/apt\/history.log: Start-Date: 2018-01-09 05:36:05 Commandline: apt-get -y install php7.0 Upgrade: php7.0:amd64 (7.0.19-1, 7.0.27-0+deb9u1) End-Date: 2018-01-09 05:36:11 Start-Date: 2018-01-09 05:36:23 Commandline: apt-get -y install php7.0-cli Upgrade: php7.0-cli:amd64 (7.0.19-1, 7.0.27-0+deb9u1), php7.0-fpm:amd64 &hellip; <a href=\"https:\/\/sashakrasnoyarsk.ru\/?p=1336\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[337,61,19,67,6,66,419,75,7],"tags":[1550,1662,1663,1664,1643,421],"class_list":["post-1336","post","type-post","status-publish","format-standard","hentry","category-debian","category-internet","category-linux","category-linux-qh","category-pc","category-qh","category-sites","category-software-linux-qh-qh","category-software","tag-debian","tag-debian-9","tag-owncloud","tag-php7","tag-php7-0-fpm","tag-421"],"_links":{"self":[{"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/posts\/1336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1336"}],"version-history":[{"count":1,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/posts\/1336\/revisions"}],"predecessor-version":[{"id":1337,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/posts\/1336\/revisions\/1337"}],"wp:attachment":[{"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}