Skip to content

Instantly share code, notes, and snippets.

@nhufinney
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save nhufinney/446dc59e4e3594ceadf9 to your computer and use it in GitHub Desktop.

Select an option

Save nhufinney/446dc59e4e3594ceadf9 to your computer and use it in GitHub Desktop.

Revisions

  1. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion xampp_drupal_ubuntu.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ##HOW TO: Setup XAMPP and Drupal on Ubuntu

    Here's how I got my personal machine ready to develop with Drupal for the 2015 [Epicodus](https://www.learnhowtoprogram.com/table-of-contents) PHP Course Curriculum
    In this gist, I will walk you throughthe steps I took to get my personal machine ready to develop with Drupal for the 2015 [Epicodus](https://www.learnhowtoprogram.com/table-of-contents) PHP Course Curriculum
    <br />
    <br />
    ###Prerequisites:
  2. @monkecheese monkecheese renamed this gist May 13, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion xampp_drupal_ubuntul.md
    Original file line number Diff line number Diff line change
    @@ -105,4 +105,6 @@ sudo cp sites/default/default.settings.php sites/default/settings.php
    chmod -R a+w sites/default
    ```

    7) Point your browser to http://localhost/myProjectName and walk through the Drupal Installation Process. Then...BAM! You're on Easy Street, kid. Nice work!
    7) Point your browser to [http://localhost/myProjectName](http://localhost/myProjectName) and walk through the Drupal Installation Process. Then...BAM! You're on Easy Street, kid. Nice work!

    In another Gist, I will walk you through an alternate way of installing and developing with Drupal without XAMPP.
  4. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion xampp_drupal_ubuntul.md
    Original file line number Diff line number Diff line change
    @@ -30,7 +30,7 @@ sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
    sudo ./xampp-linux-x64-5.6.8-0-installer.run
    ```

    5) Follow the on-screen instructions and check the box at the end of the install that says ***Launch XAMPP*** to check that everything installed correctly. If the page doesn't automatically open, go into your browser and type into the URL Address bar: [http://localhost/xampp](http://localhost/xampp) -- If you see a screen that says ***Welcome to XAMPP***, then congrats! You completed Step 1!
    5) Follow the on-screen instructions and check the box at the end of the install that says *Launch XAMPP* to check that everything installed correctly. If the page doesn't automatically open, go into your browser and type into the URL Address bar: [http://localhost/xampp](http://localhost/xampp) -- If you see a screen that says *Welcome to XAMPP*, then congrats! You completed Step 1!


    **PRO TIPS**:
  5. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions xampp_drupal_ubuntul.md
    Original file line number Diff line number Diff line change
    @@ -30,7 +30,7 @@ sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
    sudo ./xampp-linux-x64-5.6.8-0-installer.run
    ```

    5) Follow the on-screen instructions and check the box at the end of the install that says "Launch XAMPP" to check that everything installed correctly. If the page doesn't automatically open, go into your browser and type into the URL Address bar: http://localhost/xampp -- If you see a screen that says Welcome to XAMPP, then congrats! You completed Step 1!
    5) Follow the on-screen instructions and check the box at the end of the install that says ***Launch XAMPP*** to check that everything installed correctly. If the page doesn't automatically open, go into your browser and type into the URL Address bar: [http://localhost/xampp](http://localhost/xampp) -- If you see a screen that says ***Welcome to XAMPP***, then congrats! You completed Step 1!


    **PRO TIPS**:
    @@ -67,11 +67,11 @@ exit 0

    ###Step 2 - Create the Drupal Database

    1) In your browser, navigate to http://localhost/xampp and click on phpMyAdmin in the left navigation column under "Tools"
    1) In your browser, navigate to [http://localhost/xampp](http://localhost/xampp) and click on *phpMyAdmin* in the left navigation column under **Tools**

    2) Now that you're in phpMyAdmin, click on "New" in the left navigation column. Then in the main window, enter a database name, choose *utf8-general-ci* in the Collation dropdown, and click the "Create" button
    2) Now that you're in phpMyAdmin, click on **New** in the left navigation column. Then in the main window, enter a database name, choose *utf8-general-ci* in the Collation dropdown, and click the **Create** button

    3) Once created, click on the "Privileges" tab, then click on "Add a user." From here we enter a name for the user, select "Local" from the 2nd row dropdown, enter a password, and re-enter it. Finally, check the box that says "Check All" next to Global Privileges, then click the "Go" button. That'll be it in phpMyAdmin, for now...
    3) Once created, click on the **Privileges** tab, then click on **Add a user**. From here we enter a name for the user, select **Local** from the 2nd row dropdown, enter a password, and re-enter it. Finally, check the box that says **Check All** next to Global Privileges, then click the **Go** button. That'll be it in *phpMyAdmin*, for now...


    ###Step 3 - Install Drupal
    @@ -88,13 +88,13 @@ wget https://www.drupal.org/files/projects/drupal-7.36.tar.gz
    tar -zxvf drupal-7.36.tar.gz
    ```

    4) Make a project directory (name it what you'd like) and copy Drupal into project directory:
    4) Make a project directory (name it whatever you'd like) and copy Drupal into project directory:
    ```
    mkdir /opt/lampp/htdocs/myProjectName
    sudo cp -r drupal-7.36/* /opt/lampp/htdocs/myProjectName
    ```

    5) Next, in the sites/default directory of drupal, copy the default.settings.php file and rename it to settings.php:
    5) Next, in the *sites/default* directory of drupal, copy the *default.settings.php* file and rename it to settings.php:
    ```
    cd /opt/lampp/htdocs/myProjectName
    sudo cp sites/default/default.settings.php sites/default/settings.php
  6. @monkecheese monkecheese renamed this gist May 13, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion drupal_install.md
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,8 @@ sudo /opt/lampp/lampp start
    * To start XAMPP **automatically** when you boot up your system, type this and add "/opt/lampp/lampp start" to the second to last line of the document:
    ```
    sudo nano /etc/rc.local
    ```
    ```
    #! /bin/ bash
    #
    # rc.local
  8. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion drupal_install.md
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,7 @@ sudo /opt/lampp/lampp start
    * To start XAMPP **automatically** when you boot up your system, type this and add "/opt/lampp/lampp start" to the second to last line of the document:
    ```
    sudo nano /etc/rc.local
    ```
    #! /bin/ bash
    #
    # rc.local
  9. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 49 additions and 49 deletions.
    98 changes: 49 additions & 49 deletions drupal_install.md
    Original file line number Diff line number Diff line change
    @@ -10,98 +10,98 @@ Here's how I got my personal machine ready to develop with Drupal for the 2015 [
    <br />
    ###Step 1 - Install and Setup XAMPP

    1) Open Terminal (Ctrl+Alt+T) and change directories to Desktop:
    1) Open Terminal (Ctrl+Alt+T) and change directories to Desktop:
    ```
    cd ~/Desktop
    ```

    2) Now we need to download XAMPP. Note that we are downloading the 64-bit version. For the 32-bit version, remove "-x64" from the line below. In terminal, type the following:
    ```
    wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.8/xampp-linux-x64-5.6.8-0-installer.run
    ```
    3) After that, we need to change the package installer into an executable so we can run it:

    3) After that, we need to change the package installer into an executable so we can run it:
    ```
    sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
    ```
    <br />
    4. Finally, we run the installer:

    4) Finally, we run the installer:
    ```
    sudo ./xampp-linux-x64-5.6.8-0-installer.run
    ```
    <br />
    5. Follow the on-screen instructions and check the box at the end of the install that says "Launch XAMPP" to check that everything installed correctly. If the page doesn't automatically open, go into your browser and type into the URL Address bar: http://localhost/xampp -- If you see a screen that says Welcome to XAMPP, then congrats! You completed Step 1!

    6. **PRO TIPS**:
    * To **stop** XAMPP Service, type this in the console:
    5) Follow the on-screen instructions and check the box at the end of the install that says "Launch XAMPP" to check that everything installed correctly. If the page doesn't automatically open, go into your browser and type into the URL Address bar: http://localhost/xampp -- If you see a screen that says Welcome to XAMPP, then congrats! You completed Step 1!


    **PRO TIPS**:
    * To **stop** XAMPP Service, type this in the console:
    ```
    sudo /opt/lampp/lampp stop
    ```
    <br />
    * To **start** XAMPP Service, type this in the console:
    ```

    * To **start** XAMPP Service, type this in the console:
    ```
    sudo /opt/lampp/lampp start
    ```
    <br />
    * To start XAMPP **automatically** when you boot up your system, type this and add "/opt/lampp/lampp start" to the second to last line of the document:
    ```

    * To start XAMPP **automatically** when you boot up your system, type this and add "/opt/lampp/lampp start" to the second to last line of the document:
    ```
    sudo nano /etc/rc.local
    ```
    <br />
    ```
    #! /bin/ bash
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure que the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    /opt/lampp/lampp start
    exit 0
    ```
    ```
    #! /bin/ bash
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure que the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    /opt/lampp/lampp start
    exit 0
    ```
    <br />
    ###Step 2 - Create the Drupal Database
    1. In your browser, navigate to http://localhost/xampp and click on phpMyAdmin in the left navigation column under "Tools"
    1) In your browser, navigate to http://localhost/xampp and click on phpMyAdmin in the left navigation column under "Tools"
    2. Now that you're in phpMyAdmin, click on "New" in the left navigation column. Then in the main window, enter a database name, choose *utf8-general-ci* in the Collation dropdown, and click the "Create" button
    2) Now that you're in phpMyAdmin, click on "New" in the left navigation column. Then in the main window, enter a database name, choose *utf8-general-ci* in the Collation dropdown, and click the "Create" button
    3) Once created, click on the "Privileges" tab, then click on "Add a user." From here we enter a name for the user, select "Local" from the 2nd row dropdown, enter a password, and re-enter it. Finally, check the box that says "Check All" next to Global Privileges, then click the "Go" button. That'll be it in phpMyAdmin, for now...
    3. Once created, click on the "Privileges" tab, then click on "Add a user." From here we enter a name for the user, select "Local" from the 2nd row dropdown, enter a password, and re-enter it. Finally, check the box that says "Check All" next to Global Privileges, then click the "Go" button. That'll be it in phpMyAdmin, for now...
    <br />
    ###Step 3 - Install Drupal
    1. Decide. You can choose to follow along with the Epicodus method [here](https://www.learnhowtoprogram.com/lessons/creating-a-drupal-project-repository-weekend-homework), or follow me down the rabbit hole...
    1) Decide. You can choose to follow along with the Epicodus method [here](https://www.learnhowtoprogram.com/lessons/creating-a-drupal-project-repository-weekend-homework), or follow me down the rabbit hole...
    2. Make sure you're still in the Desktop directory, then in console type:
    2) Make sure you're still in the Desktop directory, then in console type:
    ```
    wget https://www.drupal.org/files/projects/drupal-7.36.tar.gz
    ```
    <br />
    3. Now, extract it:
    3) Now, extract it:
    ```
    tar -zxvf drupal-7.36.tar.gz
    ```
    <br />
    4. Make a project directory (name it what you'd like) and copy Drupal into project directory:
    4) Make a project directory (name it what you'd like) and copy Drupal into project directory:
    ```
    mkdir /opt/lampp/htdocs/myProjectName
    sudo cp -r drupal-7.36/* /opt/lampp/htdocs/myProjectName
    ```
    <br />
    5. Next, in the sites/default directory of drupal, copy the default.settings.php file and rename it to settings.php:
    5) Next, in the sites/default directory of drupal, copy the default.settings.php file and rename it to settings.php:
    ```
    cd /opt/lampp/htdocs/myProjectName
    sudo cp sites/default/default.settings.php sites/default/settings.php
    ```
    <br />
    6. Now, lets give the server write privileges to the sites/default directory:
    6) Now, lets give the server write privileges to the sites/default directory:
    ```
    chmod -R a+w sites/default
    ```
    <br />
    7. Point your browser to http://localhost/myProjectName and walk through the Drupal Installation Process. Then...BAM! You're on Easy Street, kid. Nice work!
    7) Point your browser to http://localhost/myProjectName and walk through the Drupal Installation Process. Then...BAM! You're on Easy Street, kid. Nice work!
  10. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions drupal_install.md
    Original file line number Diff line number Diff line change
    @@ -10,16 +10,15 @@ Here's how I got my personal machine ready to develop with Drupal for the 2015 [
    <br />
    ###Step 1 - Install and Setup XAMPP

    1. Open Terminal (Ctrl+Alt+T) and change directories to Desktop:
    1) Open Terminal (Ctrl+Alt+T) and change directories to Desktop:
    ```
    cd ~/Desktop
    ```
    2. Now we need to download XAMPP. Note that we are downloading the 64-bit version. For the 32-bit version, remove "-x64" from the line below. In terminal, type the following:
    2) Now we need to download XAMPP. Note that we are downloading the 64-bit version. For the 32-bit version, remove "-x64" from the line below. In terminal, type the following:
    ```
    wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.8/xampp-linux-x64-5.6.8-0-installer.run
    ```
    <br />
    3. After that, we need to change the package installer into an executable so we can run it:
    3) After that, we need to change the package installer into an executable so we can run it:
    ```
    sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
    ```
  11. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions drupal_install.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #HOW TO: Setup XAMPP and Drupal on Ubuntu
    ##HOW TO: Setup XAMPP and Drupal on Ubuntu

    Here's how I got my personal machine ready to develop with Drupal for the 2015 [Epicodus](https://www.learnhowtoprogram.com/table-of-contents) PHP Course Curriculum
    <br />
    @@ -10,12 +10,11 @@ Here's how I got my personal machine ready to develop with Drupal for the 2015 [
    <br />
    ###Step 1 - Install and Setup XAMPP

    1. Open Terminal (Ctrl+Alt+T) and change directories to Desktop:
    1. Open Terminal (Ctrl+Alt+T) and change directories to Desktop:
    ```
    cd ~/Desktop
    ```
    <br />
    2. Now we need to download XAMPP. Note that we are downloading the 64-bit version. For the 32-bit version, remove "-x64" from the line below. In terminal, type the following:
    2. Now we need to download XAMPP. Note that we are downloading the 64-bit version. For the 32-bit version, remove "-x64" from the line below. In terminal, type the following:
    ```
    wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.8/xampp-linux-x64-5.6.8-0-installer.run
    ```
  12. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 31 additions and 17 deletions.
    48 changes: 31 additions & 17 deletions drupal_install.md
    Original file line number Diff line number Diff line change
    @@ -11,28 +11,42 @@ Here's how I got my personal machine ready to develop with Drupal for the 2015 [
    ###Step 1 - Install and Setup XAMPP

    1. Open Terminal (Ctrl+Alt+T) and change directories to Desktop:
    ```cd ~/Desktop
    ```
    cd ~/Desktop
    ```
    <br />
    2. Now we need to download XAMPP. Note that we are downloading the 64-bit version. For the 32-bit version, remove "-x64" from the line below. In terminal, type the following:
    ```wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.8/xampp-linux-x64-5.6.8-0-installer.run
    ```
    wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.8/xampp-linux-x64-5.6.8-0-installer.run
    ```
    <br />
    3. After that, we need to change the package installer into an executable so we can run it:
    ```sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
    ```
    sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
    ```
    <br />
    4. Finally, we run the installer:
    ```sudo ./xampp-linux-x64-5.6.8-0-installer.run
    ```
    sudo ./xampp-linux-x64-5.6.8-0-installer.run
    ```
    <br />
    5. Follow the on-screen instructions and check the box at the end of the install that says "Launch XAMPP" to check that everything installed correctly. If the page doesn't automatically open, go into your browser and type into the URL Address bar: http://localhost/xampp -- If you see a screen that says Welcome to XAMPP, then congrats! You completed Step 1!

    6. **PRO TIPS**:
    * To **stop** XAMPP Service, type this in the console:
    ```sudo /opt/lampp/lampp stop
    <br />
    ```
    sudo /opt/lampp/lampp stop
    ```
    <br />
    * To **start** XAMPP Service, type this in the console:
    ```sudo /opt/lampp/lampp start
    ```
    sudo /opt/lampp/lampp start
    ```
    <br />
    * To start XAMPP **automatically** when you boot up your system, type this and add "/opt/lampp/lampp start" to the second to last line of the document:
    ```sudo nano /etc/rc.local
    ```
    sudo nano /etc/rc.local
    ```
    <br />
    ```
    #! /bin/ bash
    @@ -69,27 +83,27 @@ Here's how I got my personal machine ready to develop with Drupal for the 2015 [
    ```
    wget https://www.drupal.org/files/projects/drupal-7.36.tar.gz
    ```
    <br />
    3. Now, extract it:
    ```
    tar -zxvf drupal-7.36.tar.gz
    ```
    <br />
    4. Make a project directory (name it what you'd like) and copy Drupal into project directory:
    ```
    mkdir /opt/lampp/htdocs/myProjectName
    sudo cp -r drupal-7.36/* /opt/lampp/htdocs/myProjectName
    ```
    <br />
    5. Next, in the sites/default directory of drupal, copy the default.settings.php file and rename it to settings.php:
    ```
    cd /opt/lampp/htdocs/myProjectName
    sudo cp sites/default/default.settings.php sites/default/settings.php
    ```
    <br />
    6. Now, lets give the server write privileges to the sites/default directory:
    ```
    chmod -R a+w sites/default
    ```
    <br />
    7. Point your browser to http://localhost/myProjectName and walk through the Drupal Installation Process. Then...BAM! You're on Easy Street, kid. Nice work!
  13. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 5 additions and 15 deletions.
    20 changes: 5 additions & 15 deletions drupal_install.md
    Original file line number Diff line number Diff line change
    @@ -17,32 +17,22 @@ Here's how I got my personal machine ready to develop with Drupal for the 2015 [
    ```wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.8/xampp-linux-x64-5.6.8-0-installer.run
    3. After that, we need to change the package installer into an executable so we can run it:
    ```
    sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
    ```
    ```sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
    4. Finally, we run the installer:
    ```
    sudo ./xampp-linux-x64-5.6.8-0-installer.run
    ```
    ```sudo ./xampp-linux-x64-5.6.8-0-installer.run
    5. Follow the on-screen instructions and check the box at the end of the install that says "Launch XAMPP" to check that everything installed correctly. If the page doesn't automatically open, go into your browser and type into the URL Address bar: http://localhost/xampp -- If you see a screen that says Welcome to XAMPP, then congrats! You completed Step 1!
    6. **PRO TIPS**:
    * To **stop** XAMPP Service, type this in the console:
    ```
    sudo /opt/lampp/lampp stop
    ```
    ```sudo /opt/lampp/lampp stop
    <br />
    * To **start** XAMPP Service, type this in the console:
    ```
    sudo /opt/lampp/lampp start
    ```
    ```sudo /opt/lampp/lampp start
    <br />
    * To start XAMPP **automatically** when you boot up your system, type this and add "/opt/lampp/lampp start" to the second to last line of the document:
    ```
    sudo nano /etc/rc.local
    ```
    ```sudo nano /etc/rc.local
    <br />
    ```
    #! /bin/ bash
  14. @monkecheese monkecheese revised this gist May 13, 2015. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions drupal_install.md
    Original file line number Diff line number Diff line change
    @@ -10,25 +10,25 @@ Here's how I got my personal machine ready to develop with Drupal for the 2015 [
    <br />
    ###Step 1 - Install and Setup XAMPP

    1. Open Terminal (Ctrl+Alt+T) and change directories to Desktop:
    1. Open Terminal (Ctrl+Alt+T) and change directories to Desktop:
    ```cd ~/Desktop
    2. Now we need to download XAMPP. Note that we are downloading the 64-bit version. For the 32-bit version, remove "-x64" from the line below. In terminal, type the following:
    2. Now we need to download XAMPP. Note that we are downloading the 64-bit version. For the 32-bit version, remove "-x64" from the line below. In terminal, type the following:
    ```wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.8/xampp-linux-x64-5.6.8-0-installer.run
    3. After that, we need to change the package installer into an executable so we can run it:
    3. After that, we need to change the package installer into an executable so we can run it:
    ```
    sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
    ```
    4. Finally, we run the installer:
    4. Finally, we run the installer:
    ```
    sudo ./xampp-linux-x64-5.6.8-0-installer.run
    ```
    5. Follow the on-screen instructions and check the box at the end of the install that says "Launch XAMPP" to check that everything installed correctly. If the page doesn't automatically open, go into your browser and type into the URL Address bar: http://localhost/xampp -- If you see a screen that says Welcome to XAMPP, then congrats! You completed Step 1!
    5. Follow the on-screen instructions and check the box at the end of the install that says "Launch XAMPP" to check that everything installed correctly. If the page doesn't automatically open, go into your browser and type into the URL Address bar: http://localhost/xampp -- If you see a screen that says Welcome to XAMPP, then congrats! You completed Step 1!
    6. **PRO TIPS**:
    6. **PRO TIPS**:
    * To **stop** XAMPP Service, type this in the console:
    ```
    sudo /opt/lampp/lampp stop
  15. @monkecheese monkecheese created this gist May 13, 2015.
    105 changes: 105 additions & 0 deletions drupal_install.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,105 @@
    #HOW TO: Setup XAMPP and Drupal on Ubuntu

    Here's how I got my personal machine ready to develop with Drupal for the 2015 [Epicodus](https://www.learnhowtoprogram.com/table-of-contents) PHP Course Curriculum
    <br />
    <br />
    ###Prerequisites:
    1. A Computer - If you don't have one, how the...what?! ***face palm***
    2. [Ubuntu](http://www.ubuntu.com/download) - The OS

    <br />
    ###Step 1 - Install and Setup XAMPP

    1. Open Terminal (Ctrl+Alt+T) and change directories to Desktop:
    ```cd ~/Desktop
    2. Now we need to download XAMPP. Note that we are downloading the 64-bit version. For the 32-bit version, remove "-x64" from the line below. In terminal, type the following:
    ```wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.8/xampp-linux-x64-5.6.8-0-installer.run
    3. After that, we need to change the package installer into an executable so we can run it:
    ```
    sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
    ```
    4. Finally, we run the installer:
    ```
    sudo ./xampp-linux-x64-5.6.8-0-installer.run
    ```
    5. Follow the on-screen instructions and check the box at the end of the install that says "Launch XAMPP" to check that everything installed correctly. If the page doesn't automatically open, go into your browser and type into the URL Address bar: http://localhost/xampp -- If you see a screen that says Welcome to XAMPP, then congrats! You completed Step 1!
    6. **PRO TIPS**:
    * To **stop** XAMPP Service, type this in the console:
    ```
    sudo /opt/lampp/lampp stop
    ```
    <br />
    * To **start** XAMPP Service, type this in the console:
    ```
    sudo /opt/lampp/lampp start
    ```
    <br />
    * To start XAMPP **automatically** when you boot up your system, type this and add "/opt/lampp/lampp start" to the second to last line of the document:
    ```
    sudo nano /etc/rc.local
    ```
    <br />
    ```
    #! /bin/ bash
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure que the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    /opt/lampp/lampp start
    exit 0
    ```

    <br />
    ###Step 2 - Create the Drupal Database

    1. In your browser, navigate to http://localhost/xampp and click on phpMyAdmin in the left navigation column under "Tools"

    2. Now that you're in phpMyAdmin, click on "New" in the left navigation column. Then in the main window, enter a database name, choose *utf8-general-ci* in the Collation dropdown, and click the "Create" button

    3. Once created, click on the "Privileges" tab, then click on "Add a user." From here we enter a name for the user, select "Local" from the 2nd row dropdown, enter a password, and re-enter it. Finally, check the box that says "Check All" next to Global Privileges, then click the "Go" button. That'll be it in phpMyAdmin, for now...

    <br />
    ###Step 3 - Install Drupal

    1. Decide. You can choose to follow along with the Epicodus method [here](https://www.learnhowtoprogram.com/lessons/creating-a-drupal-project-repository-weekend-homework), or follow me down the rabbit hole...

    2. Make sure you're still in the Desktop directory, then in console type:
    ```
    wget https://www.drupal.org/files/projects/drupal-7.36.tar.gz
    ```

    3. Now, extract it:
    ```
    tar -zxvf drupal-7.36.tar.gz
    ```

    4. Make a project directory (name it what you'd like) and copy Drupal into project directory:
    ```
    mkdir /opt/lampp/htdocs/myProjectName
    sudo cp -r drupal-7.36/* /opt/lampp/htdocs/myProjectName
    ```

    5. Next, in the sites/default directory of drupal, copy the default.settings.php file and rename it to settings.php:
    ```
    cd /opt/lampp/htdocs/myProjectName
    sudo cp sites/default/default.settings.php sites/default/settings.php
    ```

    6. Now, lets give the server write privileges to the sites/default directory:
    ```
    chmod -R a+w sites/default
    ```

    7. Point your browser to http://localhost/myProjectName and walk through the Drupal Installation Process. Then...BAM! You're on Easy Street, kid. Nice work!