{"id":91,"date":"2009-09-10T17:45:45","date_gmt":"2009-09-10T23:45:45","guid":{"rendered":"http:\/\/www.n8williams.com\/devblog\/?p=91"},"modified":"2009-10-01T07:38:21","modified_gmt":"2009-10-01T13:38:21","slug":"php-and-mysql-setup-on-mac-os-x-leopard","status":"publish","type":"post","link":"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard","title":{"rendered":"PHP and MySQL setup on Mac OS X 10.5 Leopard"},"content":{"rendered":"<h2>Full fledged open-source MAMP development environment with php, mysql, and apache on Mac OS X 10.5 Leopard<\/h2>\n<p><strong>Goal: A complete php development environment using Mac OS X 10.5 Leopard&#8217;s out of the box apache2\/php install, and an install of the latest mysql and eclipse software with all the necessary plugins for php debugging. ALL 64-BIT! <\/strong><\/p>\n<p>Admittedly, it was a challenge to get a fully functioning php dev environment up based on Mac OS X 10.5 Leopard&#8217;s configuration. But I succeeded in not installing a separate apache\/php 32-bit install, or bailing out to use a linux Virtual Box.<\/p>\n<h2>Enabling PHP<\/h2>\n<h3>PHP5<\/h3>\n<p>This one was pretty easy. Just uncomment out the line<\/p>\n<p>#LoadModule php5_module\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 libexec\/apache2\/libphp5.so<\/p>\n<p>in the httpd.conf apache config (\/etc\/apache2\/httpd.conf) so it includes the php5 module that comes with the OS.<\/p>\n<p>Make sure your extension_dir in php.ini points to \/usr\/lib\/php5\/extensions\/no-debug-non-zts-20060613\/ or go nuts and do your own extension directory. <\/p>\n<h3>Debugging 64-bit<\/h3>\n<p>This was one of the trickier things. You need to get an X-Debug extension setup. Hopefully you can just use my 64-bit extension file, and put that in your extensions directory (\/usr\/lib\/php5\/extensions\/no-debug-non-zts-20060613\/). Then add the zend_extension directive to the php.ini, along with the X-Debug settings, pointing to your (local or remote) host. In your php.ini:<\/p>\n<div class=\"text-box\">\n<pre>\r\n(left bracket)xdebug(right bracket)\r\nzend_extension=\"\/usr\/lib\/php\/extensions\/no-debug-non-zts-20060613\/xdebug.so\"\r\nxdebug.remote_enable=true\r\nxdebug.remote_host=natest.crimereports.com  ; if debugging on remote server, put client IP here\r\nxdebug.remote_port=9000\r\nxdebug.remote_handler=dbgp\r\n<\/pre>\n<\/div>\n<p><a title=\"xdebug extension\" href=\"http:\/\/n8williams.com\/misc\/xdebug.so\" target=\"_self\">xbedug.so<\/a> (specific to 64-bit Mac OS X)<\/p>\n<p>If that short version doesn&#8217;t work, you need to compile a 64-bit extension from the xdebug source, which was sort of tricky. You&#8217;ll need to get a compiler installed on your Mac OS if you haven&#8217;t got the right developer tools installed (XCode from the install disk or mac;s website), and then follow the instructions in this article.<\/p>\n<p><a title=\"64-bit XDebug driver for php on Mac OS X 10.5\" href=\"http:\/\/www.vividreflection.com\/blog\/installing-xdebug-on-macosx\/\" target=\"_blank\">http:\/\/www.vividreflection.com\/blog\/installing-xdebug-on-macosx\/<\/a><br \/>\n<a title=\"64-bit XDebug driver for php on Mac OS X 10.5\" href=\"http:\/\/www.designified.com\/blog\/article\/60\/compiling-installing-xdebug-for-php-525-entropych-build-on-os-x-105\" target=\"_blank\">http:\/\/www.designified.com\/blog\/article\/60\/compiling-installing-xdebug-for-php-525-entropych-build-on-os-x-105<\/a><\/p>\n<h2>Installing MySQL<\/h2>\n<p>Use the installer from MySQL&#8217;s site, and it goes pretty seamlessly. You may have to edit the php.ini to use the mysql server.<\/p>\n<p>The tricky part of this is if you use a framework, or your code uses the pdo database interface. Again, you can try my 64-bit version, or compile your own pdo_mysql extension. Enable the extension in the php.ini by addin gthe line extension=pdo_mysql.so<\/p>\n<p><a title=\"pdo_mysql extension\" href=\"http:\/\/n8williams.com\/misc\/pdo_mysql.so\" target=\"_self\">pdo_mysql.so<\/a> (specific to 64-bit Mac OS X)<\/p>\n<p><a title=\"pdo_mysql 64-bit for Mac OS X 10.5\" href=\"http:\/\/www.hoboes.com\/Mimsy\/hacks\/adding-pdo-mysql-mac-os-x-leopard-server\/\" target=\"_blank\">http:\/\/www.hoboes.com\/Mimsy\/hacks\/adding-pdo-mysql-mac-os-x-leopard-server\/<\/a><br \/>\n<a title=\"pdo_mysql issues\" href=\"http:\/\/www.spiration.co.uk\/post\/1332\/install%20PDO_MYSQL%20-%20mysql_config%20and%20header%20files%20problem\" target=\"_blank\">http:\/\/www.spiration.co.uk\/post\/1332\/install%20PDO_MYSQL%20-%20mysql_config%20and%20header%20files%20problem<\/a><\/p>\n<h2>Eclipse<\/h2>\n<p>So there is a Cacao version that is 64-bit. I guess the difference here, as I&#8217;ve read online, is that the Carbon version is more stable, but also legacy and in the future will be deprecated soon.<\/p>\n<p>I love using the update site to get plugins. That seemed to work best for PDT php, aptana, SVN (subclipse), and various editors, etc.<\/p>\n<h2>Flex<\/h2>\n<p>I sort of copped-out here when I learned the 64-bit version of eclipse doesn&#8217;t work well with Flex-Builder as an Eclipse plugin. I&#8217;m planning on installing the stand-alone version of flex builder, and using that separately (a little but resource wasteful, but far more convenient).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Full fledged open-source MAMP development environment with php, mysql, and apache on Mac OS X 10.5 Leopard Goal: A complete php development environment using Mac OS X 10.5 Leopard&#8217;s out of the box apache2\/php install, and an install of the latest mysql and eclipse software with all the necessary plugins for php debugging. ALL 64-BIT! &hellip; <a href=\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PHP and MySQL setup on Mac OS X 10.5 Leopard&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.11 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP and MySQL setup on Mac OS X 10.5 Leopard - The Dev Pages<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP and MySQL setup on Mac OS X 10.5 Leopard - The Dev Pages\" \/>\n<meta property=\"og:description\" content=\"Full fledged open-source MAMP development environment with php, mysql, and apache on Mac OS X 10.5 Leopard Goal: A complete php development environment using Mac OS X 10.5 Leopard&#8217;s out of the box apache2\/php install, and an install of the latest mysql and eclipse software with all the necessary plugins for php debugging. ALL 64-BIT! &hellip; Continue reading &quot;PHP and MySQL setup on Mac OS X 10.5 Leopard&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard\" \/>\n<meta property=\"og:site_name\" content=\"The Dev Pages\" \/>\n<meta property=\"article:published_time\" content=\"2009-09-10T23:45:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2009-10-01T13:38:21+00:00\" \/>\n<meta name=\"author\" content=\"Nate Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@admin\" \/>\n<meta name=\"twitter:site\" content=\"@admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nate Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard#article\",\"isPartOf\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard\"},\"author\":{\"name\":\"Nate Admin\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"headline\":\"PHP and MySQL setup on Mac OS X 10.5 Leopard\",\"datePublished\":\"2009-09-10T23:45:45+00:00\",\"dateModified\":\"2009-10-01T13:38:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard\"},\"wordCount\":529,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"articleSection\":[\"General Dev\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard\",\"url\":\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard\",\"name\":\"PHP and MySQL setup on Mac OS X 10.5 Leopard - The Dev Pages\",\"isPartOf\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#website\"},\"datePublished\":\"2009-09-10T23:45:45+00:00\",\"dateModified\":\"2009-10-01T13:38:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/n8williams.com\/devblog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP and MySQL setup on Mac OS X 10.5 Leopard\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#website\",\"url\":\"https:\/\/n8williams.com\/devblog\/\",\"name\":\"The Dev Pages\",\"description\":\"A knowledge base for web applications development (and beyond)\",\"publisher\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/n8williams.com\/devblog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\",\"name\":\"Nate Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g\",\"caption\":\"Nate Admin\"},\"logo\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/n8williams.com\",\"https:\/\/twitter.com\/admin\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP and MySQL setup on Mac OS X 10.5 Leopard - The Dev Pages","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard","og_locale":"en_US","og_type":"article","og_title":"PHP and MySQL setup on Mac OS X 10.5 Leopard - The Dev Pages","og_description":"Full fledged open-source MAMP development environment with php, mysql, and apache on Mac OS X 10.5 Leopard Goal: A complete php development environment using Mac OS X 10.5 Leopard&#8217;s out of the box apache2\/php install, and an install of the latest mysql and eclipse software with all the necessary plugins for php debugging. ALL 64-BIT! &hellip; Continue reading \"PHP and MySQL setup on Mac OS X 10.5 Leopard\"","og_url":"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard","og_site_name":"The Dev Pages","article_published_time":"2009-09-10T23:45:45+00:00","article_modified_time":"2009-10-01T13:38:21+00:00","author":"Nate Admin","twitter_card":"summary_large_image","twitter_creator":"@admin","twitter_site":"@admin","twitter_misc":{"Written by":"Nate Admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard#article","isPartOf":{"@id":"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard"},"author":{"name":"Nate Admin","@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"headline":"PHP and MySQL setup on Mac OS X 10.5 Leopard","datePublished":"2009-09-10T23:45:45+00:00","dateModified":"2009-10-01T13:38:21+00:00","mainEntityOfPage":{"@id":"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard"},"wordCount":529,"commentCount":0,"publisher":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"articleSection":["General Dev"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard#respond"]}]},{"@type":"WebPage","@id":"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard","url":"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard","name":"PHP and MySQL setup on Mac OS X 10.5 Leopard - The Dev Pages","isPartOf":{"@id":"https:\/\/n8williams.com\/devblog\/#website"},"datePublished":"2009-09-10T23:45:45+00:00","dateModified":"2009-10-01T13:38:21+00:00","breadcrumb":{"@id":"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/n8williams.com\/devblog\/general_dev\/php-and-mysql-setup-on-mac-os-x-leopard#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/n8williams.com\/devblog\/"},{"@type":"ListItem","position":2,"name":"PHP and MySQL setup on Mac OS X 10.5 Leopard"}]},{"@type":"WebSite","@id":"https:\/\/n8williams.com\/devblog\/#website","url":"https:\/\/n8williams.com\/devblog\/","name":"The Dev Pages","description":"A knowledge base for web applications development (and beyond)","publisher":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/n8williams.com\/devblog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757","name":"Nate Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g","caption":"Nate Admin"},"logo":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/n8williams.com","https:\/\/twitter.com\/admin"]}]}},"_links":{"self":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts\/91"}],"collection":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":21,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":165,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts\/91\/revisions\/165"}],"wp:attachment":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}