Archive for the ‘Virtual Machine’ Category

Turnkey LAMP appliance with Drupal 6 installed

July 8, 2010

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

Look for examples of moving from VMware to Amazon EC2

May 18, 2010

Oragir – Thursday, July 23, 2009

From VMware to Amazon EC2

Considering Turnkey Linux VM’s as starting point

May 18, 2010

Found this Turnkey Linux page on deploying to Amazon EC2

Launching EC2 images in Amazon EC2

Yes! Drupal Appliance as VMWare or EC2

Drupal 6 Appliance

First Boot of Turnkey Drupal

User craig with sudo

SSH with public key

Bitnami / Acquia Installer Redux. apt-get deps, Reinstall

May 18, 2010

$ sudo apt-get -f install

The following packages will be REMOVED:
acquia-drupal6
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Removing acquia-drupal6 …

Make a list of missing packages

— Package apache2 is not installed.
— Package curl is not installed.
— Package dbconfig-common is not installed.
— Package exim4 is not installed.
— Package virtual-mysql-client is not installed.
— Package mysql-server is not installed.
— Package php5 is not installed.
— Package php5-gd is not installed.
— Package php5-mysql is not installed.
— Package wwwconfig-common is not installed.
— Package xdg-utils is not installed.

2010-0518 10:30 AM Stopping to reconsider

2 goals

  • Local VMware Drupal 6 server
  • Experience with Amazon Ec2 VM as Drupal 6 server

Install / Configure Drupal with Acquia Drupal Installer

May 17, 2010

Acquia Drupal Download

Ubuntu/Debian .deb package

Acquia Drupal Debian/Ubuntu Package

sudo dpkg -i acquia-drupal6_1.2.24.5229.11712_all.deb

Selecting previously deselected package acquia-drupal6.
(Reading database … 13239 files and directories currently installed.)
Unpacking acquia-drupal6 (from acquia-drupal6_1.2.24.5229.11712_all.deb) …
dpkg: dependency problems prevent configuration of acquia-drupal6:
acquia-drupal6 depends on apache2 | httpd; however:
Package apache2 is not installed.
Package httpd is not installed.
acquia-drupal6 depends on curl; however:
Package curl is not installed.
acquia-drupal6 depends on dbconfig-common; however:
Package dbconfig-common is not installed.
acquia-drupal6 depends on exim4 | mail-transport-agent; however:
Package exim4 is not installed.
Package mail-transport-agent is not installed.
acquia-drupal6 depends on mysql-client | mysql-client-5.0 | mysql-client-5.1 | virtual-mysql-client; however:
Package mysql-client is not installed.
Package mysql-client-5.0 is not installed.
Package mysql-client-5.1 is not installed.
Package virtual-mysql-client is not installed.
acquia-drupal6 depends on mysql-server | mysql-server-5.0 | mysql-server-5.1; however:
Package mysql-server is not installed.
Package mysql-server-5.0 is not installed.
Package mysql-server-5.1 is not installed.
acquia-drupal6 depends on php5; however:
Package php5 is not installed.
acquia-drupal6 depends on php5-gd; however:
Package php5-gd is not installed.
acquia-drupal6 depends on php5-mysql; however:
Package php5-mysql is not installed.
acquia-drupal6 depends on wwwconfig-common (>= 0.0.37); however:
Package wwwconfig-common is not installed.
acquia-drupal6 depends on xdg-utils; however:
Package xdg-utils is not installed.
dpkg: error processing acquia-drupal6 (–install):
dependency problems – leaving unconfigured
Errors were encountered while processing:
acquia-drupal6

Set Up Lamp in VMware

May 17, 2010

Grabbed this VMware image

FAQ for Bitnami virtual machines

First Boot up of Bitmani LAMP VM

Tasks from the FAQ

  • Change the password for user bitnami
  • Enable SSHD
  • Arrange ssh login with no password from workstation
  • Change the mysql root password
  • Enable external access to phpMyAdmin

(Not in FAQ) get phpMyAdmin to use the new mysql password

PhpMyAdmin MySql login failed

/opt/bitnami/apps/phpmyadmin/htdocs
$ sudo vi config.inc.php

$cfg[‘Servers’][$i][‘password’] = ‘the password’;

Bitnami ctlscript

sudo /opt/bitnami/ctlscript.sh help

Connected to Server phpMyAdmin from client



Archive of VM

F:\Linux downloads\LampStack plus Drupal\20100517_1730 Lampstack.zip

Virtual Jump into Drupal

April 12, 2010

Current plans for learning Drupal:

My office computer is running Vista.  For development I’m using VMware player to run multiple Linux images.

Attend DrupalCamp Colorado June 26,27

DrupalCamp Colorado

Start with Bitnami Ubuntu LAMPstack

http://bitnami.org/stack/lampstack

BitNami LAMPStack greatly simplifies the development and deployment of PHP applications. It includes ready-to-run versions of Apache, MySQL, PHP and phpMyAdmin and required dependencies

Later can deploy with Bitname LAMPstack Amazon EC2 image

BitNami Stack on Amazon EC2: ami-632ec10a

Install / Confiture Drupal with Acquia Drupal Installer

Acuia Drupal

Installing Acquia Drupal has never been easier. Our Drupal stack installers include a complete LAMP stack configured for Drupal. Import any Drupal site onto the stack.