Turnkey LAMP appliance with Drupal 6 installed

PhpMyAdmin

Exporting a database with PHPMyAdmin – drupal dot org

Turnkey Linux Lamp VM

Set root password

# passwd

Add User Craig and set password

# useradd -m craig

# passwd craig

Sudo for User Craig

# visudo # uncomment the last line to enable group sudo

# usermod -a -G sudo craig # add user craig to secondary group sudo

Private Key SSH from desktop dev box

$ ssh-copy-id craig@192.168.0.167

Backup VM

F:\Linux downloads\Turnkey Lamp\VM archive\turnkey lamp 20100709 1415 user craig sudo ssh.zip

MySQL

Login to phpMyAdmin as root, no password

phpMyAdmin on Turnkey Lamp

Set a password

Create database and user using PHPMyAdmin

user: craigdb
password: bananadb

create database: craig_drupal  collation: utf8_general_ci

Backup VM

F:\Linux downloads\Turnkey Lamp\VM archive\turnkey lamp 20100709 2140 db craig_drupal.zip

drush

$ sudo apt-get install php5-cli

http://drupal.org/project/drush

$ wget http://ftp.drupal.org/files/projects/drush-6.x-3.1.tar.gz

Unpack the drush tarball in home folder.  Create an alias to ~/drush/drush

Drupal 6

Apache 2 on Ubuntu

mkdir /var/www/drupal

# a2enmod rewrite
# /etc/init.d/apache2 force-reload

# wget http://ftp.drupal.org/files/projects/drupal-6.17.tar.gz

Unpack to /var/www/, then rename to /var/www/drupal

# chown -hR root:root drupal

/var/www/drupal/sites/default
# mkdir files
# chmod 777 files

# cp default.settings.php settings.php
# chmod 666 settings.php

Drupal Site

administrator account: drupaladmin
administrator password: password

root@lamp:/var/www/drupal/sites/default# chmod 644 settings.php

Backup VM

F:\Linux downloads\Turnkey Lamp\VM archive\turnkey lamp 20100710 1330 drupal installed.zip

Setup Crontab

Add line to /etc/crontab

0 * * * * root wget -O – -q -t 1 http://localhost/cron.php

Added Some Drupal Modules

advanced_help
cck
ctools
panels
views
views_bonus
views_bulk_operations

Backup VM

F:\Linux downloads\Turnkey Lamp\VM archive\turnkey lamp 20100711 1730 add drupal modules.zip

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: