{"id":641,"date":"2009-07-03T17:12:24","date_gmt":"2009-07-03T21:12:24","guid":{"rendered":"http:\/\/www.dr-chuck.com\/wordpress\/?p=641"},"modified":"2011-12-17T12:30:57","modified_gmt":"2011-12-17T16:30:57","slug":"making-mac-osx-10-5-php-behave","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2009\/07\/making-mac-osx-10-5-php-behave\/","title":{"rendered":"Making Mac OS\/X 10.5 PHP Behave"},"content":{"rendered":"<p>This is not much &#8211; but it is what I need to to to make Mac OS\/X 10.5 PHP behave and support ZIP files and zip_open() (Intel-only).<\/p>\n<pre>\nsh-3.2# cd \/private\/etc\/apache2\/\nsh-3.2# vi httpd.conf\nsh-3.2# cd \/private\/etc\nsh-3.2# cp php.ini.default php.ini\n; Directory in which the loadable extensions (modules) reside.\nextension_dir = \"\/usr\/lib\/php\/extensions\/no-debug-non-zts-20060613\"\nextension = zip.so\nsh-3.2# cd \/usr\/lib\/php\/extensions\/no-debug-non-zts-20060613\n(See <a href=\"http:\/\/www.viames.it\/mac-os-x.html\" target=\"_new\">http:\/\/www.viames.it\/mac-os-x.html<\/a> for detail)\nsh-3.2# curl -O http:\/\/www.viames.it\/download\/zip.so\n% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\nDload  Upload   Total   Spent    Left  Speed\n100 88232  100 88232    0     0  59887      0  0:00:01  0:00:01 --:--:--   99k\nsh-3.2# chmod +x zip.so\nsh-3.2# ls -l\ntotal 352\n-rwxr-xr-x  1 root  wheel  87880 May  8 00:10 phpcups.so\n-rwxr-xr-x  1 root  wheel  88232 Jul  3 16:35 zip.so\nsh-3.2# apachectl stop\nsh-3.2# apachectl start\n<\/pre>\n<p>\nAlso I need an htaccess that looks like this:<\/p>\n<pre>\nAddType x-mapp-php5 .php\nAddHandler x-mapp-php5 .php\n<\/pre>\n<p>\nPerhaps in an upcoming version of Mac OS\/X, the PHP will more of the common features installed out of the box.  A good benchmark would be if the Mac OS\/X PHP had enough extensions to run Moodle or Chisimba.  In the meantime just use MAMP &#8211; after a while installing extensions gets tiring.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is not much &#8211; but it is what I need to to to make Mac OS\/X 10.5 PHP behave and support ZIP files and zip_open() (Intel-only). sh-3.2# cd \/private\/etc\/apache2\/ sh-3.2# vi httpd.conf sh-3.2# cd \/private\/etc sh-3.2# cp php.ini.default php.ini ; Directory in which the loadable extensions (modules) reside. extension_dir = &#8220;\/usr\/lib\/php\/extensions\/no-debug-non-zts-20060613&#8221; extension = zip.so [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-641","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/comments?post=641"}],"version-history":[{"count":1,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/641\/revisions"}],"predecessor-version":[{"id":2762,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/641\/revisions\/2762"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}