WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

Run a drush command on all of your sites in a multisite

Submitted by barnettech on Tue, 11/15/2011 - 16:17

Drush is of course the best way to manage your site, and here at Babson College we are utilizing multi-sites on the Acquia Cloud. These commands greatly simplify our account management across these many sites:

To run a drush command on all of your sites in a multisite

go to your drupal root directory ie: /var/www/html/babsondev/docroot

and then run

drush @sites user-create testuser
drush @sites user-password someuser --password="gr3@tP@$s"

this will create a user on all of your sites. To get a site list you can do

The Droogle Module integrating google docs and Drupal is now released on drupal.org

Submitted by barnettech on Mon, 10/31/2011 - 16:59

This screenshot reflects the versions of Droogle pre version 7.x-4x.  I will aim to post new screenshots of the 7.x-4x + versions.

Droogle has been promoted on drupal.org as a full project. It is being supported by myself and Babson College. We'd love your feedback, feel free to post to Droogle's issue que with any suggestions, bugs, etc.

To install lamp with PDO on Ubuntu (worked on rackspace server)

Submitted by barnettech on Fri, 05/13/2011 - 09:33

To install lamp with PDO on Ubuntu (worked on rackspace server)
http://churchit.com/php-pdo-errors-while-installing-ubuntu-10-4-php-5-3… (here's a linkback for this guy that saved me from loosing even more time on this since apt-get didn't install pdo)

sudo tasksel install lamp-server
sudo a2enmod rewrite (to enable mod rewrite)

Drupal 7 create a user using rest and curl

Submitted by barnettech on Wed, 05/11/2011 - 16:47
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://base_url/user/login");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, 'PHP script');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "name=username&pass=password&form_id=user_login");
ob_start();  //dont print out this output 
curl_exec ($ch);

curl_setopt($ch, CURLOPT_URL,"http://base_url/drupal7/test_endpoint/users");