{"id":3004,"date":"2018-03-15T21:48:51","date_gmt":"2018-03-16T02:48:51","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=3004"},"modified":"2022-02-03T17:06:25","modified_gmt":"2022-02-03T22:06:25","slug":"fedora-26-27-php","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=3004","title":{"rendered":"Fedora 26 => 27 &#038; PHP"},"content":{"rendered":"<p>Since I like to discover major changes by upgrading my server and then realizing something doesn&#8217;t work (well &#8220;like&#8221; might be too strong a word &#8230; but I certainly\u00a0<em>do<\/em> it) &#8230; I randomly upgraded to Fedora 27 without reading any documentation on changes. Aaaand we have PHP! Evidently mod_php has gone away and I&#8217;m going to have to figure out how to use FastCGI (php-fpm). Luckily there&#8217;s a quick way to switch back to mod_php in the interim:<\/p>\n<p>\/etc\/httpd\/conf.modules.d\/00-mpm.conf<\/p>\n<pre># Uncomment this line to use mod_php\r\nLoadModule mpm_prefork_module modules\/mod_mpm_prefork.so\r\n\r\n# worker MPM: Multi-Processing Module implementing a hybrid\r\n# multi-threaded multi-process web server\r\n# See: http:\/\/httpd.apache.org\/docs\/2.4\/mod\/worker.html\r\n#\r\n#LoadModule mpm_worker_module modules\/mod_mpm_worker.so\r\n\r\n# event MPM: A variant of the worker MPM with the goal of consuming\r\n# threads only for connections with active processing\r\n# See: http:\/\/httpd.apache.org\/docs\/2.4\/mod\/event.html\r\n#\r\n# Commend out this line to use mod_php\r\n#LoadModule mpm_event_module modules\/mod_mpm_event.so\r\n<\/pre>\n<p>\/etc\/httpd\/conf.modules.d\/15-php.conf<\/p>\n<pre>&lt;IfModule !mod_php5.c&gt;\r\n&lt;IfModule prefork.c&gt;\r\nLoadModule php7_module modules\/libphp7.so\r\n&lt;\/IfModule&gt;\r\n&lt;\/IfModule&gt;\r\n\r\n&lt;IfModule !mod_php5.c&gt;\r\n&lt;IfModule !prefork.c&gt;\r\n# ZTS module is not supported, so FPM is preferred\r\nLoadModule php7_module modules\/libphp7-zts.so\r\n&lt;\/IfModule&gt;\r\n&lt;\/IfModule&gt;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since I like to discover major changes by upgrading my server and then realizing something doesn&#8217;t work (well &#8220;like&#8221; might be too strong a word &#8230; but I certainly\u00a0do it) &#8230; I randomly upgraded to Fedora 27 without reading any documentation on changes. Aaaand we have PHP! Evidently mod_php has gone away and I&#8217;m going &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[546,35],"class_list":["post-3004","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-mod_php","tag-php"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/3004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3004"}],"version-history":[{"count":3,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/3004\/revisions"}],"predecessor-version":[{"id":8548,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/3004\/revisions\/8548"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}