Drupal Development

Setting up a LAMP (Apache, MySQL, PHP) development environment on Ubuntu 14.04 (Trusty) LTS for local Drupal/Wordpress development

This is how I normally set up my local Drupal development machines after a fresh Ubuntu 14.04 LTS (desktop/MATE edition) install.

1. Install required packages

From Terminal, execute the following command to update the repository information and to get the system up-to-date:

sudo apt-get update
sudo apt-get upgrade

Next, install some basic necessities:

[SOLVED][HOWTO] How to install Drush via PHP PEAR on your cPanel/WHM shared hosting server account

With SSH enabled, Drush is one of the best command-line tools that a Drupal developer/admin can have.

If you havent heard of Drush, checkout these pages to know more about it, and about how it can help make your life much saner:
https://github.com/drush-ops/drush#description
http://drush.ws/about

Here is how you can install Drush on your cPanel/WHM shared hosting account:

Setting up a LAMP (Apache, MySQL, PHP) development environment on Ubuntu 13.04 (Raring) / 12.10 (Quantal) / 12.04 (Precise) for Drupal/Wordpress development

Setting up a LAMP (Apache, MySQL, PHP) development environment on Ubuntu 11.04 (Natty) / 11.10 (Oneiric) for Drupal/Wordpress development

 
Package Installation
From Terminal, execute the following command to install the required packages:

sudo apt-get install apache2 mysql-server mysql-client php5 libapache2-mod-php5 php5-gd php5-mysql php5-cli  php5-curl kcachegrind  php5-ffmpeg php5-mcrypt php5-imagick php5-xdebug phpmyadmin

Additional Configuration

1. To fix the Fully Qualified Domain Name issue for Apache

How to download the development snapshot / dev version of a Drupal module/theme/core for a specific date

There are often times when you need to download the development snapshot / dev version of a Drupal module/theme/core for a specific date. One common case is when you want to compare the existing version of the module code on your site with the drupal.org version of the same to check for code hacks, as you prepare to update / upgrade the Drupal module.

Here is a method to get that particular date's development snapshot:

[PATCH] How to set workflow comment during automated stated transition with Workflow Rules Set State Action on a Drupal 7 site

The Workflow module in Drupal, as part of its Rules module integration, allows you various rules based actions, of which one commonly used one is the action to change the workflow state from state to another. But that one doesn't have an option to set the comment for that state change, which can be quite useful when you see the Workflow History of a node.

I have created a patch for the latest dev version (7.x-1.0+20-dev) of the Workflow module to help you with that:

My first Drupal core patch is live!

My first Drupal core patch, that corrects a repeating "have to" in one of the function comments in system.api.php, has gone live in today's Drupal 7 release (version 7.17).

Here's the Issue Post on Drupal.org:
http://drupal.org/node/1802844

:-)

[SOLVED] Error when installing modules in Drupal 7 from admin/modules/install - Exception: Invalid checksum for file...calculated, 0 expected in Archive_Tar...line 635 of modules/system/system.tar.inc

Drupal 7 provides a feature that allows you to install a new module via the Drupal interface itself, without entering your hosting server's cPanel/alternative File Manager to upload files.

That works like a charm for most hosting servers and makes installing modules/themes a breeze on Drupal.

For some others, trying to install modules that way (from admin/modules/install) might just bring up something that looks like the following:
Exception: Invalid checksum for file ... calculated, 0 expected in Archive_Tar->_error() (line 635 of .../my-site.com/modules/system/system.tar.inc).

Here's how to fix this:

Setting up a LAMP (Apache, MySQL, PHP) development environment on Ubuntu 11.04 (Natty) / 11.10 (Oneiric) for Drupal/Wordpress development

Setting up a LAMP (Apache, MySQL, PHP) development environment on Ubuntu 11.04 (Natty) / 11.10 (Oneiric) for Drupal/Wordpress development

 
Package Installation
From Terminal, execute the following command to install the required packages:

sudo apt-get install apache2 mysql-server mysql-admin mysql-query-browser mysql-client mysql-navigator php5 libapache2-mod-php5 php5-gd php5-mysql php5-cli  php5-curl kcachegrind  php5-ffmpeg php5-mcrypt php5-imagick php5-xdebug phpmyadmin

Additional Configuration

1. To fix the Fully Qualified Domain Name issue for Apache

Subscribe to RSS - Drupal Development
randomness