how to install drupal 101 (for local development) - musings of a drupal girl

64
How to Install Drupal for Local Development Musings of a Drupal Girl

Upload: olindata

Post on 19-Jan-2015

4.903 views

Category:

Technology


2 download

DESCRIPTION

How to install Drupal for local development - the basic, easy to read and understand, 101 way by a beginner Drupal girl.

TRANSCRIPT

Page 1: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

How to Install Drupal for Local Development

Musings of a Drupal Girl

Page 2: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 2

Disclaimer

I am only just a beginner in Drupal and this is the way I was taught to install Drupal from some experts I know (thank you Richard & Maung Maung). Hence, I am just breaking it down for beginners like me who have no clue at all. If you have any suggestions on an easier, better way to install Drupal, I’m all ears! =)

And one more note: I’m using a Mac so the steps/tips might be a little more skewed towards Macs. I will try my best to include some Windows tips where I can!

I am only just a beginner in Drupal and this is the way I was taught to install Drupal from some experts I know (thank you Richard & Maung Maung). Hence, I am just breaking it down for beginners like me who have no clue at all. If you have any suggestions on an easier, better way to install Drupal, I’m all ears! =)

And one more note: I’m using a Mac so the steps/tips might be a little more skewed towards Macs. I will try my best to include some Windows tips where I can!

Page 3: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 3

How to Install Drupal 101

• Acquia Dev Desktop• Local Installation

Page 4: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 4

Install Drupal 101: “Acquia Dev Desktop” way

• Downloads you need:Acquia Dev Desktop

• To get the Acquia Dev Desktop, you can go to the same page https://www.acquia.com/downloads and select your download from the drop-down menu: the “dmg” file is for Mac users or the “exe” file is for Windows users.

Page 5: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 5

Install Drupal 101: “Acquia Dev Desktop” way

Page 6: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 6

Install Drupal 101: “Acquia Dev Desktop” way

Installing Acquia Dev Desktop – Step #1

•Open the Acquia Dev Desktop and start the installation process.

• If you are a Windows user, find the folder that you used to save your Acquia Dev Desktop download and double-click the “.exe” installation file.

• For a Mac user, find the folder that you used to save your Acquia Dev Desktop download and double-click the “.dmg” installation file. A new folder will pop up with an icon that says “Acquia Dev Desktop Stack Installer”. Double-click on that and allow the installer to run on your computer.

Page 7: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 7

Install Drupal 101: “Acquia Dev Desktop” way

Page 8: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 8

Install Drupal 101: “Acquia Dev Desktop” way

Installing Acquia Dev Desktop – Step #2

•Let the installer run and click “Next” for every step once you have read and understood it.•You will come to a step that requires you to fill in some information.•Do take note of the username and password that you fill in at this page as this will be your login information when you get to your Drupal site (if you are not good at remembering passwords like me, KeePassX is a great help).

Page 9: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 9

Install Drupal 101: “Acquia Dev Desktop” way

Page 10: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 10

Install Drupal 101: “Acquia Dev Desktop” way

Launching Acquia Dev Desktop Control Panel

•If the box next to the “Launch the Acquia Dev Desktop control panel” is ticked (like mine is above), your control panel should launch when you click “finish”:

Page 11: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 11

Install Drupal 101: “Acquia Dev Desktop” way

Launching Acquia Dev Desktop Control Panel

•Don’t panic if your control panel doesn’t launch. All you have to do is go to Programs (for Windows users) or Applications (for Mac users), search for the “acquia-drupal” and launch the “Acquia Dev Desktop Control Panel”.

Page 12: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 12

Install Drupal 101: “Acquia Dev Desktop” way

Getting your local Drupal site going

• The ‘easy’ third step is to “Go to my local site” by clicking on it.

Page 13: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 13

Install Drupal 101: “Acquia Dev Desktop” way

Getting your local Drupal site going

• You will then get to your local Drupal site that has the title you specified earlier in the installation stage. Not to worry, the title of your site can be changed later on.

Page 14: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 14

Install Drupal 101: “Acquia Dev Desktop” way

Page 15: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 15

Install Drupal 101: “Acquia Dev Desktop” way

Getting your local Drupal site going

• The final step to ensure you have installed Drupal is to sign in to your site. Remember the username and password that you specified during the installation process? That’s what you will use to sign in at your local site homepage, which will then bring you to:

Page 16: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 16

Install Drupal 101: “Acquia Dev Desktop” way

Page 17: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 17

Install Drupal 101: “Acquia Dev Desktop” way

Page 18: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 18

Install Drupal 101: the “Local Host” way

• Why install Drupal locally (meaning you use a local host for Drupal) when it’s more complicated than the Acquia Dev Desktop way?

