United States|United Kingdom|India

Blog Posts

sudeepg
Mar 06, 2010
  1. Install basic packages:
    yum install php-pear php-devel httpd-devel
  2.  

  3. Install APC using pear. This is important: When the installer asks about APXS, say ‘no’. 
    pear install pecl/apc
  4.  

sudeepg
Feb 10, 2010

 

Drupal with Ubercart

 

Ubercart is an open source e-commerce package that works on Drupal. It is powerful because it has the flexible archtecture of Drupal behind it.

 

Drupal is a powerful web-based, flexible, community solution and with Ubercart at hand, it allows e-commerce functions readily available to Drupal.

 

 

Ubercart API: uc_cart_add_item()

 

 

sudeepg
Feb 03, 2010

Quick Tip:

Command line tools are usually very fast when doing a repeatative task.

 

Linux/MAC command shell with all its shotcuts makes most developers like myself keep coming back for more development to them. Drupal too has its command shell: Drush and that can make the Drupal maintaince and upgrade the breeze.

 

 

Installing Drush

 

sudeepg
Feb 03, 2010

Drupal has a custom session handler that allows for handling of standard PHP session $_SESSION['key'] = 'value' for anonymous and autheticated users as well.

 

This session declared as above would persist from page to page. So, the above trick is helpful and you would not have to resort to cookies to store some information that stays from page to page (like when implementing multi-step form).

 

Sometimes, the standard $_SESSION may not work? Why?

 

sudeepg
Feb 03, 2010

I believe you have already worked upon the Drupal 6 performance and optimzation techniques and now is the time to do some session handling improvements.

 

Drupal Sessions: Challenge

 

Drupal stores sessions in database tables that may make your drupal site slow if your application is too database intensive and you have too many users loging in and logging out.

 

Drupal Sessions: Solution

 

Memcache as always!

 

sudeepg
Feb 02, 2010

Drupal memcache can have stunning improvements on server resources.

 

Assuming you are using memcache API module, there are certain not-so obvious steps you may need to perform to get your server behave nicely. In case, you need help installing memcache and memcache tools, check out the link.

 

One of our Drupal sites had immediate effects the moment memcache was installed and configured correctly as follows: