Side Channel

  • home
  • resources
Home › Blogs › kamal's blog

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password

Navigation

  • Books
  • Feed aggregator

Recent blog posts

  • Ubuntu mirrors up and improved!
  • Google-jstemplate: Iterate object with unknown properties
  • nginx https proxypass for php apps
  • sugarcrm & memcache: Doing it Wrong
  • subversion and https in Ubuntu Karmic
  • Drupal: Views block delta converted to md5 hash
  • Ubuntu Server install requires PAE
  • Installing Drupal from command line
  • Drupal: Handling form field weight through CCK
  • minify javascript using Google Closure Compiler
more

angch's location

angch twitter

  • angch: Heading to Brunei. Business class for a change.
more

Installing Drupal from command line

kamal's picture

kamal — Tue, 08/12/2009 - 19:04

Using twill because until Drupal 7, there's no way you can install Drupal without opening the browser.

#debug http 1
go http://192.168.1.6:12000/install.php?profile=pulut&locale=en
code 200
find "To set up your Pulut database, enter the following information."
#show_cookies

fv 1 db_type pgsql
fv 1 db_path gmp
fv 1 db_user kamal
fv 1 db_pass abc123

submit op

find "All necessary changes to <em>./sites/default</em> and <em>./sites/default/settings.php</em> have been made. They have been set to read-only for security."

fv 1 site_mail kamal@bytecraft.com.my
fv 1 account[name] admin
fv 1 account[mail] kamal@bytecraft.com.my
fv 1 account[pass][pass1] abc123
fv 1 account[pass][pass2] abc123
fv 1 update_status_module1 0

submit op

find "Congratulations, Pulut has been successfully installed"

clear_cookies
go http://192.168.1.6:12000/

fv 1 name admin
fv 1 pass abc123

submit op
find "Log out"

It's pretty crude at the moment but I guess a good start. Couple with some other tools I'm working on, installing Drupal can be fully automated. The next step is to convert this twill script into Python equivalent to be more flexible.

Update

Here some good and better explanation on this from Lin Clark's blog.

  • drupal
  • install-profile
  • offline
  • kamal's blog
  • Add new comment

Have you tried the drush provision module?

Anonymous — Tue, 12/01/2010 - 02:34

Aegir has the drush provision module that sets out and creates a full drupal install for you, db and all.

  • reply

Aegir

kamal — Tue, 12/01/2010 - 09:47

Not yet, Aegir look to heavy for me. Plus I need to integrate the tools with our own infrastructure. Maybe I'll try to take a look at it.

  • reply


Creative Commons License

  • home
  • resources

Standard Disclaimer.