• Well, it’s simply because you can actually build something without having to rely on 3rd party services to provide the platform for you, you will see changes instantly when developing on your local host and it is free to do so.

Page 19: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 19

Install Drupal 101: the “Local Host” way

#1: Getting ‘Acquia Drupal’

•First things first, you need the Acquia Drupal folder. You can get this by going to https://www.acquia.com/downloads and downloading it.

Page 20: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 20

Install Drupal 101: “Acquia Dev Desktop” way

Page 21: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 21

Install Drupal 101: the “Local Host” way

#2: Getting a software to help you run your ‘Acquia Drupal’

•You need to get three servers that will help you to run Drupal

• Namely an “*AMP stack” that consists of Apache, MySQL and PHP servers

• Don’t worry, I don’t exactly know what these three servers are and can’t programme with them either, but they are what you need to run Drupal

•With the Acquia Dev Desktop, these servers are already included but when you install Drupal locally, you need to get these servers.

Page 22: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 22

Install Drupal 101: the “Local Host” way

#2: Getting a software to help you run your ‘Acquia Drupal’

•Lucky for us, some awesome companies have designed a software to install all three of these servers at one time! We have XAMPP, WAMP and MAMP.

• XAMPP can be installed across all platforms – Windows, Mac & Linux

• WAMP is specifically for Windows• MAMP is specifically for MAC - As I am currently using a

MAC, I used MAMP to install Drupal locally on my computer.

Page 23: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 23

Install Drupal 101: the “Local Host” way

#3: Combining your ‘Acquia Drupal’ and your new software

• After downloading the MAMP software (the free one is the one on the left, with the grey MAMP logo), I unzipped the file and installed it on my computer, the same way any new software is installed

• I would think this is similar with the installation of XAMPP and WAMP as well. You can then navigate to open your newly installed software, MAMP in this case for me.

Page 24: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 24

Install Drupal 101: “Acquia Dev Desktop” way

Page 25: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 25

Install Drupal 101: the “Local Host” way

#3: Combining your ‘Acquia Drupal’ and your new software

• At this point, you are armed with the Acquia Drupal download that is zipped (please do unzip it) and your awesome software with your servers (be it XAMPP, WAMP or MAMP). What we have to do now is “combine” the two together by doing the following:

Page 26: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 26

Install Drupal 101: the “Local Host” way

#3: Combining your ‘Acquia Drupal’ and your new software

1. Find where your MAMP/XAMPP/WAMP programme folder is

• Double-click on the folder and you will find many different folders and files inside the main programme file. Find the “htdocs” folder and open the folder.

Page 27: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 27

Install Drupal 101: “Acquia Dev Desktop” way

Page 28: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 28

Install Drupal 101: the “Local Host” way

#3: Combining your ‘Acquia Drupal’ and your new software

2. Acquia Drupal into “htdocs”• Don’t worry about the “htdcos” folder being blank;

this is where you copy and paste your unzipped Acquia Drupal folder.

Page 29: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 29

Install Drupal 101: “Acquia Dev Desktop” way

Page 30: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 30

Install Drupal 101: “Acquia Dev Desktop” way

Page 31: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 31

Install Drupal 101: the “Local Host” way

#4: Running your servers through your Control Panel

• Now that you have combined both ‘Acquia Drupal’ and “htdocs”, go back to your launched Control Panel and click on “Start Servers”.

Page 32: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 32

Install Drupal 101: the “Local Host” way

#4: Running your servers through your Control Panel

• When you start your servers for the first time, a new page will open up. For MAMP, this is what happens:

Page 33: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 33

Install Drupal 101: “Acquia Dev Desktop” way

Page 34: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 34

Install Drupal 101: the “Local Host” way

#4: Running your servers through your Control Panel

• This means all is in working order when you get to this, and what MAMP is doing for you is running everything that you need to communicate from the server and to the server.

• Subsequently, when you start your servers again and would like to go to the above Start Page, you just have to click “Open start page” in your Control Panel.

Page 35: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 35

Install Drupal 101: the “Local Host” way

#5: Setting up your database

• On the start page, find the “phpMyAdmin” button and click on it to be brought to your phpMyAdmin page.

Page 36: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 36

Install Drupal 101: “Acquia Dev Desktop” way

Page 37: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 37

Install Drupal 101: the “Local Host” way

#5: Setting up your database

• Click on “Databases” on the menu near the top of the page, and you will be brought to another page where you can create a new database.

• You can name your database anything you want (highly recommended to add the word “Drupal” in the name of your database) but for this example, I will call mine “drupal_20130405″.

Page 38: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 38

Install Drupal 101: the “Local Host” way

#5: Setting up your database

• When you create your database, ensure that you choose “utf8_general_ci” in the dropdown menu next to where you type in the name of your database.

