{"id":1806,"date":"2020-12-14T19:21:11","date_gmt":"2020-12-14T18:21:11","guid":{"rendered":"https:\/\/blog.mhasin.eu\/?p=1806"},"modified":"2020-12-14T19:21:12","modified_gmt":"2020-12-14T18:21:12","slug":"apache2-php8-php8-fpm","status":"publish","type":"post","link":"https:\/\/blog.mhasin.eu\/?p=1806","title":{"rendered":"Apache2 php8, php8-fpm"},"content":{"rendered":"\n<p>Apt repozitory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt -y install lsb-release apt-transport-https ca-certificates wget\r\nsudo wget -O \/etc\/apt\/trusted.gpg.d\/php.gpg https:\/\/packages.sury.org\/php\/apt.gpg\necho \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" | sudo tee \/etc\/apt\/sources.list.d\/php.list\r<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\r\nsudo apt install php8.0\r\nsudo apt install php8.0-fpm\r\n<\/code><\/pre>\n\n\n\n<p>FPM configure pre whost:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Redirect to local php-fpm if mod_php is not available\n&lt;IfModule !mod_php8.c>\n&lt;IfModule proxy_fcgi_module>\n    # Enable http authorization headers\n    &lt;IfModule setenvif_module>\n    SetEnvIfNoCase ^Authorization$ \"(.+)\" HTTP_AUTHORIZATION=$1\n    &lt;\/IfModule>\n\n    &lt;FilesMatch \".+\\.ph(ar|p|tml)$\">\n        SetHandler \"proxy:unix:\/run\/php\/php8.0-fpm.sock|fcgi:\/\/localhost\"\n    &lt;\/FilesMatch>\n    &lt;FilesMatch \".+\\.phps$\">\n        # Deny access to raw php sources by default\n        # To re-enable it's recommended to enable access to the files\n        # only in specific virtual host or directory\n        Require all denied\n    &lt;\/FilesMatch>\n    # Deny access to files without filename (e.g. '.php')\n    &lt;FilesMatch \"^\\.ph(ar|p|ps|tml)$\">\n        Require all denied\n    &lt;\/FilesMatch>\n&lt;\/IfModule>\n&lt;\/IfModule>\n<\/code><\/pre>\n\n\n\n<p><\/p>\n<div class=\"pdf24Plugin-cp\"> \t<form name=\"pdf24Form0\" method=\"post\" action=\"https:\/\/doc2pdf.pdf24.org\/wordpress.php\" target=\"pdf24PopWin\" onsubmit=\"var pdf24Win = window.open('about:blank', 'pdf24PopWin', 'resizable=yes,scrollbars=yes,width=600,height=250,left='+(screen.width\/2-300)+',top='+(screen.height\/3-125)+''); pdf24Win.focus(); if(typeof pdf24OnCreatePDF === 'function'){void(pdf24OnCreatePDF(this,pdf24Win));}\"> \t\t<input type=\"hidden\" name=\"blogCharset\" value=\"Cw1x07UAAA==\" \/><input type=\"hidden\" name=\"blogPosts\" value=\"MwQA\" \/><input type=\"hidden\" name=\"blogUrl\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLQUA\" \/><input type=\"hidden\" name=\"blogName\" value=\"c\/LxdwcA\" \/><input type=\"hidden\" name=\"blogValueEncoding\" value=\"gzdeflate base64\" \/><input type=\"hidden\" name=\"postId_0\" value=\"M7QwMAMA\" \/><input type=\"hidden\" name=\"postTitle_0\" value=\"cyxITM5INVIoyCiw0AGTumkFuQA=\" \/><input type=\"hidden\" name=\"postLink_0\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLdW3L7A1tDAwAwA=\" \/><input type=\"hidden\" name=\"postAuthor_0\" value=\"y00syfcwNAIA\" \/><input type=\"hidden\" name=\"postDateTime_0\" value=\"MzIwMtA1NNI1NFEwtLQyNLIyNAQA\" \/><input type=\"hidden\" name=\"postContent_0\" value=\"lVTLbtswELwbyD9sFaOxEUhqb4HrCDDaBPEhD6TupShi0ORKIiKRLLmy48AfX1KxY+fVprqI5C5nhzNLdoYmGxkCi0bfS9J2ORimJuv4b2gsAq+Yc8fRwsSzSvPbmGuBUTYMv8w1QgPzm+MlSOWIVRVUbhZbrJA5DKGYLFPOaEtxSWQccBZztCRzyRmhg0WBtNdpkcIQ4ktIkXjq96ZkG0coksIUiUhNacIIWpxBmhrGb1mBLnGNXSbaFiEj7AtZHeSlhkjg7B\/50O15ytMN5djxPtRMqghW0LIixC0jpxvLPUQlHa0pheHeMG0F8cpZ\/E\/tGiO8EGsJwsJGSQ9+lHx6MxDnpt7rvFI4O706B65VLovGkwhEFqV29H5f9+EahbTICUiDD7O2aKgIModai6mfgnSgNAGbM1mxWYWdjxV9GefnWjQVwod12lHCs6cRY\/XdcprzQk7rdiXrgP\/24UQFmNYwYA2V2sp7RlIrKJEJtK7Ne4LlkFDNZf4E6TvSiZqP8wv9NXh6M9rF6kLUSw77EZxNJlfT0Y\/J2eX1+OdoMr68OO5+fqyQbkp4yTZrp7JCd86IlxAlh78SU\/aYXZkV1VW\/Gz3UXtc\/Y0pUaCFqDztolLwbpLZRbc9tDUyc134VpPAN2godnIq2LLYls7\/QMG63\/D58Q7UExn2nuuCgZYvgH6y7F2ZLEJizpqKdPROfhzE+WCDpwPkp13WNSqAIKOvQFpZKhDxw2UHRqgpvATiDPNxxmEtLje+fcC7QFh76yj8zj5uu8XfjFyG0tkAlUbx9\/BdHa+vDQnqDG2pnitUIPUyKBA6CNAf9V4W72dpn3AsH38vpWac8m752OdtL+Ac=\" \/> \t\t<a href=\"https:\/\/www.pdf24.org\" target=\"_blank\" title=\"www.pdf24.org\" rel=\"nofollow\"><img src=\"https:\/\/blog.mhasin.eu\/wp-content\/plugins\/pdf24-post-to-pdf\/img\/pdf_32x32.png\" alt=\"\" border=\"0\" height=\"32\" \/><\/a> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<input class=\"pdf24Plugin-cp-input\" style=\"margin: 0px;\" type=\"text\" name=\"sendEmailTo\" placeholder=\"Enter email address\" \/> \t\t<input class=\"pdf24Plugin-cp-submit\" style=\"margin: 0px;\" type=\"submit\" value=\"Send\" \/> \t<\/form> <\/div>","protected":false},"excerpt":{"rendered":"Apt repozitory: FPM configure pre whost: &nbsp;&nbsp; Send article as PDF &nbsp;&nbsp;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"arc_restricted_post":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1806","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1806"}],"version-history":[{"count":1,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1806\/revisions"}],"predecessor-version":[{"id":1807,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1806\/revisions\/1807"}],"wp:attachment":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}