Skip to main content

Posts

Beginners Guide for CGI scripts

This tutorial has been developed to help you get your CGI script working. It focuses on common problems associated with setting up CGI scripts. There are some links to other helpful resources at the end. You should check these out if you cannot find the answers you need here. What follows is a sort of checklist to help you solve the problem quickly yourself. It is divided into four parts: Before uploading to the Server Uploading to the Server Setting Up on the Server Debugging a. Before Uploading to the Server 1. Does your script compile? Like any Perl program, a CGI script needs to compile successfully before it will run. Until it does this you can forget everything else. To test this you need a command prompt and a working Perl interpreter. For information on how to build a Perl interpreter or to get a pre-built Perl for your platform, Installing and Adding to Perl on PerlMonks. Once you have a perl you can access from a command prompt, type: perl -c myscript.pl

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