Drupal
|
Size: 5291
Comment:
|
Size: 5596
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 42: | Line 42: |
| '''Note:''' To configure bazaar for the latest source: | If you want the latest sources, install bazaar first, if not go to option 1. |
| Line 44: | Line 44: |
| sudo apt-get install bazaar | sudo apt-get install bzr }}} '''Optional:''' To configure bazaar to talk to your launchpad account: Read the [[ http://jpipes.com/index.php?/archives/249-A-Contributors-Guide-to-Launchpad.net-Part-1-Getting-Started.html | Contributors guide to launchpad ]]. Then: {{{ |
| Line 49: | Line 53: |
| Option 1: [Stable] Go to the [[ https://launchpad.net/ubuntu-drupal-releases | Ubuntu-Drupal LP Releases ]] page and grab the latest package. | |
| Line 51: | Line 54: |
| Option 2: [Latest] If you configured bazaar to talk with your LP account, you can run a few short bzr commands. | == Option 1: [Stable] == Go to the [[ https://launchpad.net/ubuntu-drupal-releases | Ubuntu-Drupal LP Releases ]] page, click download and grab the latest package. == Option 2: [Latest] == If you configured bazaar to talk with your LP account, you can run a few short bzr commands. |
| Line 61: | Line 68: |
| Option 3: [Latest Slower] If you haven't configured bazaar to talk with your LP account, you can still use bazaar, but a longer method. | == Option 3: [Latest Slower] == If you haven't configured bazaar to talk with your LP account, you can still use bazaar, but a longer method. |
Basic Assumptions
- This guide assumes you:
- Are not scared of CLI (and using bash)
- Will be using Drupal 6.x
- Have a little experience with websites
- Will be using /var/www for your source
- Will be using yoursite.com to refer to your site
- Were not offended here (we did say basic)
Drupal Installation
Grab the latest release from http://www.drupal.org
- Unpack inside /var/www (Move everything outside the drupal directory)
Create Database
Create a database and database user
- Replace $database and $pass with appropriate values
echo "CREATE DATABASE $database;" | mysql -uroot -p echo "GRANT ALL ON $database.* TO '$database'@'localhost' IDENTIFIED BY '$pass';" | mysql -uroot -p
Create Website Files
The Ubuntu Drupal team suggests using a multisite setup)
cd /var/www/sites
mkdir -p yoursite.com/{files,modules,themes}
cp default/default.settings.php yoursite.com/settings.php
chmod 777 yoursite.com/settings.php yoursite.com/files
Grab module/theme builds
If you want the latest sources, install bazaar first, if not go to option 1.
sudo apt-get install bzr
Optional: To configure bazaar to talk to your launchpad account: Read the Contributors guide to launchpad. Then:
bzr launchpad-login YourLaunchpadID bzr whoami "FirstName LastName <your@email.com>"
Option 1: [Stable]
Go to the Ubuntu-Drupal LP Releases page, click download and grab the latest package.
Option 2: [Latest]
If you configured bazaar to talk with your LP account, you can run a few short bzr commands.
cd /var/www/sites/yoursite.com bzr branch lp:ubuntu-drupal-openid modules/openid bzr branch lp:ubuntu-drupal-launchpad modules/openid-launchpad bzr branch lp:ubuntu-drupal-teams modules/openid-teams bzr branch lp:drupal-planet modules/planet bzr branch lp:ubuntu-drupal-theme themes/ubuntu-drupal
Option 3: [Latest Slower]
If you haven't configured bazaar to talk with your LP account, you can still use bazaar, but a longer method.
cd /var/www/sites/yoursite.com bzr branch https://code.launchpad.net/~ubuntu-drupal-modules/ubuntu-drupal-openid/6.x modules/openid bzr branch https://code.launchpad.net/~ubuntu-drupal-modules/ubuntu-drupal-launchpad/6.x modules/openid-launchpad bzr branch https://code.launchpad.net/~ubuntu-drupal-modules/ubuntu-drupal-teams/6.x modules/openid-teams bzr branch https://code.launchpad.net/~ubuntu-drupal-modules/drupal-planet/6.x modules/planet bzr branch https://code.launchpad.net/~ubuntu-drupal-themes/ubuntu-drupal-theme/6.x themes/ubuntu-drupal
Loopback
Create entry in hosts file for loopback
echo "127.0.0.1 yoursite.com" >> /etc/hosts
Finish Installation
- Go to yoursite.com
- Perform a standard installation
- "Install Drupal in Language"
- Enter details from "Create Database" section"
- Toss in standard info
- Click "You may now visit your new site."
- Clean up permissions
- chmod 774 /var/www/sites/yoursite.com/*
Setup Site
- Go to yoursite.com/admin/build/modules
- Enable "OpenID" in "Core - optional" section
- Enable "Launchpad OpenID" in "Other" section
- Enable "OpenID Teams" in "Other" section
- Enable "Planet" in "Community" section
- Click "Save Configuration"
- Go to yoursite.com/admin/build/themes
- Select "Ubuntu-Loco" theme
- Click "Save Configuration"
- Go to admin/build/blocks
- Move the "Launchpad Login Button" underneath the "User Login" block.
- Disable to login block (after testing)
I usually set the "Block title" to "<none>"
NOTE: Defaults past this point should be acceptable.
- Go to yoursite.com/admin/settings/launchpad
- Verify server is set to production
If you need your trust root added to Launchpad please read our FAQ.
- Go to yoursite.com/admin/settings/openid_teams
- If you have a Launchpad team, you can add it here and assign it to and existing role
- Go to yoursite.com/admin/user/settings
- Under "Launchpad user options"
- These settings are pretty self explanatory. Ask in channel if you don't understand them.
- Under "User registration settings"
- The Ubuntu Drupal team recommends using "Visitors can create accounts and no administrator approval is required."
- If your trust root is verified, there's no need for the "Require e-mail verification [...]" setting
- If your trust root is not verified, you should use the "Require e-mail verification [...]" setting
- Under "Launchpad user options"
Using The Modules
- Log out of the site
- Click the Launchpad Login button
- You will be transferred to Launchpad
- Sign in here
- IF your trust root IS NOT verified, you will need to provide an email address
- Your account will be created and you will be logged in
- Your Launchpad ID will be used as the user name of the account
- Your primary Launchpad email will be used
UbuntuDrupal/Setup/Drupal (last edited 2010-07-04 13:32:47 by 41)