{"id":795,"date":"2012-05-18T11:27:59","date_gmt":"2012-05-18T21:27:59","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=795"},"modified":"2020-05-03T16:30:16","modified_gmt":"2020-05-04T02:30:16","slug":"mamp-optimizations","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/mamp-optimizations\/","title":{"rendered":"MAMP optimizations"},"content":{"rendered":"

“Optimizations” in the sense that you’ll have to do less work. \u00a0This website gives some great tips on saving you some time using MAMP.<\/p>\n

http:\/\/www.sitepen.com\/blog\/2008\/05\/16\/supercharge-mamp\/<\/a><\/p>\n

This site below actually helped me with the silent MAMP startup. \u00a0Read the comments on this page for updates on getting it to work with version 2. \u00a0It’s so good to not deal with the GUI and entering my password!<\/p>\n

http:\/\/stringfoo.com\/2008\/08\/25\/tutorial-launching-mamp-silently-on-startup\/<\/p>\n

 <\/p>\n

The 2nd website no longer exists and I’m afraid the first one will be gone. \u00a0Below are the steps required to start MAMP 3.x without the GUI automatically on startup:<\/p>\n

    \n
  1. Use Standard Ports\n
      \n
    • Set the web port 80 and and MySQL port to 3306 by using the MAMP GUI preferences. \u00a0There’s even a button to set it so you don’t need to type it.<\/li>\n<\/ul>\n<\/li>\n
    • Set up Virtual hosts (optional)\n
        \n
      1. Create the directory \/Applications\/MAMP\/conf\/apache\/vhosts<\/li>\n
      2. Open \/Application\/MAMP\/conf\/apache\/httpd.conf and add this to the end:\n
          \n
        1. \n
          NameVirtualHost *:80\nInclude \/Applications\/MAMP\/conf\/apache\/vhosts\/*.conf<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n
        2. Restart Apache<\/span><\/span>\n
            \n
          1. \n
            sudo \/Applications\/MAMP\/bin\/apache2\/bin\/apachectl restart<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n
          2. Run MAMP at startup without having the GUI popup.\n
              \n
            1. Put the following in \/Library\/LaunchDaemons\/USERNAME.mamp.start.apache.plist \u00a0replace USERNAME with your username in both the filename and the contents below.\n
                \n
              1. \n
                <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-\/\/Apple\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n <dict>\n <key>Disabled<\/key>\n <false\/>\n <key>Label<\/key>\n <string>corey.mamp.start.apache<\/string>\n <key>ProgramArguments<\/key>\n <array>\n <string>\/Applications\/MAMP\/Library\/bin\/apachectl<\/string>\n <string>start<\/string>\n <\/array>\n <key>RunAtLoad<\/key>\n <true\/>\n <\/dict>\n<\/plist><\/pre>\n<\/li>\n<\/ol>\n<\/li>\n
              2. Create \/Library\/LaunchDaemons\/USERNAME.mamp.start.mysql.plist \u00a0replace USERNAME with your username in both the filename and the contents below.\n
                  \n
                1. \n
                  <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-\/\/Apple\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n <dict>\n <key>Label<\/key>\n <string>USERNAME.mamp.start.mysql<\/string>\n <key>ProgramArguments<\/key>\n <array>\n <string>\/Applications\/MAMP\/Library\/bin\/mysqld_safe<\/string>\n <string>--port=3306<\/string>\n <string>--socket=\/Applications\/MAMP\/tmp\/mysql\/mysql.sock<\/string>\n <string>--lower_case_table_names=1<\/string>\n <string>--pid-file=\/Applications\/MAMP\/tmp\/mysql\/mysql.pid<\/string>\n <string>--log-error=\/Applications\/MAMP\/logs\/mysql_error_log<\/string>\n <\/array>\n <key>RunAtLoad<\/key>\n <true\/>\n <key>UserName<\/key>\n <string>corey<\/string>\n <\/dict>\n<\/plist><\/pre>\n<\/li>\n<\/ol>\n<\/li>\n
                2. Change the file permissions using the following commands:\n
                    \n
                  1. \n
                    sudo chown root:wheel USERNAME.mamp.start.apache.plist\nsudo chown root:wheel USERNAME.mamp.start.mysql.plist<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n
                  2. <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n

                     <\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[2],"tags":[9,43,53],"yoast_head":"\nMAMP optimizations - My Monkey Do<\/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:\/\/mymonkeydo.com\/mamp-optimizations\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MAMP optimizations - My Monkey Do\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mymonkeydo.com\/mamp-optimizations\/\" \/>\n<meta property=\"og:site_name\" content=\"My Monkey Do\" \/>\n<meta property=\"article:published_time\" content=\"2012-05-18T21:27:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-04T02:30:16+00:00\" \/>\n<meta name=\"author\" content=\"Webhead\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Webhead\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/mymonkeydo.com\/mamp-optimizations\/\",\"url\":\"https:\/\/mymonkeydo.com\/mamp-optimizations\/\",\"name\":\"MAMP optimizations - My Monkey Do\",\"isPartOf\":{\"@id\":\"https:\/\/mymonkeydo.com\/#website\"},\"datePublished\":\"2012-05-18T21:27:59+00:00\",\"dateModified\":\"2020-05-04T02:30:16+00:00\",\"author\":{\"@id\":\"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829\"},\"breadcrumb\":{\"@id\":\"https:\/\/mymonkeydo.com\/mamp-optimizations\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mymonkeydo.com\/mamp-optimizations\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mymonkeydo.com\/mamp-optimizations\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mymonkeydo.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MAMP optimizations\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mymonkeydo.com\/#website\",\"url\":\"https:\/\/mymonkeydo.com\/\",\"name\":\"My Monkey Do\",\"description\":\"A Log of Coding Solutions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mymonkeydo.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829\",\"name\":\"Webhead\",\"url\":\"https:\/\/mymonkeydo.com\/author\/corey\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MAMP optimizations - My Monkey Do","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:\/\/mymonkeydo.com\/mamp-optimizations\/","og_locale":"en_US","og_type":"article","og_title":"MAMP optimizations - My Monkey Do","og_url":"https:\/\/mymonkeydo.com\/mamp-optimizations\/","og_site_name":"My Monkey Do","article_published_time":"2012-05-18T21:27:59+00:00","article_modified_time":"2020-05-04T02:30:16+00:00","author":"Webhead","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Webhead","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mymonkeydo.com\/mamp-optimizations\/","url":"https:\/\/mymonkeydo.com\/mamp-optimizations\/","name":"MAMP optimizations - My Monkey Do","isPartOf":{"@id":"https:\/\/mymonkeydo.com\/#website"},"datePublished":"2012-05-18T21:27:59+00:00","dateModified":"2020-05-04T02:30:16+00:00","author":{"@id":"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829"},"breadcrumb":{"@id":"https:\/\/mymonkeydo.com\/mamp-optimizations\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mymonkeydo.com\/mamp-optimizations\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mymonkeydo.com\/mamp-optimizations\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mymonkeydo.com\/"},{"@type":"ListItem","position":2,"name":"MAMP optimizations"}]},{"@type":"WebSite","@id":"https:\/\/mymonkeydo.com\/#website","url":"https:\/\/mymonkeydo.com\/","name":"My Monkey Do","description":"A Log of Coding Solutions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mymonkeydo.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829","name":"Webhead","url":"https:\/\/mymonkeydo.com\/author\/corey\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts\/795"}],"collection":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/comments?post=795"}],"version-history":[{"count":0,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts\/795\/revisions"}],"wp:attachment":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/media?parent=795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/categories?post=795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/tags?post=795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}