You will also find a sub directory inside /test called /web This is the Drupal web root directory. In my case, the new directory was /test (remember you can provide your own name for the directory). Once Composer has completed downloading Drupal, you will now have a new directory that contains Drupal in it. This will fetch and download Drupal 8.9.1 instead. If for some reason you want to install a specific version of Drupal, you append the version number like this: composer create-project drupal/recommended-project:8.9.1 test During this writeup, Drupal version 9.0.1 was the latest. The web root will be /test/webĬomposer will fetch the latest version. test directory will contain files that should be outside of your web root and not accessible by the web server. It is up to you whatever name you want to give your installation root directory. Note: test is the directory i want to install Drupal into. We can now install Drupal using this command: composer create-project drupal/recommended-project test This takes us into the web root directory of MAMP. To do this type: cd /Applications/MAMP/htdocs Now that we have a new database ready, open up a terminal and change directory. Enter a name for your database and click on create. Click on new (at the top) to create a new database. On the sidebar of phpmyadmin, you will see a tree style listing all the databases. We will use this tool to setup a new database. Click on the tool menu and click phpmyadmin. Next, click on 'Webstart' to open up the MAMP webpage start page. i'm using MAMP Pro, if you are using the free version, click on PHP tab and select a version. Click on PHP in the sidebar and change the version to 7.3.9 or higher. This is an Apple Mac development toolkit that comes free with Mac OS. SSH comes pre-installed on Mac and so is Git but you need to install Xcode. Some things may have changed since then so read the comments if you experienced issues trying to install Composer on Mac OS). To install Composer, you can follow this guide at: (Note: the article is outdated.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |