89 lines
27 KiB
HTML
89 lines
27 KiB
HTML
<!doctype html>
|
||
<html lang="en" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-help" data-has-hydrated="false">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="generator" content="Docusaurus v3.3.0">
|
||
<title data-rh="true">Help | Laradock</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:image" content="https://laradock.io/img/laradock/laradock-logo.jpg"><meta data-rh="true" name="twitter:image" content="https://laradock.io/img/laradock/laradock-logo.jpg"><meta data-rh="true" property="og:url" content="https://laradock.io/docs/help"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="Help | Laradock"><meta data-rh="true" name="description" content="Open an issue on Github (will be labeled as Question) and discuss it with people on Gitter."><meta data-rh="true" property="og:description" content="Open an issue on Github (will be labeled as Question) and discuss it with people on Gitter."><link data-rh="true" rel="icon" href="/laradock.ico"><link data-rh="true" rel="canonical" href="https://laradock.io/docs/help"><link data-rh="true" rel="alternate" href="https://laradock.io/docs/help" hreflang="en"><link data-rh="true" rel="alternate" href="https://laradock.io/docs/help" hreflang="x-default"><link rel="preconnect" href="https://www.google-analytics.com">
|
||
<link rel="preconnect" href="https://www.googletagmanager.com">
|
||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CVZBKZ36Y5"></script>
|
||
<script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-CVZBKZ36Y5",{anonymize_ip:!0})</script><link rel="stylesheet" href="/assets/css/styles.a9eeb305.css">
|
||
<script src="/assets/js/runtime~main.b210c936.js" defer="defer"></script>
|
||
<script src="/assets/js/main.174722fb.js" defer="defer"></script>
|
||
</head>
|
||
<body class="navigation-with-keyboard">
|
||
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return localStorage.getItem("theme")}catch(t){}}();t(null!==e?e:"dark")}(),function(){try{const c=new URLSearchParams(window.location.search).entries();for(var[t,e]of c)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"><div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#__docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/"><div class="navbar__logo"><img src="/img/laradock/laradock-icon.png" alt="Laradock Logo" class="themedComponent_mlkZ themedComponent--light_NVdE"><img src="/img/laradock/laradock-icon.png" alt="Laradock Logo" class="themedComponent_mlkZ themedComponent--dark_xIcU"></div><b class="navbar__title text--truncate">Laradock</b></a></div><div class="navbar__items navbar__items--right"><a href="https://github.com/laradock/laradock" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">GitHub<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a><div class="toggle_vylO colorModeToggle_DEke"><button class="clean-btn toggleButton_gllP toggleButtonDisabled_aARS" type="button" disabled="" title="Switch between dark and light mode (currently dark mode)" aria-label="Switch between dark and light mode (currently dark mode)" aria-live="polite"><svg viewBox="0 0 24 24" width="24" height="24" class="lightToggleIcon_pyhR"><path fill="currentColor" d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" class="darkToggleIcon_wfgR"><path fill="currentColor" d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"></path></svg></button></div><div class="navbarSearchContainer_Bca1"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="main-wrapper mainWrapper_z2l0"><div class="docsWrapper_hBAB"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_sjWU" type="button"></button><div class="docRoot_UBD9"><aside class="theme-doc-sidebar-container docSidebarContainer_YfHR"><div class="sidebarViewport_aRkj"><div class="sidebar_njMd"><nav aria-label="Docs sidebar" class="menu thin-scrollbar menu_SIkG"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/Intro">Introduction</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/getting-started">Getting Started</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/usage">Usage</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" href="/docs/help">Help</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/related-projects">Related Projects</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/contributing">Contributions</a></li></ul></nav></div></div></aside><main class="docMainContainer_TBSr"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_VOVn"><div class="docItemContainer_Djhp"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_Z_bl" aria-label="Breadcrumbs"><ul class="breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList"><li class="breadcrumbs__item"><a aria-label="Home page" class="breadcrumbs__link" href="/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_YNFT"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link" itemprop="name">Help</span><meta itemprop="position" content="1"></li></ul></nav><div class="tocCollapsible_ETCw theme-doc-toc-mobile tocMobile_ITEo"><button type="button" class="clean-btn tocCollapsibleButton_TO0P">On this page</button></div><div class="theme-doc-markdown markdown"><a name="Get Help"></a>
|
||
<h1>Get Help</h1>
|
||
<p>Open an <a href="https://github.com/laradock/laradock/issues" target="_blank" rel="noopener noreferrer">issue</a> on Github (will be labeled as Question) and discuss it with people on <a href="https://gitter.im/Laradock/laradock" target="_blank" rel="noopener noreferrer">Gitter</a>.</p>
|
||
<p>Optionally: Join the chat room on <a href="https://gitter.im/Laradock/laradock" target="_blank" rel="noopener noreferrer">Gitter</a> and get support from the community.</p>
|
||
<p><a href="https://gitter.im/Laradock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge" target="_blank" rel="noopener noreferrer"><img decoding="async" loading="lazy" src="https://badges.gitter.im/Laradock/laradock.svg" alt="Gitter" class="img_ev3q"></a></p>
|
||
<br>
|
||
<a name="Common-Problems"></a>
|
||
<h1>Common Problems</h1>
|
||
<p><em>Here's a list of the common problems you might face, and the possible solutions.</em></p>
|
||
<br>
|
||
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="i-see-a-blank-white-page-instead-of-the-laravel-welcome-page">I see a blank (white) page instead of the Laravel 'Welcome' page!<a href="#i-see-a-blank-white-page-instead-of-the-laravel-welcome-page" class="hash-link" aria-label="Direct link to I see a blank (white) page instead of the Laravel 'Welcome' page!" title="Direct link to I see a blank (white) page instead of the Laravel 'Welcome' page!"></a></h2>
|
||
<p>Run the following command from the Laravel root directory:</p>
|
||
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#F8F8F2"><span class="token plain">sudo chmod -R 777 storage bootstrap/cache</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
|
||
<br>
|
||
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="i-see-welcome-to-nginx-instead-of-the-laravel-app">I see "Welcome to nginx" instead of the Laravel App!<a href="#i-see-welcome-to-nginx-instead-of-the-laravel-app" class="hash-link" aria-label="Direct link to I see "Welcome to nginx" instead of the Laravel App!" title="Direct link to I see "Welcome to nginx" instead of the Laravel App!"></a></h2>
|
||
<p>Use <code>http://127.0.0.1</code> instead of <code>http://localhost</code> in your browser.</p>
|
||
<br>
|
||
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="i-see-an-error-message-containing-address-already-in-use-or-port-is-already-allocated">I see an error message containing (address already in use) or (port is already allocated)<a href="#i-see-an-error-message-containing-address-already-in-use-or-port-is-already-allocated" class="hash-link" aria-label="Direct link to I see an error message containing (address already in use) or (port is already allocated)" title="Direct link to I see an error message containing (address already in use) or (port is already allocated)"></a></h2>
|
||
<p>Make sure the ports for the services that you are trying to run (22, 80, 443, 3306, etc.) are not being used already by other programs on the host, such as a built in <code>apache</code>/<code>httpd</code> service or other development tools you have installed.</p>
|
||
<br>
|
||
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="i-get-nginx-error-404-not-found-on-windows">I get NGINX error 404 Not Found on Windows.<a href="#i-get-nginx-error-404-not-found-on-windows" class="hash-link" aria-label="Direct link to I get NGINX error 404 Not Found on Windows." title="Direct link to I get NGINX error 404 Not Found on Windows."></a></h2>
|
||
<ol>
|
||
<li>Go to docker Settings on your Windows machine.</li>
|
||
<li>Click on the <code>Shared Drives</code> tab and check the drive that contains your project files.</li>
|
||
<li>Enter your windows username and password.</li>
|
||
<li>Go to the <code>reset</code> tab and click restart docker.</li>
|
||
</ol>
|
||
<br>
|
||
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-time-in-my-services-does-not-match-the-current-time">The time in my services does not match the current time<a href="#the-time-in-my-services-does-not-match-the-current-time" class="hash-link" aria-label="Direct link to The time in my services does not match the current time" title="Direct link to The time in my services does not match the current time"></a></h2>
|
||
<ol>
|
||
<li>Make sure you've <a href="#Change-the-timezone">changed the timezone</a>.</li>
|
||
<li>Stop and rebuild the containers (<code>docker-compose up -d --build <services></code>)</li>
|
||
</ol>
|
||
<br>
|
||
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="i-get-mysql-connection-refused">I get MySQL connection refused<a href="#i-get-mysql-connection-refused" class="hash-link" aria-label="Direct link to I get MySQL connection refused" title="Direct link to I get MySQL connection refused"></a></h2>
|
||
<p>This error sometimes happens because your Laravel application isn't running on the container localhost IP (Which is 127.0.0.1). Steps to fix it:</p>
|
||
<ul>
|
||
<li>Option A<!-- -->
|
||
<ol>
|
||
<li>Check your running Laravel application IP by dumping <code>Request::ip()</code> variable using <code>dd(Request::ip())</code> anywhere on your application. The result is the IP of your Laravel container.</li>
|
||
<li>Change the <code>DB_HOST</code> variable on env with the IP that you received from previous step.</li>
|
||
</ol>
|
||
</li>
|
||
<li>Option B<!-- -->
|
||
<ol>
|
||
<li>Change the <code>DB_HOST</code> value to the same name as the MySQL docker container. The Laradock docker-compose file currently has this as <code>mysql</code></li>
|
||
</ol>
|
||
</li>
|
||
</ul>
|
||
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="i-get-stuck-when-building-nginx-on-fetch-mirrorsaliyuncomalpinev35mainx86_64apkindextargz">I get stuck when building nginx on (fetch mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz)<a href="#i-get-stuck-when-building-nginx-on-fetch-mirrorsaliyuncomalpinev35mainx86_64apkindextargz" class="hash-link" aria-label="Direct link to I get stuck when building nginx on (fetch mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz)" title="Direct link to I get stuck when building nginx on (fetch mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz)"></a></h2>
|
||
<p>As stated on <a href="https://github.com/laradock/laradock/issues/749#issuecomment-419652646" target="_blank" rel="noopener noreferrer">#749</a>, Already fixed,just set <code>CHANGE_SOURCE</code> to false.</p>
|
||
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="custom-composer-repo-packagist-url-and-npm-registry-url">Custom composer repo packagist url and npm registry url<a href="#custom-composer-repo-packagist-url-and-npm-registry-url" class="hash-link" aria-label="Direct link to Custom composer repo packagist url and npm registry url" title="Direct link to Custom composer repo packagist url and npm registry url"></a></h2>
|
||
<p>In China, the origin source of composer and npm is very slow. You can add <code>WORKSPACE_NPM_REGISTRY</code> and <code>WORKSPACE_COMPOSER_REPO_PACKAGIST</code> config in <code>.env</code> to use your custom source.</p>
|
||
<p>Example:</p>
|
||
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#F8F8F2"><span class="token plain">WORKSPACE_NPM_REGISTRY=https://registry.npmmirror.com</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">WORKSPACE_COMPOSER_REPO_PACKAGIST=https://packagist.phpcomposer.com</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
|
||
<br>
|
||
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="i-got-module-build-failed-error-write-epipe-while-compiling-react-application">I got (Module build failed: Error: write EPIPE) while compiling react application<a href="#i-got-module-build-failed-error-write-epipe-while-compiling-react-application" class="hash-link" aria-label="Direct link to I got (Module build failed: Error: write EPIPE) while compiling react application" title="Direct link to I got (Module build failed: Error: write EPIPE) while compiling react application"></a></h2>
|
||
<p>When you run <code>npm build</code> or <code>yarn dev</code> building a react application using webpack with elixir you may receive an <code>Error: write EPIPE</code> while processing .jpg images.</p>
|
||
<p>This is caused of an outdated library for processing <strong>.jpg files</strong> in ubuntu 16.04.</p>
|
||
<p>To fix the problem you can follow those steps</p>
|
||
<p>1 - Open the <code>.env</code>.</p>
|
||
<p>2 - Search for <code>WORKSPACE_INSTALL_LIBPNG</code> or add the key, if missing.</p>
|
||
<p>3 - Set the value to true:</p>
|
||
<div class="language-dotenv codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-dotenv codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#F8F8F2"><span class="token plain">WORKSPACE_INSTALL_LIBPNG=true</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
|
||
<p>4 - Finally rebuild the workspace image</p>
|
||
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#F8F8F2"><span class="token plain">docker-compose build workspace</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
|
||
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="apache2-container-wont-start-on-mac-m1">Apache2 container won't start on mac m1<a href="#apache2-container-wont-start-on-mac-m1" class="hash-link" aria-label="Direct link to Apache2 container won't start on mac m1" title="Direct link to Apache2 container won't start on mac m1"></a></h2>
|
||
<p>To fix the problem you can follow those steps</p>
|
||
<p>1 - Open the <code>.env</code>.</p>
|
||
<p>2 - Search for <code>APACHE_FOR_MAC_M1</code> or add the key, if missing.</p>
|
||
<p>3 - Set the value to true:</p>
|
||
<div class="language-dotenv codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-dotenv codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#F8F8F2"><span class="token plain">APACHE_FOR_MAC_M1=true</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
|
||
<p>4 - Finally rebuild the workspace image</p>
|
||
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#F8F8F2"><span class="token plain">docker-compose build apache2</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="row margin-top--sm theme-doc-footer-edit-meta-row"><div class="col"><a href="https://github.com/laradock/laradock/tree/master/DOCUMENTATION/docs/help.md" target="_blank" rel="noopener noreferrer" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_Z9Sw" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col lastUpdated_JAkA"></div></div></footer></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/docs/usage"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Usage</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/docs/related-projects"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Related Projects</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_bqdL thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#i-see-a-blank-white-page-instead-of-the-laravel-welcome-page" class="table-of-contents__link toc-highlight">I see a blank (white) page instead of the Laravel 'Welcome' page!</a></li><li><a href="#i-see-welcome-to-nginx-instead-of-the-laravel-app" class="table-of-contents__link toc-highlight">I see "Welcome to nginx" instead of the Laravel App!</a></li><li><a href="#i-see-an-error-message-containing-address-already-in-use-or-port-is-already-allocated" class="table-of-contents__link toc-highlight">I see an error message containing (address already in use) or (port is already allocated)</a></li><li><a href="#i-get-nginx-error-404-not-found-on-windows" class="table-of-contents__link toc-highlight">I get NGINX error 404 Not Found on Windows.</a></li><li><a href="#the-time-in-my-services-does-not-match-the-current-time" class="table-of-contents__link toc-highlight">The time in my services does not match the current time</a></li><li><a href="#i-get-mysql-connection-refused" class="table-of-contents__link toc-highlight">I get MySQL connection refused</a></li><li><a href="#i-get-stuck-when-building-nginx-on-fetch-mirrorsaliyuncomalpinev35mainx86_64apkindextargz" class="table-of-contents__link toc-highlight">I get stuck when building nginx on (fetch mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz)</a></li><li><a href="#custom-composer-repo-packagist-url-and-npm-registry-url" class="table-of-contents__link toc-highlight">Custom composer repo packagist url and npm registry url</a></li><li><a href="#i-got-module-build-failed-error-write-epipe-while-compiling-react-application" class="table-of-contents__link toc-highlight">I got (Module build failed: Error: write EPIPE) while compiling react application</a></li><li><a href="#apache2-container-wont-start-on-mac-m1" class="table-of-contents__link toc-highlight">Apache2 container won't start on mac m1</a></li></ul></div></div></div></div></main></div></div></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2015 - 2025 - Laradock - By <a href="https://zalt.me" target="_blank" rel="noopener noreferrer">Mahmoud Zalt</a>.</div></div></div></footer></div>
|
||
</body>
|
||
</html> |