Drupal http://bananacore.com/ en Drupal 9 Installation http://bananacore.com/blog/drupal-9-installation <span class="field field--name-title field--type-string field--label-hidden">Drupal 9 Installation</span> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/17" typeof="schema:Person" property="schema:name" datatype="">Jose Daniel</span></span> <span class="field field--name-created field--type-created field--label-hidden">Thu, 01/06/2022 - 11:06</span> <div class="layout layout--onecol"> <div class="layout__region layout__region--content"> <div class="container block block-layout-builder block-field-blocknodeblogbody"> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><h3>Setup</h3> <p>Download the latest version of Drupal using Composer. With Composer is easy to manage all the Drupal dependencies.</p> <pre> <code class="language-bash">composer create-project drupal/recommended-project my_project </code></pre> <p>This command automatically executes the composer <strong>install command</strong> and download the latest Drupal version.</p> <h3>Infrastructure</h3> <p>Drupal requires a web and database server. Usually Drupal is installed in LAMP (Linux, Apache, MySQL and PHP) stacks, but if you want to test Drupal locally you can use a <a href="https://lando.dev/">Lando</a> recipe. Lando is an open source development environment built on top of <a href="https://www.docker.com/">Docker</a>.</p> <p>The command <strong>lando init </strong>will initialize the project and use it with a Lando recipe. Follow this tutorial for the options https://docs.lando.dev/config/drupal9.html#getting-started.</p> <pre> <code class="language-bash">lando init</code></pre> <p>After you choose the options to create the project, you will need to <strong>start</strong> the app. On first run this will build all relevant containers needed to run the app. On subsequent runs it will simply start the built containers.</p> <pre> <code class="language-bash">lando start</code></pre> <p>Once your has started, the terminal will display the application urls</p> <pre> <code class="language-bash">Here are some vitals: NAME myProject LOCATION /path/to/the/project/MyProject SERVICES appserver, database APPSERVER URLS https://localhost:54438 http://localhost:54439 http://my-project.lndo.site:8000/ https://my-project.lndo.site:444/ </code></pre> <h3>Installation</h3> <p>Now you have the setup ready, go to https://my-project.lndo.site:444/ and start the installation.</p> <p>The first step is to choose the language for the website, the click <strong>Save and continue</strong> button.</p> <p><img alt="Drupal installation choose language" data-entity-type="file" data-entity-uuid="ce27205c-85c4-4985-9d52-c5571a1f98b8" src="/sites/default/files/inline-images/drupal-install-1.png" width="826" height="391" loading="lazy" /></p> <p> </p> <p>Then you have to select between the different installation profiles. The Standard will install the commonly used features pre-configured.</p> <p><img alt="Drupal installation profile" data-entity-type="file" data-entity-uuid="8a6b7702-e91d-4c26-ba29-be95f2ff0cf0" src="/sites/default/files/inline-images/drupal-install-2.png" width="806" height="451" loading="lazy" /></p> <p> </p> <p>The next step is the database configuration. You need to fill the settings to connect the installation with the database. When you type <strong>lando info</strong>, it will display the installation information that we can use to connect to the database.</p> <pre> <code class="language-json">internal_connection: { host: 'database', port: '3306' }, creds: { database: 'drupal9', password: 'drupal9', user: 'drupal9' },</code></pre> <p><img alt="Drupal installation database configuration" data-entity-type="file" data-entity-uuid="4dd1515a-a10c-482b-8d25-07018e91f9d2" src="/sites/default/files/inline-images/drupal-install-3.png" width="816" height="827" loading="lazy" /></p> <p> </p> <p>The Drupal installation process will start when you click the <strong>Save and continue</strong> button</p> <p><img alt="Drupal installation" data-entity-type="file" data-entity-uuid="5fdeca56-9b90-4048-8859-03f47dbd87bc" src="/sites/default/files/inline-images/drupal-install-4.png" width="845" height="392" loading="lazy" /></p> <p> </p> <p>In order to finalize the installation, you will have to complete the Website information details.</p> <p><img alt="Drupal installation site configuration" data-entity-type="file" data-entity-uuid="017fc287-e035-4cd1-ac0d-31ae189ef2d9" src="/sites/default/files/inline-images/drupal-install-5.png" width="796" height="869" loading="lazy" /></p> <p> </p> <p>The installation will finalize after you click <strong>Save and continue</strong> button. Congratulations, you have successfully installed Drupal 9!</p> <p><img alt="Drupal installation new" data-entity-type="file" data-entity-uuid="80252e60-bbf3-4663-afb4-3461de85be76" src="/sites/default/files/inline-images/drupal-install-6.png" width="974" height="835" loading="lazy" /></p> </div> </div> <div class="container block block-layout-builder block-field-blocknodeblogfield-tags"> <div class="field field--name-field-tags field--type-entity-reference field--label-hidden field__items"> <div class="field__item"><a href="/blog/tag/drupal" hreflang="en">Drupal</a></div> </div> </div> </div> </div> Thu, 06 Jan 2022 17:06:58 +0000 Jose Daniel 111 at http://bananacore.com