Easy Drupal Demo
You can have a demo of the Drupal contact management platform up and running in a few simple steps.
First, if you don't have it installed already, install the Sun Web Stack.
The Sun Web Stack team maintains their own webstack repository, which at the time of this writing contains 34 additional packages. The package we're intersted in is drupal-demo. Before it can be installed we need to add the webstack repository to OpenSolaris:
pfexec pkg set-authority -O http://pkg.opensolaris.org/webstack webstack
Then verify that you can access the package:
bleonard@opensolaris:~$ pkg info -r drupal-demo
Name: drupal-demo
Summary: This package provides a quick start for setting up drupal on localhost. While not suitable for production setup, it is handy for setting up a local instance for testing, evaluation or demonstrations.
State: Not installed
Authority: webstack
Version: 6.3
Build Release: 5.11
Branch: 1
Packaging Date: Tue Mar 10 22:06:58 2009
Size: 6.39 kB
FMRI: pkg://webstack/drupal-demo@6.3,5.11-1:20090310T220658Z
And then install it:
bleonard@opensolaris:~$ pfexec pkg install drupal-demo DOWNLOAD PKGS FILES XFER (MB) Completed 5/5 469/469 1.11/1.11 PHASE ACTIONS Install Phase 545/545 PHASE ITEMS Reading Existing Index 9/9 Indexing Packages 5/5
The drupal-demo package simply contains a script for setting up the demo:
bleonard@opensolaris:~$ pkg contents drupal-demo PATH usr/bin/drupal_evaluation_init usr/share/man/man1/drupal_evaluation_init.1
So once installed, just run drupal_evaluation_init:
And once that script completes, you can run the demo by browsing to http://localhost/drupal.bleonard@opensolaris:~$ drupal_evaluation_init This script will initialize Drupal for evaluation on this system. Note that this script is not a supported application and is only provided for convenience when doing a quick first look at Drupal. This script will initialize a new MySQL database for Drupal on localhost, which may not be what it useful for non-evaluation use. WARNING: This script will ask for a new username and password for the MySQL drupal user (such as 'drupal', 'drupal') and pass it to MySQL. This script makes no attempt to be secure and your password will be exposed to any other users on this machine. Unless you are running on a machine where no other users can be running any processes you do not want to run this script. Are you sure you want to continue? (y/n): y ( cd /etc/apache2/2.2/conf.d/ ; pfexec cp ../samples-conf.d/drupal.conf . ) pfexec svccfg import /var/svc/manifest/network/http-apache22.xml pfexec svccfg import /var/svc/manifest/application/database/mysql.xml pfexec svcadm enable database/mysql:version_50 pfexec svcadm enable apache22 Enter the name of the Drupal MySQL database: drupal Enter the name of the Drupal MySQL user: drupal Enter the password for MySQL user drupal: drupal TEMPFILE: /export/home/bleonard/drupal.990 cat /export/home/bleonard/drupal.990 | /usr/mysql/5.0/bin/mysql -u root If everything went well, now run: firefox http://localhost/drupal

comment
Posted by sample on October 08, 2009 at 09:06 PM GMT #