• Press “create” and you will see your new database created

Page 39: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 39

Install Drupal 101: “Acquia Dev Desktop” way

Page 40: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 40

Install Drupal 101: “Acquia Dev Desktop” way

Page 41: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 41

Install Drupal 101: the “Local Host” way

#6: Going to your Local Site

• To get to your local site, all you need to do is go to your local host. So copy and paste your local host address into a new tab/window:

Page 42: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 42

Install Drupal 101: “Acquia Dev Desktop” way

Page 43: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 43

Install Drupal 101: the “Local Host” way

#6: Going to your Local Site

• And you will be brought to:

Page 44: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 44

Install Drupal 101: “Acquia Dev Desktop” way

Page 45: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 45

Install Drupal 101: the “Local Host” way

#6: Going to your Local Site

• Click on your Drupal link there, and you will be brought to a configuration page for Drupal.

Page 46: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 46

Install Drupal 101: the “Local Host” way

#7: Configuring your Database

• For the first 3 steps, you just have to choose a “Standard” profile to install, choose the language (it comes default in ‘English’ for now) and make sure that you have right requirements to install Drupal. If you have any problems, you can always check out some help here.

Page 47: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 47

Install Drupal 101: the “Local Host” way

#7: Configuring your Database

• As I have previously filled in my profile, chose my language and verified my requirements, I am brought straight to the database configuration page.

Page 48: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 48

Install Drupal 101: “Acquia Dev Desktop” way

Page 49: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 49

Install Drupal 101: the “Local Host” way

#7: Configuring your Database

• When you get to this same page as me, leave the top option as “MySQL, MariaDB, or equivalent” and fill in the blanks on the page.

• The “Datebase name” is the same name as the database you created earlier in the phpMyAdmin page.

Page 50: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 50

Install Drupal 101: the “Local Host” way

#7: Configuring your Database

• The name of my database, as per the picture and description above, is “drupal_20130405″.

• For the “Database username” and “Datebase password”, you can just put ‘root.

• Do note that this is not the username for your Drupal account or to administer Drupal, but rather, just for your database that is currently based on MAMP if you are doing the same installation as I am.

Page 51: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 51

Install Drupal 101: the “Local Host” way

#7: Configuring your Database

• Save it and continue. You will then get to a progress bar and if there are no errors or problems, you will get to the next page where you configure your site.

Page 52: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 52

Install Drupal 101: “Acquia Dev Desktop” way

Page 53: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 53

Install Drupal 101: the “Local Host” way

#8: Configuring your Site

• When you get to this configuration page, all you have to do is fill in the various information and create your user account – now this is the one you will use as your Drupal administration account. This first user account will also be automatically given all administration permissions.

Page 54: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

54

Install Drupal 101: “Acquia Dev Desktop” way

Page 55: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 55

Install Drupal 101: the “Local Host” way

#8: Configuring your Site

• Site Information• Site name: Pick whichever name you want for your

site. You can always change this later on.• Site email address: Drupal sends out notifications

such as registration information so type in an email address you want associated with this.• This can be the same email that you use to maintain the

site. It is entirely up to you.• Acquia subscription identifier & Acquia subscription

key: You can leave this alone if you don’t have either of these.

Page 56: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

56

Install Drupal 101: “Acquia Dev Desktop” way

Page 57: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 57

Install Drupal 101: the “Local Host” way

#8: Configuring your Site

• Site Maintenance Account• Username, Email address, Password: This is all up to

you. As mentioned above, this can be the same email address as the one you use for your site email address.

• Server Settings• Default country & Default time zone: Select whichever

is most relevant for you. For me, it’s Singapore with a +8 timezone.

Page 58: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

58

Install Drupal 101: “Acquia Dev Desktop” way

Page 59: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 59

Install Drupal 101: the “Local Host” way

#8: Configuring your Site

• Update NotificationsCheck both of these boxes if you wish to receive

Drupal alerts for updates. Although, if you do have a restricted Internet connection, you might want to uncheck the boxes and test them later.

• Save and continue…

Page 60: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 60

Install Drupal 101: the “Local Host” way

Page 61: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 61

Install Drupal 101: the “Local Host” way

#9: You’re Done!!!

• When you click on “Visit your new site”…

Page 62: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 62

Install Drupal 101: the “Local Host” way

Page 63: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 63

Install Drupal 101: the “Local Host” way

Page 64: How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl

04/10/23 64

How to Install Drupal 101

• I would love to hear from you about my little guide! Was it easy enough? Was it too hard? Is there anything that I can do better or faster? What else do you want to find out next?

• Feel free to email me anytime at [email protected]. Till next week!

Musings of a Drupal Girl – How to Install Drupal 101