Using Acquia Dev Desktop to Set Up a Drupal 8 Code Sprint Environment
With Drupal 8 looming on the horizon, everyone is talking about doing their part to contribute. In my own case – wanting to get involved but being new to Drupal development – I wasn’t really sure where to start.
Through a Drupal DC meetup, I was introduced to the Drupal Ladder. Following the Drupal Core Ladder, I got a practice Drupal environment set up, got familiar with the issue queue, and tested some patches! Of course, all the issues and patches written and tested for the LEARN portion of the ladder only affect the sandbox version of D8 used in the tutorials, but it gives you a great idea of what to expect.
After working through the Ladder, I felt ready to attend some Drupal code sprints. However, one of the biggest problems new people have at code sprints is setting up their Drupal environment. As a newbie, I found the quickest way to set up a test environment on my Mac was through the Acquia Dev Desktop. This is a stack built specifically for Drupal (it’s pre-loaded with Apache, MySQL, PHP, etc.), so no downloads other than Drupal itself should be necessary. For this tutorial, we’ll be using Acquia Dev Desktop 2 Beta.
Note: although I am using the Mac version, the Windows instructions should be the same.
Installing Acquia Dev Desktop 2 Beta
From the downloads page, click on Mac / Win Download within the, “Get the Acquia Dev Desktop 2 Beta” box at the top of the page. Locate your download file and double click the file to launch the installer.
- Click Next on the initial screen. The following screen will give you an overview of what is included in the Dev Desktop package: Apache, MySQL, PHP, etc. Review these and click Next.
- Review the license agreement, click Yes if you accept the terms, and then click Next.
- Make note of this next screen. This lets you choose the install locations of your stack and Sites folder. I would recommend leaving these as the default selections.
- The next screen displays the port settings that will be used by Dev Desktop. Do not change these. Simply make note of them and click Next.
- Review your information, then click Next, then Next again to begin the installation.
- Once the installation has completed, click on Finish. If the program pops up, minimize it. We must first download a copy of Drupal 8.
Downloading and Setting Up Your Drupal 8 Environment
After installing Dev Desktop, we can now get our Drupal 8 environment running:
- Download your desired version of Drupal 8 (use Drupal 8.0.x-dev if you are going to help test and develop D8) by clicking on the .tar file for Mac or .zip for PC in theDownload column. Be sure to extract the tar/zip folder if your system does not automatically do it!
- You can place the files inside your Sites folder, or simply leave it where it downloaded. It is advisable to change the name of the directory from “drupalx.x-x.x” to something simpler (e.g. drupal8, drupaltest, d8dev, etc.).
- Bring back up Acquia Dev Desktop, or launch it. Click on Start with an existing Drupal site located on my computer.
- For Local codebase folder, select the Drupal root folder you just downloaded and click on Open. You can leave Local site name as is, or change it up.
- Drupal 8 requires at least PHP 5.4, so select the PHP version 5.4 your Dev Desktop came with.
- For Database, select Create a new database. You can leave New database name as is, or alter as you like.
- Click OK, and your site will be imported into Dev Desktop.
- Select your site from the left, if it is not already selected. At the top of Dev Desktop, click on your Local site URL and it will come up in your default browser.
- On initial launch, your site should go to /install.php. If not, manually enter /install.php to the end of your site URL (e.g. http://drupal8.local:8083/install.php). Select your language, and click on Save and continue.
- Leave Standard selected as your installation profile. Click Save and continue.
- The database info should transfer and auto-fill into the fields, but just in case, enter the following info:
- Database name: name you created during the import (New database name)
- Database username: drupaluser or root
- Leave the password blank
- Under the Advanced Options: Host: 127.0.0.1 & Port number: 33067
Click on Save and continue once the information has been filled out.
Drupal will now install your site. Once finished, enter whatever you’d like for the site name, email, and user configuration, and your Drupal site should be up and running! Be sure to remember the username and password for the account you created, as this is your main administrator account (user 1).
That’s All, Folks
Installing Acquia Dev Desktop is fairly quick simple if you follow these steps. Don’t let not having a dev environment stop you from participating in Drupal 8 code sprints, as there are plenty of other AMP stacks available to install, making sure you’re comfortable with one goes a long way. With my development environment setup all that’s left to do now is to actually write a patch… Maybe I’ll take care of that during Forum One’s next code sprint!
Want to participate in our next Drupal code sprint in DC? Send us an email and we’ll keep you in the loop!