{"id":283,"date":"2018-01-12T06:03:10","date_gmt":"2018-01-12T06:03:10","guid":{"rendered":"http:\/\/dangnh.cf\/?p=283"},"modified":"2026-08-18T15:35:05","modified_gmt":"2026-08-18T07:35:05","slug":"setup-nginx-php-mysql-phpmyadmin-macos-high-sierra","status":"publish","type":"post","link":"https:\/\/dangnh.cf\/vi\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/","title":{"rendered":"Setup Nginx, PHP, MySQL and phpMyAdmin on macOS High Sierra"},"content":{"rendered":"<p>Recently I bought a Mac and with all the curiosity, I upgraded to the newest OS which is High Sierra. I heard a lot about the ease of setting up development environment on Mac with package manager like <em><strong>brew<\/strong><\/em><\/p>\n<p>Beside, I have used Linux and Windows simultaneously for almost a year, so I thought an OS based on Unix? How hard could it be?<\/p>\n<h4><strong>WELL I WAS DEAD WRONG!<\/strong><\/h4>\n<p>I needed Nginx, PHP 5.6, MySQL version 5.*, phpMyAdmin is optional since I can use MySQL Workbench or Navicat instead. After 2 days of burying myself in bash command, I finally found the Sacred Scroll &#8211; The tutorial of my Lifetime &#8211; The true Saviour.<\/p>\n<p>Now that I cleansed my development environment, it is my duty to introduce it to you guys &#8211; The lost Warriors, the SACRED SCROLL!!!!!<\/p>\n<p>Link:\u00a0<a href=\"https:\/\/gist.github.com\/johnantoni\/07df65898456ace4307d5bb6cbdc7f51\">https:\/\/gist.github.com\/johnantoni\/07df65898456ace4307d5bb6cbdc7f51<\/a><\/p>\n<p>Just click the link, give it a star, and follow it\u00a0<strong>exactly<\/strong>, your development environment should be smell like rose again.<\/p>\n<p><span data-offset-key=\"6o3ar-0-0\">Any discussions are welcome!<\/span><\/p>\n<p><em>Side note: Dear Apple, stop messing up our homebrew and our development environment. Or I will switch back to Linux. &#8211; A new Apple user.<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>Two days buried in bash commands to get Nginx, PHP 5.6, MySQL and phpMyAdmin running on macOS High Sierra \u2014 and the one tutorial that finally worked.<\/p>","protected":false},"author":1,"featured_media":295,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[14,3],"tags":[],"class_list":["post-283","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-environment","category-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Set Up Nginx, PHP, MySQL &amp; phpMyAdmin on macOS High Sierra<\/title>\n<meta name=\"description\" content=\"Getting Nginx, PHP 5.6, MySQL and phpMyAdmin running on macOS High Sierra with Homebrew \u2014 what broke along the way, and the gist that finally worked.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dangnh.cf\/vi\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/\" \/>\n<meta property=\"og:locale\" content=\"vi_VN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set Up Nginx, PHP, MySQL &amp; phpMyAdmin on macOS High Sierra\" \/>\n<meta property=\"og:description\" content=\"Getting Nginx, PHP 5.6, MySQL and phpMyAdmin running on macOS High Sierra with Homebrew \u2014 what broke along the way, and the gist that finally worked.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dangnh.cf\/vi\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/\" \/>\n<meta property=\"og:site_name\" content=\"Mark Nguyen\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-12T06:03:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-18T07:35:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2018\/01\/mac-for-hackers-set-up-homebrew-install-update-open-source-tools.1280x600.jpg?fit=1280%2C600&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 ph\u00fat\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/dangnh.cf\\\/vi\\\/#\\\/schema\\\/person\\\/8f3b9db3b250186af217fbeec88eda9c\"},\"headline\":\"Setup Nginx, PHP, MySQL and phpMyAdmin on macOS High Sierra\",\"datePublished\":\"2018-01-12T06:03:10+00:00\",\"dateModified\":\"2026-08-18T07:35:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/\"},\"wordCount\":207,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/dangnh.cf\\\/vi\\\/#\\\/schema\\\/person\\\/8f3b9db3b250186af217fbeec88eda9c\"},\"image\":{\"@id\":\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/dangnh.cf\\\/wp-content\\\/uploads\\\/2018\\\/01\\\/mac-for-hackers-set-up-homebrew-install-update-open-source-tools.1280x600.jpg?fit=1280%2C600&ssl=1\",\"articleSection\":[\"Environment\",\"Web development\"],\"inLanguage\":\"vi\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/\",\"url\":\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/\",\"name\":\"Set Up Nginx, PHP, MySQL &amp; phpMyAdmin on macOS High Sierra\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dangnh.cf\\\/vi\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/dangnh.cf\\\/wp-content\\\/uploads\\\/2018\\\/01\\\/mac-for-hackers-set-up-homebrew-install-update-open-source-tools.1280x600.jpg?fit=1280%2C600&ssl=1\",\"datePublished\":\"2018-01-12T06:03:10+00:00\",\"dateModified\":\"2026-08-18T07:35:05+00:00\",\"description\":\"Getting Nginx, PHP 5.6, MySQL and phpMyAdmin running on macOS High Sierra with Homebrew \u2014 what broke along the way, and the gist that finally worked.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/#breadcrumb\"},\"inLanguage\":\"vi\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"vi\",\"@id\":\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/dangnh.cf\\\/wp-content\\\/uploads\\\/2018\\\/01\\\/mac-for-hackers-set-up-homebrew-install-update-open-source-tools.1280x600.jpg?fit=1280%2C600&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/dangnh.cf\\\/wp-content\\\/uploads\\\/2018\\\/01\\\/mac-for-hackers-set-up-homebrew-install-update-open-source-tools.1280x600.jpg?fit=1280%2C600&ssl=1\",\"width\":1280,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dangnh.cf\\\/2018\\\/01\\\/12\\\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dangnh.cf\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setup Nginx, PHP, MySQL and phpMyAdmin on macOS High Sierra\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dangnh.cf\\\/vi\\\/#website\",\"url\":\"https:\\\/\\\/dangnh.cf\\\/vi\\\/\",\"name\":\"Mark Nguyen\",\"description\":\"I build the e-commerce backends customers never see \u2014 payments, integrations, and AI features that actually ship.\",\"publisher\":{\"@id\":\"https:\\\/\\\/dangnh.cf\\\/vi\\\/#\\\/schema\\\/person\\\/8f3b9db3b250186af217fbeec88eda9c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/dangnh.cf\\\/vi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"vi\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/dangnh.cf\\\/vi\\\/#\\\/schema\\\/person\\\/8f3b9db3b250186af217fbeec88eda9c\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"vi\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d838feab6bbd5e774c608b656a29ab0d54981b88fa4b563a83d7635108b6c76e?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d838feab6bbd5e774c608b656a29ab0d54981b88fa4b563a83d7635108b6c76e?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d838feab6bbd5e774c608b656a29ab0d54981b88fa4b563a83d7635108b6c76e?s=96&d=retro&r=g\",\"caption\":\"admin\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d838feab6bbd5e774c608b656a29ab0d54981b88fa4b563a83d7635108b6c76e?s=96&d=retro&r=g\"},\"description\":\"Dang Nguyen Hai (Mark) is a senior fullstack engineer in Ho Chi Minh City with 13+ years building e-commerce backends, payment systems and the AI features that sit on top of them. He works with Shopware and Laravel, and writes here about PHP internals, e-commerce architecture and getting AI features to behave in production.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/mark-nguyen-4027458b\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set Up Nginx, PHP, MySQL &amp; phpMyAdmin on macOS High Sierra","description":"Getting Nginx, PHP 5.6, MySQL and phpMyAdmin running on macOS High Sierra with Homebrew \u2014 what broke along the way, and the gist that finally worked.","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:\/\/dangnh.cf\/vi\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/","og_locale":"vi_VN","og_type":"article","og_title":"Set Up Nginx, PHP, MySQL &amp; phpMyAdmin on macOS High Sierra","og_description":"Getting Nginx, PHP 5.6, MySQL and phpMyAdmin running on macOS High Sierra with Homebrew \u2014 what broke along the way, and the gist that finally worked.","og_url":"https:\/\/dangnh.cf\/vi\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/","og_site_name":"Mark Nguyen","article_published_time":"2018-01-12T06:03:10+00:00","article_modified_time":"2026-08-18T07:35:05+00:00","og_image":[{"width":1280,"height":600,"url":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2018\/01\/mac-for-hackers-set-up-homebrew-install-update-open-source-tools.1280x600.jpg?fit=1280%2C600&ssl=1","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi":"admin","\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc":"1 ph\u00fat"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/#article","isPartOf":{"@id":"https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/"},"author":{"name":"admin","@id":"https:\/\/dangnh.cf\/vi\/#\/schema\/person\/8f3b9db3b250186af217fbeec88eda9c"},"headline":"Setup Nginx, PHP, MySQL and phpMyAdmin on macOS High Sierra","datePublished":"2018-01-12T06:03:10+00:00","dateModified":"2026-08-18T07:35:05+00:00","mainEntityOfPage":{"@id":"https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/"},"wordCount":207,"commentCount":0,"publisher":{"@id":"https:\/\/dangnh.cf\/vi\/#\/schema\/person\/8f3b9db3b250186af217fbeec88eda9c"},"image":{"@id":"https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2018\/01\/mac-for-hackers-set-up-homebrew-install-update-open-source-tools.1280x600.jpg?fit=1280%2C600&ssl=1","articleSection":["Environment","Web development"],"inLanguage":"vi","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/","url":"https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/","name":"Set Up Nginx, PHP, MySQL &amp; phpMyAdmin on macOS High Sierra","isPartOf":{"@id":"https:\/\/dangnh.cf\/vi\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/#primaryimage"},"image":{"@id":"https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2018\/01\/mac-for-hackers-set-up-homebrew-install-update-open-source-tools.1280x600.jpg?fit=1280%2C600&ssl=1","datePublished":"2018-01-12T06:03:10+00:00","dateModified":"2026-08-18T07:35:05+00:00","description":"Getting Nginx, PHP 5.6, MySQL and phpMyAdmin running on macOS High Sierra with Homebrew \u2014 what broke along the way, and the gist that finally worked.","breadcrumb":{"@id":"https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/#breadcrumb"},"inLanguage":"vi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/"]}]},{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/#primaryimage","url":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2018\/01\/mac-for-hackers-set-up-homebrew-install-update-open-source-tools.1280x600.jpg?fit=1280%2C600&ssl=1","contentUrl":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2018\/01\/mac-for-hackers-set-up-homebrew-install-update-open-source-tools.1280x600.jpg?fit=1280%2C600&ssl=1","width":1280,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/dangnh.cf\/2018\/01\/12\/setup-nginx-php-mysql-phpmyadmin-macos-high-sierra\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dangnh.cf\/"},{"@type":"ListItem","position":2,"name":"Setup Nginx, PHP, MySQL and phpMyAdmin on macOS High Sierra"}]},{"@type":"WebSite","@id":"https:\/\/dangnh.cf\/vi\/#website","url":"https:\/\/dangnh.cf\/vi\/","name":"Mark Nguyen","description":"I build the e-commerce backends customers never see \u2014 payments, integrations, and AI features that actually ship.","publisher":{"@id":"https:\/\/dangnh.cf\/vi\/#\/schema\/person\/8f3b9db3b250186af217fbeec88eda9c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dangnh.cf\/vi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"vi"},{"@type":["Person","Organization"],"@id":"https:\/\/dangnh.cf\/vi\/#\/schema\/person\/8f3b9db3b250186af217fbeec88eda9c","name":"admin","image":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/secure.gravatar.com\/avatar\/d838feab6bbd5e774c608b656a29ab0d54981b88fa4b563a83d7635108b6c76e?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d838feab6bbd5e774c608b656a29ab0d54981b88fa4b563a83d7635108b6c76e?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d838feab6bbd5e774c608b656a29ab0d54981b88fa4b563a83d7635108b6c76e?s=96&d=retro&r=g","caption":"admin"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/d838feab6bbd5e774c608b656a29ab0d54981b88fa4b563a83d7635108b6c76e?s=96&d=retro&r=g"},"description":"Dang Nguyen Hai (Mark) is a senior fullstack engineer in Ho Chi Minh City with 13+ years building e-commerce backends, payment systems and the AI features that sit on top of them. He works with Shopware and Laravel, and writes here about PHP internals, e-commerce architecture and getting AI features to behave in production.","sameAs":["https:\/\/www.linkedin.com\/in\/mark-nguyen-4027458b"]}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9w3NP-4z","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":579,"url":"https:\/\/dangnh.cf\/vi\/2026\/09\/15\/eloquent-chunk-va-sai-lam-chet-choc\/","url_meta":{"origin":283,"position":0},"title":"Eloquent chunk() v\u00e0 sai l\u1ea7m &#8220;ch\u1ebft ch\u00f3c&#8221;","author":"admin","date":"Th\u00e1ng 9 15, 2026","format":false,"excerpt":"Eloquent chunk() b\u1ecf s\u00f3t m\u1ed9t n\u1eeda s\u1ed1 row khi b\u1ea1n update trong l\u00fac l\u1eb7p, c\u00f2n cursor() v\u1eabn tr\u00e0n RAM v\u00ec PDO buffer. V\u00ec sao, v\u00e0 khi n\u00e0o d\u00f9ng chunkById hay lazyById.","rel":"","context":"Trong &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/dangnh.cf\/vi\/category\/web-development\/php\/"},"img":{"alt_text":"M\u1ed9t ng\u01b0\u1eddi \u0111ang c\u01b0a c\u00e0nh tr\u00ean c\u00e2y cao","src":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2026\/09\/mot-nguoi-ang-cua-canh-tren-cay-cao.jpg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2026\/09\/mot-nguoi-ang-cua-canh-tren-cay-cao.jpg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2026\/09\/mot-nguoi-ang-cua-canh-tren-cay-cao.jpg?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2026\/09\/mot-nguoi-ang-cua-canh-tren-cay-cao.jpg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2026\/09\/mot-nguoi-ang-cua-canh-tren-cay-cao.jpg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":211,"url":"https:\/\/dangnh.cf\/vi\/2018\/06\/01\/trait-mixin-in-php\/","url_meta":{"origin":283,"position":1},"title":"Trait &#8211; Mixin in PHP?","author":"admin","date":"Th\u00e1ng 6 1, 2018","format":false,"excerpt":"PHP l\u00e0 ng\u00f4n ng\u1eef \u0111\u01a1n k\u1ebf th\u1eeba, v\u00e0 c\u00e2y k\u1ebf th\u1eeba d\u00e0i lu\u00f4n l\u00e0 c\u01a1n \u00e1c m\u1ed9ng. Trait sinh ra \u0111\u1ec3 gi\u1ea3i quy\u1ebft chuy\u1ec7n \u0111\u00f3 \u2014 nh\u01b0ng khi n\u00e0o n\u00ean d\u00f9ng, v\u00e0 khi n\u00e0o n\u00ean tr\u00e1nh?","rel":"","context":"Trong &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/dangnh.cf\/vi\/category\/web-development\/php\/"},"img":{"alt_text":"Trait in PHP","src":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2018\/06\/retro-background-3101430_960_720.jpg?fit=960%2C540&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2018\/06\/retro-background-3101430_960_720.jpg?fit=960%2C540&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2018\/06\/retro-background-3101430_960_720.jpg?fit=960%2C540&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2018\/06\/retro-background-3101430_960_720.jpg?fit=960%2C540&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":409,"url":"https:\/\/dangnh.cf\/vi\/2025\/05\/19\/huong-dan-setup-ai-blog-to-podcast-agent\/","url_meta":{"origin":283,"position":2},"title":"H\u01b0\u1edbng D\u1eabn Setup AI Blog to Podcast Agent","author":"admin","date":"Th\u00e1ng 5 19, 2025","format":false,"excerpt":"H\u01b0\u1edbng d\u1eabn ch\u1ea1y th\u1eed AI Blog to Podcast Agent t\u1eeb repo Awesome LLM Apps ngay tr\u00ean m\u00e1y Mac \u2014 bi\u1ebfn m\u1ed9t b\u00e0i blog th\u00e0nh t\u1eadp podcast ho\u00e0n ch\u1ec9nh.","rel":"","context":"Trong &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/dangnh.cf\/vi\/category\/ai\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2025\/05\/ai-agent.png?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2025\/05\/ai-agent.png?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2025\/05\/ai-agent.png?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2025\/05\/ai-agent.png?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":367,"url":"https:\/\/dangnh.cf\/vi\/2020\/01\/20\/service-container-di-sanh-dieu-voi-laravel\/","url_meta":{"origin":283,"position":3},"title":"Service Container &#038; DI &#8220;s\u00e0nh \u0111i\u1ec7u&#8221; v\u1edbi Laravel","author":"admin","date":"Th\u00e1ng 1 20, 2020","format":false,"excerpt":"Service Container l\u00e0 tr\u00e1i tim trong ki\u1ebfn tr\u00fac Laravel. Khi b\u00e0i to\u00e1n l\u1edbn d\u1ea7n v\u00e0 b\u1ea1n ph\u1ea3i qu\u1ea3n l\u00fd nhi\u1ec1u service c\u00f9ng dependency, \u0111\u00e2y l\u00e0 th\u1ee9 b\u1eaft bu\u1ed9c ph\u1ea3i hi\u1ec3u.","rel":"","context":"Trong &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/dangnh.cf\/vi\/category\/web-development\/php\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2020\/01\/1_SstfI6yiEWj1mrnFrLTUdA-e1579505803935.jpeg?fit=900%2C600&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2020\/01\/1_SstfI6yiEWj1mrnFrLTUdA-e1579505803935.jpeg?fit=900%2C600&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2020\/01\/1_SstfI6yiEWj1mrnFrLTUdA-e1579505803935.jpeg?fit=900%2C600&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2020\/01\/1_SstfI6yiEWj1mrnFrLTUdA-e1579505803935.jpeg?fit=900%2C600&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":43,"url":"https:\/\/dangnh.cf\/vi\/2016\/04\/06\/variable-debug-in-yii-2\/","url_meta":{"origin":283,"position":4},"title":"Debug variables in Yii 2","author":"admin","date":"Th\u00e1ng 4 6, 2016","format":false,"excerpt":"Quick ways to dump and inspect variables while debugging in Yii 2.","rel":"","context":"Trong &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/dangnh.cf\/vi\/category\/web-development\/php\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2016\/04\/debug-excel.jpg?fit=640%2C388&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2016\/04\/debug-excel.jpg?fit=640%2C388&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2016\/04\/debug-excel.jpg?fit=640%2C388&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":112,"url":"https:\/\/dangnh.cf\/vi\/2017\/05\/25\/what-is-stdclass-and-dynamic-properties-in-php\/","url_meta":{"origin":283,"position":5},"title":"What is stdClass? And Dynamic Properties in PHP?","author":"admin","date":"Th\u00e1ng 5 25, 2017","format":false,"excerpt":"stdClass shows up all over the core of Laravel and Yii. Here is what it actually is, how dynamic properties work in PHP, and when a property bag beats an array.","rel":"","context":"Trong &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/dangnh.cf\/vi\/category\/web-development\/php\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2017\/05\/stdclass-trong-php.png?fit=365%2C268&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/dangnh.cf\/wp-content\/uploads\/2018\/01\/mac-for-hackers-set-up-homebrew-install-update-open-source-tools.1280x600.jpg?fit=1280%2C600&ssl=1","_links":{"self":[{"href":"https:\/\/dangnh.cf\/vi\/wp-json\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dangnh.cf\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dangnh.cf\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dangnh.cf\/vi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dangnh.cf\/vi\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":15,"href":"https:\/\/dangnh.cf\/vi\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":525,"href":"https:\/\/dangnh.cf\/vi\/wp-json\/wp\/v2\/posts\/283\/revisions\/525"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dangnh.cf\/vi\/wp-json\/wp\/v2\/media\/295"}],"wp:attachment":[{"href":"https:\/\/dangnh.cf\/vi\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dangnh.cf\/vi\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dangnh.cf\/vi\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}