Next Tutorial

Drupal 7 Tutorial Part 15: Drupal 7 Advanced Taxonomy Concepts

MySQL

How to install Drupal 6 on linux Operating System

Submitted by anilsagar on Thu, 02/25/2010 - 12:55

Hi Everyone,

I am giving the step by step instructions to install Drupal 6 on linux machine. I am giving this steps for Ubuntu 9.10. For any other linux forks you need some small changes.

Apache Installation:

Step 1: Install apache 2 by entering this command in linux terminal.

~$> sudo apt-get install apache2

Step 2: Now apache is installed and running in your system. You can verify this by typing this url on your bowser.

Drupal Performance Tips

Submitted by anilsagar on Tue, 01/19/2010 - 10:27

Tip 1: Enable the query cache in MySQL
How ??
* You can setup them in /etc/my.cnf (Red Hat) or /etc/mysql/my.cnf (Debian) file:
* # vi /etc/my.cnf
Append config directives as follows:
query_cache_size = 268435456
query_cache_type=1
query_cache_limit=1048576

How to query mysql using distinct and order by on more than one field

Submitted by anilsagar on Fri, 01/01/2010 - 01:50

I came through a very strange problem. That is using DISTINCT on multiple columns at the same time using ORDER BY condition. When i don't use DISTINCT it returns correct order but on DISTINCT condition ORDER BY effect is lost. My query is some thing like this.

SELECT c.title, a.nid, b.filepath FROM content_type_x as a
LEFT JOIN files as b ON a.field_show_image_fid = b.fid
ORDER BY a.nid

Syndicate content
©2010 AnilSagar. All rights reserved. Drupal theme by Kiwi Themes.