articlechef.com articlechef.com
   Home Page -> About Us -> Security & Privacy -> Terms & Conditions -> Place Your Link -> Add Article
Search:   
Add Url
 

Jobs & Careers

Estate & Realty

Academics & Education

Children

Healthcare & Medicine

Fashion & Lifestyle

Policies & Law

Science & Research

Travel & Vacation

Automotive

Art & Culture

Finance & Investment

Fitness & Health

Computers & Software

Self Management

Sports & Adventure

Music & Entertainment

Online & Board Games

News & Events

Shopping Online

Drink & Food

Family & Home

Companies & Business

People & Society

 

Home Page –› Computers & Software –› Website Development
 

Setting Up A CGI Script On Your Web Site

 
Author: Bob Power

Before you set up any scripts you will need some information about your server. You can get this by e-mailing your web hosting provider. It's good to have these on hand before you try to set up a script. You may not need all of the information for each script, but some of the larger scripts demand more information to work. The information you may need is:

Path To Perl This is normally the first line at the top of a ".cgi" or ".pl" (Perl) script. A sample of a Path To Perl is /usr/bin/perl. Most scripts already have the proper Path To Perl included. If the script doesn't work it may be this variable.

Relative Path Which is the relative path to your server, not the HTML path. A sample is: /home/yourlogin/public_html/

HTML Path To Your Server Which is the URL path to your server, for example: http://yourdomain.com

Sendmail Path Which is the relative path to your mail server. A sample is: /usr/sbin/sendmail

SMTP Server Address Which is the path to sendmail on your server. A sample is: smtp.yourdomamin.com (This is rarely used)

Once you have those variables you can set up just about any script available.

Open the scripts that you are instructed to in the "readme" file or "installation" file. These instructions should tell you which scripts need to be set up with these variables. Open these files in a HTML editor, or a text editor. The instructions should also give you the exact location where each variable should be changed or inputed.

Once you have all of the variables set, upload your scripts. They must be uploaded in ASCII, not Binary, if your FTP program makes you choose. Once uploaded your scripts need to have the permissions set in order to work. The instructions should have those permissions for you. Normally a ".cgi" or ".pl" script has it's permissions set to 755.

Your FTP program should allow you to do that somewhere in the program. I use WS_FTP95 LE. To set permissions I simply right click in the right hand window when I am in the server directory where the script is. I click on "FTP Commands" then on "Site". I then type in the field "chmod 755 name of script". If the script is called "abc.cgi" then I will type in "chmod 755 abc.cgi".

It is now time to test the script. The instructions should tell you how to access the script, i.e. "yourdomain.com/abc.cgi". If you get a "Internal Server Error" then you need to go back and check the variables in the scripts and set the permissions, and try uploading the script again.

Author Bio:

Bob Power

Bob Power is in pursuit of answers to questions that people have asked him to find answers for. His goal is to make the seemingly complicated more understandable for his readers! Bob has written on everthing from golf, fuel savings technology and cell phones.

One of his goals was to explore as many topics as possible. His motto is tha it is better to know a little bit about a lot of things, instead of knowing a whole lot about few things.

Many things have surprised him and he is especially pleased that topics such as MLM yeilded such positive information. As jaded as he was he now acknowledges that MLM may have some of the most leading edge technology products and the most potential of impacting your life in a positive way.

He was also suprised at how simple some things became after researching them. Such as how a golf ball actually flies through the air. How some simple automotive products you can use can reduce exhaust emissions. The Internet and how exciting Feeds were going to be for the consumer in the near future. How easy it was to actually produce and publish Feeds and how powerful they will be for business. How easy it was to produce an eBook and how just about anyone can publish easily.

Bob's goals are to play golf on the Champions Tour, at least for one tournament, write a novel and travel the world with his wife of over 30 years.

Ultimately Bob's long term goal is to be able to influence, in a positive way, as many people as possible. He hopes these articles, and advice, helps in some way.

You can access Bob's articles at: http://whatinowknow.com

You can search for this article using: web site development, web design & development, website development tampa
 
 
 

Related Articles

 
Will I Get Rich Creating Adsense Sites
 
My First Online Business, Travel Plan Online.Com
 
7 Lessons I Learnt Whilst Losing Thousands Internet Marketing
 
What You Need To Know Before Paying For Another Moneymaking Program Online
 
Finding the Right Web Hosting Plan
 
Beating Adwords for Affiliate Marketers
 
Instantly Increase Your Sales and Conversions by Adding New Hover Ad Technology to Your Websites
 
Dreamweaver: How to Publish Files Using FTP
 
Successful Marketing Using Websites and Why So Many Businesses Get It Wrong
 
SEO Versus PPC Search Engine Advertising!
 
 
 
Home Page -> Security & Privacy -> Terms & Conditions  
Copyright © 2008 www.articlechef.com All Rights Reserved.