How to create RRR from scratch » History » Version 4
Daniele Barchiesi, 2013-12-02 04:15 PM
1 | 1 | Daniele Barchiesi | h1. How to create RRR from scratch |
---|---|---|---|
2 | 1 | Daniele Barchiesi | |
3 | 3 | Daniele Barchiesi | h2. Setup local Drupal website environment |
4 | 1 | Daniele Barchiesi | |
5 | 1 | Daniele Barchiesi | * Install XAMMP - web stack including database and web server apache |
6 | 1 | Daniele Barchiesi | |
7 | 1 | Daniele Barchiesi | * Download relevant version from http://www.apachefriends.org/en/xampp-macosx.html#849 |
8 | 1 | Daniele Barchiesi | * Run the installer |
9 | 1 | Daniele Barchiesi | * Open XAMPP manager application and start all the servers (MySQL, Apache and ProFTPD) |
10 | 1 | Daniele Barchiesi | |
11 | 1 | Daniele Barchiesi | * Install drush - command line utility to manage Drupal websites |
12 | 1 | Daniele Barchiesi | * Install git - command line utility to manage version control |
13 | 1 | Daniele Barchiesi | * Install drupal and use git to track its repository |
14 | 1 | Daniele Barchiesi | |
15 | 1 | Daniele Barchiesi | * Navigate to your XAMMP/htdocs/ folder |
16 | 1 | Daniele Barchiesi | * Run |
17 | 1 | Daniele Barchiesi | <pre> |
18 | 1 | Daniele Barchiesi | drush dl drupal --package-handler=git_drupalorg |
19 | 1 | Daniele Barchiesi | </pre> |
20 | 1 | Daniele Barchiesi | * Rename the folder with the name of your site site_name |
21 | 1 | Daniele Barchiesi | |
22 | 1 | Daniele Barchiesi | * Create new database |
23 | 1 | Daniele Barchiesi | |
24 | 1 | Daniele Barchiesi | * Run |
25 | 1 | Daniele Barchiesi | <pre> |
26 | 1 | Daniele Barchiesi | mysqladmin -u root -p create dbname |
27 | 1 | Daniele Barchiesi | </pre> |
28 | 1 | Daniele Barchiesi | where dbname is the name of the database and root is the user |
29 | 1 | Daniele Barchiesi | |
30 | 2 | Daniele Barchiesi | * set privileges following instructions in the INSTALL.dbtype file in the Drupal folder (where dbtype is the kind of database used - e.g. MySQL) |
31 | 1 | Daniele Barchiesi | |
32 | 1 | Daniele Barchiesi | * Create new site |
33 | 1 | Daniele Barchiesi | |
34 | 1 | Daniele Barchiesi | * Point a browser to localhost/site_name |
35 | 1 | Daniele Barchiesi | * Follow the installation instructions |
36 | 1 | Daniele Barchiesi | At this point, you have a clean drupal website that can be accessed locally at http://localhost/site_name |
37 | 3 | Daniele Barchiesi | |
38 | 4 | Daniele Barchiesi | h2. Setup remote Drupal website environment. |
39 | 4 | Daniele Barchiesi | These instructions are very similar to the above, with the exception that instead of hosting the website on a local machine, it will be hosted on a remote server. |
40 | 4 | Daniele Barchiesi | * ssh to the remote server |
41 | 4 | Daniele Barchiesi | * Install drush - command line utility to manage Drupal websites |
42 | 4 | Daniele Barchiesi | * Install git - command line utility to manage version control |
43 | 4 | Daniele Barchiesi | * Install drupal and use git to track its repository |
44 | 4 | Daniele Barchiesi | |
45 | 4 | Daniele Barchiesi | * Navigate to your /var/www folder |
46 | 4 | Daniele Barchiesi | * Run |
47 | 4 | Daniele Barchiesi | <pre> |
48 | 4 | Daniele Barchiesi | drush dl drupal |
49 | 4 | Daniele Barchiesi | </pre> |
50 | 4 | Daniele Barchiesi | * Rename the folder with the name of your site site_name |
51 | 4 | Daniele Barchiesi | |
52 | 4 | Daniele Barchiesi | * Create new database |
53 | 4 | Daniele Barchiesi | |
54 | 4 | Daniele Barchiesi | * Run |
55 | 4 | Daniele Barchiesi | <pre> |
56 | 4 | Daniele Barchiesi | mysqladmin -u root -p create dbname |
57 | 4 | Daniele Barchiesi | </pre> |
58 | 4 | Daniele Barchiesi | where dbname is the name of the database and root is the user |
59 | 4 | Daniele Barchiesi | |
60 | 4 | Daniele Barchiesi | * set privileges following instructions in the INSTALL.dbtype file in the Drupal folder (where dbtype is the kind of database used - e.g. MySQL) |
61 | 4 | Daniele Barchiesi | |
62 | 4 | Daniele Barchiesi | * Create new site |
63 | 4 | Daniele Barchiesi | |
64 | 4 | Daniele Barchiesi | * Point a browser to hostname/site_name |
65 | 4 | Daniele Barchiesi | * Follow the installation instructions |
66 | 4 | Daniele Barchiesi | At this point, you have a clean drupal website that can be accessed locally at http://hostname/site_name |
67 | 4 | Daniele Barchiesi | |
68 | 3 | Daniele Barchiesi | h2. Obtain RRR modules and settings |
69 | 3 | Daniele Barchiesi | * Clone the RR repository to a folder of your choice by running the command |
70 | 3 | Daniele Barchiesi | <pre> |
71 | 3 | Daniele Barchiesi | hg clone https://code.soundsoftware.ac.uk/hg/rr-repo |
72 | 3 | Daniele Barchiesi | </pre> |
73 | 3 | Daniele Barchiesi | * Copy the features module rr-repo/sites/all/modules/experiments_list to the modules folder of your website XAMPP/htdocs/site_name/sites/all/modules |
74 | 3 | Daniele Barchiesi | * Enable modules by running |
75 | 3 | Daniele Barchiesi | <pre> |
76 | 3 | Daniele Barchiesi | drush pm-enable experiments_list |
77 | 3 | Daniele Barchiesi | </pre> |