{"id":1131,"date":"2024-03-30T02:11:12","date_gmt":"2024-03-29T23:11:12","guid":{"rendered":"https:\/\/webcademy.ru\/blog\/?p=1131"},"modified":"2024-06-23T18:08:00","modified_gmt":"2024-06-23T15:08:00","slug":"%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0-lamp-%d1%81%d1%82%d0%b5%d0%ba%d0%b0-%d0%bd%d0%b0-macos-%d0%ba%d0%b0%d0%ba-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%b8%d1%82%d1%8c-apache-p","status":"publish","type":"post","link":"https:\/\/webcademy.ru\/blog\/1131\/","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 PHP (LAMP) \u043d\u0430 MacOS \u0441 Docker: \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Apache, PHP, MySql"},"content":{"rendered":"\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0438 \u0432\u0438\u0434\u0435\u043e \u043d\u0438\u0436\u0435 \u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0437\u0430 10 \u043c\u0438\u043d\u0443\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Docker \u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 LAMP \u0441\u0442\u044d\u043a\u043e\u043c \u0434\u043b\u044f \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 PHP \u0432 MacOS. <\/p>\n\n\n\n<p>\u042d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 Apache, \u0441 \u0435\u0433\u043e <code>mod_rewirite<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u0438\u043c\u0438 PHP \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 \u0438 CMS. \u0410 \u0442\u0430\u043a\u0436\u0435 \u0432 PHP \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u0418 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u044b\u0439 phpMyAdmin. \u041f\u043e\u0435\u0445\u0430\u043b\u0438.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0412\u0438\u0434\u0435\u043e. \u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Docker \u0441 PHP \u043d\u0430 MacOS<\/h2>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c LAMP \u0441 PHP \u043d\u0430 MacOS \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Docker \u0437\u0430 10 \u043c\u0438\u043d\u0443\u0442\" width=\"730\" height=\"411\" src=\"https:\/\/www.youtube.com\/embed\/gwm033W0qEs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><strong>\u0421\u0441\u044b\u043b\u043a\u0438 \u043a \u0443\u0440\u043e\u043a\u0443<\/strong><\/p>\n\n\n\n<p>\u0421\u0430\u0439\u0442 Docker: <a rel=\"noreferrer noopener\" href=\"https:\/\/www.docker.com\/get-started\/\" target=\"_blank\">https:\/\/www.docker.com\/get-started\/<\/a><br>Git: <a rel=\"noreferrer noopener\" href=\"https:\/\/git-scm.com\/\" target=\"_blank\">https:\/\/git-scm.com\/<\/a><\/p>\n\n\n\n<p><strong>\u0413\u043e\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 LAMP \u0441\u0442\u0435\u043a\u043e\u043c. <\/strong><br>Apache, PHP, MySql, phpMyAdmin \u0434\u043b\u044f Docker<br><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/sprintcube\/docker-compose-lamp\" target=\"_blank\">https:\/\/github.com\/sprintcube\/docker-compose-lamp <\/a><\/p>\n\n\n\n<p><strong>\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Docker<\/li><li>\u041a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430<\/li><li>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0441 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u043c<\/li><\/ol>\n\n\n\n<p><strong>\u0412\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/strong><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;commonlisp&quot;,&quot;mime&quot;:&quot;text\/x-common-lisp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Common Lisp&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;lisp&quot;}\">git clone https:\/\/github.com\/sprintcube\/docker-compose-lamp.git\ncd docker-compose-lamp\/\ncp sample.env .env\n\/\/ modify sample.env as needed\ndocker compose up -d\n\/\/ visit localhost<\/pre><\/div>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u0437\u0430\u043f\u0443\u0449\u0435\u043d.<\/p>\n\n\n\n<p><strong>\u041f\u043e \u0438\u0442\u043e\u0433\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c Docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Apache\/2.4.57 (Debian)<\/li><li>PHP 8.3.4<\/li><li>MySQL Server 8.3.0<\/li><\/ul>\n\n\n\n<p>(\u0432\u0435\u0440\u0441\u0438\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438)<\/p>\n\n\n\n<p><strong>\u0413\u043e\u0442\u043e\u0432\u043e. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0441\u0430\u0439\u0442<\/strong><\/p>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 localhost <br><a rel=\"noreferrer noopener\" href=\"http:\/\/localhost\" target=\"_blank\">http:\/\/localhost<\/a> \u043b\u0438\u0431\u043e \u043d\u0430 443 \u043f\u043e\u0440\u0442 <a rel=\"noreferrer noopener\" href=\"http:\/\/localhost:443\/\" target=\"_blank\">http:\/\/localhost:443\/<\/a><\/p>\n\n\n\n<p>PHP My Admin \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443: <a href=\"http:\/\/localhost:8080\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/localhost:8080\/<\/a><\/p>\n\n\n\n<p>\u041f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <code>root<\/code> \u0432 MySql \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u0432 \u0444\u0430\u0439\u043b\u0435 <code>.env<\/code> \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 <code>MYSQL_ROOT_PASSWORD<\/code> \u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0440\u0430\u0432\u0435\u043d <code>tiger<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0438 \u0432\u0438\u0434\u0435\u043e \u043d\u0438\u0436\u0435 \u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0437\u0430 10 \u043c\u0438\u043d\u0443\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Docker \u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 LAMP \u0441\u0442\u044d\u043a\u043e\u043c \u0434\u043b\u044f \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 PHP \u0432 MacOS. \u042d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 Apache, \u0441 \u0435\u0433\u043e mod_rewirite, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u0438\u043c\u0438 PHP \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 \u0438 CMS. \u0410 \u0442\u0430\u043a\u0436\u0435 \u0432 PHP \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u0418 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1174,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[52,49,51,53,50],"class_list":["post-1131","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-php","tag-apache","tag-docker","tag-lamp","tag-macos","tag-php"],"_links":{"self":[{"href":"https:\/\/webcademy.ru\/blog\/wp-json\/wp\/v2\/posts\/1131"}],"collection":[{"href":"https:\/\/webcademy.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webcademy.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webcademy.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webcademy.ru\/blog\/wp-json\/wp\/v2\/comments?post=1131"}],"version-history":[{"count":1,"href":"https:\/\/webcademy.ru\/blog\/wp-json\/wp\/v2\/posts\/1131\/revisions"}],"predecessor-version":[{"id":1175,"href":"https:\/\/webcademy.ru\/blog\/wp-json\/wp\/v2\/posts\/1131\/revisions\/1175"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webcademy.ru\/blog\/wp-json\/wp\/v2\/media\/1174"}],"wp:attachment":[{"href":"https:\/\/webcademy.ru\/blog\/wp-json\/wp\/v2\/media?parent=1131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webcademy.ru\/blog\/wp-json\/wp\/v2\/categories?post=1131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webcademy.ru\/blog\/wp-json\/wp\/v2\/tags?post=1131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}