Skip to main content

Posts

Showing posts from July, 2010

How to Install Modules in Drupal

1. download the package 2. move the tar.gz folder to to sites/all/modules folder {we need to create the module folder inside all } 3. untar it using tar -zxvf tarfilename.tar.gz 4. Go in administrator menu of DRupal -> Modules     enable all the modules you installed. And there you go ...Voilla ! :-D

Installing Drupal

1. Download drupal(latest stable version ) from drupal.org 2. unzip and transfer to website root , say     /var/www/drupal6.13/  - ubuntu                OR    /httpdocs/                       -centOS                      Or you can make a subdir inside these folders if you have more than more sites running on the server. 3. Then go to http://localhost/test/drupal-6.17/  OR       http://yourwebsiteURL.com/drupal-6.13 and simply follow the steps given and refer to INSTALL.txt file inside the drupal folder !      Some useful command and things you may require while configuring Drupal :        1. command to  check the Privilages any user has on databases             SHOW GRANTS; SHOW GRANTS FOR CURRENT_USER; SHOW GRANTS FOR CURRENT_USER(); ... 2. You may get this Error at some point of time when you install diff modules, so its suggested to increase the memory size as mentioned below.          Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate

Themeing

A "theme" is a collection of files that define the presentation layer or "look and feel" of a Drupal site. With a theme you can: * Define one or more page layouts. * Specify the display of images and other graphical elements * Specify the display of fixed or variable text * Specify the attributes of fonts and graphics * Override (change) the output from modules A theme can be configured to dynamically respond to changes in the content, content types, user input, user role etc. A theme can also be used to override (modify or replace) the text and variables that are generated by modules. For example, a theme can be used to replace the default label on the Search button or to hide and display certain fields that are part of a particular content type. You can also override the default CSS classes that might appear in your content. Often a theme is used simply to define the look and feel of an entire site, but it can also be used to cust

HTML Templates

HTML::Template is a new solution to an old problem - Perl CGI development. In order to explain what makes HTML::Template new I'll briefly describe the history of Perl CGI development. In the beginning, people wrote CGIs by scattering print statements throughout Perl scripts. The HTML that ended up on the user's screen was literally embedded in the Perl script. These scripts were very difficult to maintain. Even a small change, like switching fonts, required a programmer to edit the script. It was almost impossible for a non-programmer to edit the HTML without endangering the script itself! Thus, programmers were required for even the smallest design change. Given the relative shortage of programmers versus HTML designers, this is clearly not desired situation. Many solutions to this problem have appeared, and many share a common trait - they invert the situation by embedding programming inside HTML. Examples of this approach are HTML::Mason, Embperl, ASP and PHP. Used well

How to Install XAMPP on Linux

1.Using Linux's Terminal type the following to obtain XAMPP for Linux: -> wget http://www.apachefriends.org/download.php?xampp-linux-1.7.3a.tar.gz 2.Now extract the .tar.gz by typing the following line -> tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt 3.XAMPP for Linux is now installed! All you have to do now is start the servers by typing this line ->/opt/lampp/lampp start 4.OPTIONAL : This is very recommended! To set up passwords for MySQL, XAMPP config page and the FTP Server type the following line /opt/lampp/lampp security 4.SOME OTHER IMPORTANT CODES : This is a section to let you know what else you can do with the /opt/lampp/lampp parameter. /opt/lampp/lampp start - Start XAMPP /opt/lampp/lampp stop - Stop XAMPP /opt/lampp/lampp restart - Restart XAMPP /opt/lampp/lampp startssl/stopssl - Start/Stop Apache with SSL