Drupal Related Items
HOWTO: Add Socket Support to Acquia's DAMP Installer
Previously I've written about setting up APC and memcached on your desktop (or in my case laptop) using Acquia's handy stack installer (aka "DAMP"). This is another quick post in that vein.
The other main caching system I work with on a daily basis is the mind-blowingly-fast Varnish httpd accelerator. If you haven't checked it out yet, get on board (srsly; good MacOS instructions from Nate@lullabot here). I'm more than happy to maintain the Varnish integration module on drupal.org, but I've been bugged by my inability to take this work with me on airplanes and other offline places.
See, DAMP ships without the required socket support needed to "talk" to the Varnish control terminal. I'm not saying this is Acquia's fault. They can't put the kitchen sink in there, and most regular users will never miss the socket extension. Those of us who might, well, we can help ourselves, right?
Right! To get rolling, grab the source and untar it. As of this article, we're working off PHP 5.2.13, but this should be pretty solid advice for any 5.2.x release.
cd php-5.2.13
./configure --with-sockets=shared
make
cp modules/sockets.so /Applications/acquia-drupal/php/ext/
Then add the following to the bottom of your /Applications/acquia-drupal/php/bin/php.ini:
[sockets]
; Sockets are useful!
extension=sockets.so
Restart your DAMP application and hit up your friendly local phpinfo() and you should see a section for sockets. Enjoy talking directly to network interfaces! :)
Josh KoenigLA Drupal's 4th Annual DrupalCamp: August 7-8th, 2010 at UC Irvine
Registration is now open for DrupalCamp LA 2010. Mark your calendars for Saturday & Sunday, August 7-8th, 2010. Attendance is free. The camp will be taking place in the same great venue from last year - UC Irvine in the city of Irvine, California. The campus has housing available if you wish to rent rooms to stay overnight.
If you registered last year then your account is already setup and you just need to login and edit your profile to mark what days you plan to attend.
Free to attend. Parking costs about $8-12 per day. Lunch is not provided but you can bring your own or buy a food pass from the cafeteria on campus (which people liked last year). Nighttime private camp party on Saturday 7PM-MIDNIGHT sponsored by MediaTemple.
SPONSORSStauffer New Media Development
WHAT PEOPLE LEARN EACH YEAR AT DrupalCamp LA- Drupal 6 & 7
- Drupal Basics
- Business with Drupal
- Administering & Maintaining Drupal
- Building with Drupal
- Drush
- PHP & SQL
- Designing & Developing for Drupal
- Drupal Themes & Modules
- Contributing back to Drupal, and more!
The Henry Samueli School of Engineering University of California Irvine
Acquia
Intrinsic Web Designs
SunRain Productions
Cherry Hill Co
Development Seed
Sage Tree Solutions
New site design provided by SoCal's premier Drupal agency This By Them, creators of the 2009 site.
http://2010.drupalcampla.com
WE NEED YOUR HELP!
By sponsoring our camp you get exposure and praise from our community mixed with networking possibilities during the entire camp. Due to budget cuts recently experienced by state schools in California, however, UC Irvine's costs have gone up, meaning our costs for the camp have also risen. We are charged with the task of raising upwards of $10,000 this year in order to fund the event our community has come to expect. Please consider sponsoring. Contact an organizer today.
Sponsor get their names/logo/link on our camp site, camp signs, maps & pamphlets, videos, our tweets - anything we can think of. If you want to make your presence known in the SoCal Drupal community then you want in on this. Visit http://2010.drupalcampla.com/sponsorship for more details.
RAFFLE PRIZESEach day a dozen winners will be announced and each will get to choose a Drupal related prizes.
-
Book publishers currently sponsoring the camp prizes are O'Reilly, Apress, and Packt Publishing.
-
Two special winners will win full 1-month passes to Lynda.com on behalf of Drupal author & community leader Chris Charlton, author of Drupal: Creating and Editing Custom Themes online video training.
-
Creators of the jQuery & Drupal plug-ins for Adobe Dreamweaver & Eclipse IDE, XTND.US are providing two awesome "CSS Ninja" shirts, check out the shirts below or at: http://www.zazzle.com/css_ninja_style_class_tshirt-235091799113607617)
At the camp we will be selling awesome new t-shirts for only $10! That's 50% off the online price. Our 2009 camp shirt is also (still) available and you can order yours before the camp!
This is the shirt being raffled off by XTND.US. You can order your own online.

Sponsorship information available at http://2010.drupalcampla.com/sponsorship
Drupalcamp or Regional Summit Ventura DrupalChris CharltonHOWTO: Use Advanced Drupal Caching From Your Desktop
I (heart) the DAMP/Acquia Stack Installer. It makes rapid testing and development easy, and helps me be productive on airplanes even without wifi. In this post I'll explain how I was able to quickly set up an advanced caching testbed on my desktop to investigate some advanced APC and memcache configurations.
Caveat: these instructions are all MacOS centric — apologies in advance to the Redmond-faithful, happy to finally be caught up with all the Ubuntu-ites — but that's my environment and over the years I've found it to be a good one.
First two easy point-and-clicks.
- Download and run the DAMP installer.
- Next, since I roll with Pressflow and what I wanted to test was a potential new branch, I grabbed myself a copy of BZR, another cool next-generation version control system with an installer.
Now's where the work starts. I pop open my handy iterm and quickly grab a fresh branch of Pressflow:
mithras-4:pressflow joshk$ cd
mithras-4:~ joshk$ cd Sites/
mithras-4:Sites joshk$ bzr branch lp:pressflow
Branched 78 revision(s).
Then fire up your Acquia Stack, pick "More..." from the little sites drop-down, click the import button, and find the freshly branched codebase. Note: this is a great way to set up/run any codebase locally, not just a Pressflow branch. If you've got an existing site tarball, your own SVN repository, or want try out a cool Drupal product like Open Atrium, you can use DAMP to easily import the pre-existing Drupal.
Next thing I do is install Drush. Drush: don't leave home without it. Now, there's an important tweak you'll want to use to get Drush and the DAMP installer working in harmony: adding the acquia-stack php path to the drush helper script. Hopefully that issue will be committed soon, but in the mean time it's a very small fix: just add /Applications/acquia-drupal/php/bin/php to the bit where Drush searches for *AMP installations.
Once I had drush set up, I ran drush dl devel memcache-6.x-1.x-dev to grab the latest Devel and Memcache modules, since my eventual aim was to do some performance.module based testing.
And now we come to the fun part. See, while DAMP ships with a lot of commonly-needed libraries like GD and curl, it doesn't come with the php components to support APC or memcached, both of which I need for my tests. Thankfully JAM has my back, and we got support for custom php libraries baked into the latest releases of the DAMP installer. Those copy/paste instructions worked like a charm to install APC, so that was out of the way and it was on to memcached.
Josh Koenig17145419063882199625











