{"id":4,"date":"2014-11-08T16:27:58","date_gmt":"2014-11-08T16:27:58","guid":{"rendered":"http:\/\/www2.morsello.com\/?p=4"},"modified":"2015-08-09T16:28:13","modified_gmt":"2015-08-09T16:28:13","slug":"upgrading-to-apache-2-4-with-macports","status":"publish","type":"post","link":"https:\/\/www.morsello.com\/index.php\/2014\/11\/08\/upgrading-to-apache-2-4-with-macports\/","title":{"rendered":"Upgrading to Apache 2.4 with Macports"},"content":{"rendered":"<p class=\"title gutter\">The 2.4 branch of Apache has been available since February 12, but not available at Macports, which still defaults to versions 2.2. \u00a0Apache can be installed using the apache24 port, but connecting it to php55 calls in Apache 2.2, which isn&#8217;t what you&#8217;re after.<\/p>\n<div id=\"content\" class=\"region region-content content nested grid12-6\">\n<div id=\"content-inner\" class=\"content-inner inner\">\n<div id=\"block-system-main\" class=\"block block-system first last odd\">\n<div class=\"gutter inner clearfix\">\n<div class=\"content clearfix\">\n<div id=\"node-15\" class=\"node node-article node-promoted odd full-node clearfix\">\n<div class=\"content\">\n<div class=\"field field-name-body field-type-text-with-summary field-label-hidden\">\n<div class=\"field-items\">\n<div class=\"field-item even\">\n<p>This can be fixed with a port patch, as the problem is merely one of dependencies, not actual compatibility. \u00a0<a href=\"http:\/\/trac.macports.org\/ticket\/44116\">This patch\u00a0<\/a>\u00a0from the Macports bug list adds a new port php55-apache24handler, which is the code between PHP55 and the Apache 2.4 daemon, as the name suggests.<\/p>\n<p>What isn&#8217;t necessarily clear I&#8217;ve explained here:<\/p>\n<p>1.\u00a0<strong>Where are portfiles?<\/strong><\/p>\n<p>They&#8217;re in \/opt\/local\/<strong>var\/macports\/sources\/rsync.macports.org\/release\/tarballs\/ports<\/strong><\/p>\n<p>where &#8220;\/opt\/local&#8221; is the default installation directory for Macports, which will be different only if you&#8217;ve installed it to a different place.<\/p>\n<p><strong>2. \u00a0What are these portfiles?<\/strong><\/p>\n<p>Within the &#8230;\/release\/tarballs\/ports directory are about 45 subfolders indicating the categories of ports. \u00a0Inside those folders are subfolders to find specific ports, although the categorization is not always what you would think. \u00a0For example, there&#8217;s a &#8216;lang\/php&#8217; as well as a &#8216;php&#8217;.<\/p>\n<p>A portfile is always named\u00a0<strong>Portfile<\/strong>.<\/p>\n<p><strong>3. \u00a0What is a subport?<\/strong><\/p>\n<p>This isn&#8217;t actually documented in the user documentation, but a &#8220;subport&#8221; is a port provided by a portfile with an extension name after a hyphen. \u00a0php55-apache2handler provides the\u00a0<em>subport<\/em>\u00a0apache2handler.<\/p>\n<p><strong>4. \u00a0Why I can&#8217;t find I find the php55 Portfile?<\/strong><\/p>\n<p>A single Portfile can and often does provide multiple ports, as well as one or more subports. \u00a0In this case, &#8216;php\/Portfile&#8217; provides a whole mess of ports, including the whole php series and many of its subports. \u00a0You can see this in the Portfile with references to &#8220;subports&#8221; in the Portfile, as well as the &#8220;PortGroup&#8221; instructions near the top, which include other port files.<\/p>\n<p><strong>5. \u00a0Why doesn&#8217;t altering the Portfile Seem to do Anything?<\/strong><\/p>\n<p>The entire system is cached with an index system. \u00a0cd to the &#8220;top level&#8221; of the ports tree at:<\/p>\n<p>\/opt\/local\/var\/macports\/sources\/rsync.macports.org\/release\/tarballs\/ports<\/p>\n<p><strong>&gt; portindex<\/strong><\/p>\n<p>will regenerate the PortIndex and PortIndex.quick files you see there, and allow your port system to see any changes you&#8217;ve made.<\/p>\n<p><strong>6. What happened to mod_wsgi?<\/strong><\/p>\n<p>The mod_wsgi for interfacing to Python, should you want to do that, is still tied to Apache 2.2 in MacPorts.<\/p>\n<p>&nbsp;<\/p>\n<p>The release schedule for 2.4 (thanks, Apachehaus.com!) is:<\/p>\n<p>2.4.10 : July 19, 2014<br \/>\n2.4.9 : March 16, 2014<br \/>\n2.4.8 : Not Released<br \/>\n2.4.7 : Released November 25, 2013<br \/>\n2.4.6 : Released July 22, 2013<br \/>\n2.4.5 : Not released<br \/>\n2.4.4 : Released Feb 25, 2013<br \/>\n2.4.3 : Released Aug 18, 2012<br \/>\n2.4.2 : Released April 17, 2012<br \/>\n2.4.1 : Released February 17, 2012<\/p>\n<p>Apache&#8217;s guide to doing the upgrade is here:<\/p>\n<p><a href=\"http:\/\/httpd.apache.org\/docs\/2.4\/upgrading.html\">http:\/\/httpd.apache.org\/docs\/2.4\/upgrading.html<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The 2.4 branch of Apache has been available since February 12, but not available at Macports, which still defaults to versions 2.2. \u00a0Apache can be installed using the apache24 port, but connecting it to php55 calls in Apache 2.2, which isn&#8217;t what you&#8217;re after. This can be fixed with a port patch, as the problem&hellip;<\/p>\n<p><a class=\"more-link\" href=\"https:\/\/www.morsello.com\/index.php\/2014\/11\/08\/upgrading-to-apache-2-4-with-macports\/\" title=\"Continue reading &lsquo;Upgrading to Apache 2.4 with Macports&rsquo;\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.morsello.com\/index.php\/wp-json\/wp\/v2\/posts\/4"}],"collection":[{"href":"https:\/\/www.morsello.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.morsello.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.morsello.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.morsello.com\/index.php\/wp-json\/wp\/v2\/comments?post=4"}],"version-history":[{"count":1,"href":"https:\/\/www.morsello.com\/index.php\/wp-json\/wp\/v2\/posts\/4\/revisions"}],"predecessor-version":[{"id":5,"href":"https:\/\/www.morsello.com\/index.php\/wp-json\/wp\/v2\/posts\/4\/revisions\/5"}],"wp:attachment":[{"href":"https:\/\/www.morsello.com\/index.php\/wp-json\/wp\/v2\/media?parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.morsello.com\/index.php\/wp-json\/wp\/v2\/categories?post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.morsello.com\/index.php\/wp-json\/wp\/v2\/tags?post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}