Memcache setting for drupal 7

There is some slight change in default settings.php memcached setting for drupal 7, here is the setting you need to add to bottom of your file and you are ready to go.

$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
  $conf['cache_default_class'] = 'MemCacheDrupal';
  $conf['memcache_key_prefix'] = 'TD';

Apache, higher performance - MPM worker and Fcgid

After reading on many places that drupal should work better with MPM-worker and fcgid I decided to swith my debain to that configuration. For that I had to do the usuall, collect the info around the web and hope for the best. So here goes information about this on Debian Linux.

First we need to install worker and FastCGI

Drupal site and how to manually put it offline

Go to phpmyadmin and start this 2 commands

put site offline
UPDATE variable SET value='s:1:"1"' WHERE name = 'site_offline'
put site online
UPDATE variable SET value='s:1:"0"' WHERE name = 'site_offline

depending what you need, if you have drush you could also do that with drush.

Node export tips and problems

Currently I am moving nodes from one domain to other, with many images and cck fields. Problem I have other then browser timing out on large files when uploded through node export module is that also on smaller files, with few nodes seems that module sometimes works and sometimes doesnt. What I realized is that if you quickly select code to paste or export file, importing breaks.

Redirect Old domain to New domain using htaccess redirect

Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)