drupal

Setup Xdebug, Acquia Dev Desktop, and Netbeans in Windows 7

I usually use linux, but for various reasons I've needed to use windows lately and so I figured I would setup Xdebug, Acquia Dev Desktop, and Netbeans in Windows.  I didn't see much for guides out there but its really pretty easy.

Step 1 - Install Acquia Dev Desktop:

You can install either the D6 or D7 one, because really they are the same and you can just add D6/7/yourflavor to it using its "import" button. ...Read more...

Aegir Quick Tip - Fixing Image links when Migrating a Site to a Different URL in Aegir

I'm always moving sites from a "dev" url to the production url using Aegir.  Something like dev.mysite.com will become mysite.com.

In doing this, drupal has image issues, but its easy to fix.  You just have to do a search and replace in your database for the urls of your multi-site install.

I usually do something like: ...Read more...

Less than 5 Minute Aegir Slave Server on Amazon EC2 - Bash Script and Notes

I've started using Amazon EC2 with Aegir's multiple server setup and its sweeeet.  I can add a new server to my Aegir setup in like 2 minutes.

My bash script

Here is the script: http://pastebin.com/hHnTDtzs

I've tested this script with ami-3e02f257.   These are its specs:

  • Ubuntu 10.04
  • 32bit
  • EBS Store (allows this to be "micro" compatable and easy to backup/clone.)

I don't see why the script wouldn't work with x64... I just didn't test that.

What it does

You can read through the script and see all the commads that it does but here is a quick summary:

  • Runs apt-get update and upgrade
  • Installs everything you need plus git and nano
  • Forces php to be 5.2 rather than 5.3 using approach #3 here.
  • Does almost everything you need to do in the manual aegir install for using the server as an slave host.  Sets memory limits, comments bind-address, creates aegir user, creates aegir_root mysql user, etc...
  • Installs pecl uploadprogress
  • Installs Dru

Issues when Upgradeing to Aegir Alpha 14

I just upgraded 2 of my systems to alpha 14 and here are a couple of things I stumbled with:

Rename your vhost.conf files

I copied my old vhost files from ~/config/vhost.d to ~/config/server_master/apache/vhost.d.  I'm not sure if I was suposed to do that or if I was to reverify all the platforms and it would maybe recreate them in the right place... I dont know.  But my way worked.

Since all the new sites come in as mysite.com rather than mysite.com_80 (old way), I wanted to rename everything so it looked the same.  I ran this command ...Read more...

Open Atrium Beta 4 Released - Some differences from Beta 3.2

Yesterday Open Atrium 1.0 Beta 4 was released. I figured it was coming because I noticed it had been rolled out on community.openatrium.com already. I decided to through it into Aegir and give'r a quick spin.

This is NOT going to be an exhaustive comparison, just a quick first look.  Also, Some stuff has already been talked about (like the theme) so I wont be talking about it.

Main Page

When you first login your taken to that main dashboard.  Here are some quick differences I noticed:

  • There is a nice pop-out menu in the upper left corner.
  • The user link is now on the left instead of the right and is no longer 'lightbox' styled when you click on it.
  • The "My Groups" is now located inside the user pop-out.
  • OA now used the new easily customizable dashboard.
  • There is a fancy how to video in the main content section when you start it up.

Forget Your Old Drupal Sites User 1 Password? Change it in phpMyAdmin

I was moving a bunch of old old sites over to a new server the other day and thought i would make some changes to one of them... but realized I couldnt remember th User1 password.  Ha, shows you how well I keep that site up-to-date hu.  Now that its in Aegir, it will probably stay maintained better.

Here is the skinny on how I changed it...

Go into phpmyadmin and select your database:

...Read more...

Two Common Aegir Errors I Get When Importing an Existing Site

There are 2 errors I get all the time when importing existing sites.  I verify my platform and when the site is trying to import, I get this error:

This one is pretty easy to figure out, I have the wrong database info in my settings.php file.  I probably had my DB password wrong or forgot to capitalize some letter. ...Read more...

Updating Aegir from 0.4 Alpha 3 to Alpha 5 Notes

I just updated my "production" aegir to alpha 5 from alpha 3 and I thought I would put up my notes from it.

I followed the instructions that were linked to from here: http://groups.drupal.org/node/47784#comment-135668

Before i started the whole process I did a an apt-get update and apt-get upgrade to make sure my ubuntu system what up-to-date.

At about line 35 I made these changes (bold are the changes):

Image links When Moving Drupal to Multisite - Find & Replace in Mysql

Since the release of Aegir 0.3 I've been using Drupals multisite configuration like crazy.  Mainly because Aegir uses it but also because it just makes sense.  Starting a site in multisite works great, but moving an existing site to multisite configuration can cause some problems.

For example, on a regular Drupal install the images and file uploads are stored in the "sites/default/files" directory.  On a multisite install, the files/images are stored in "sites/example.com/files" directory.  This causes a problem becuase the links to most images/files that are in content will point to the wrong location:

  • Links will look like: http://example.com/sites/default/files/myimage.jpg
  • Instead of: http://example.com/sites/example.com/files/myimage.jpg

Drupal and SEO - The Global Redirect Module

The global redirect module is a must have for SEO on a Drupal site.  It does a great job helping with drupals "duplicate content" issues and redirecting urls around your drupal install. 

For example by default, drupal shows the same content for a both a url ending in a slash "/" or not ending with a slash:

  • mysite.com/node/36/
  • mysite.com/node/36

To drupal this is the same page, but to a search engine, these might be very different pages. ...Read more...