Setting Up A CGI Script On Your Web Site

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.

Read more articles by this author, about this and other subjects, here.

About The Author

Bob Power has been an Internet entrepreneur for longer than he would like to remember. He is currently on a voyage of learning, thanks to his readers, who have asked him to answer questions about topics they want more information on. You can see some of the surprising, and at times exciting results, and variety of topics and paths this has taken him on, or to contact Bob Power please click here.

These articles may be reproduced exactly as shown above. No revisions or changes are permitted.

In The News:

This RSS feed URL is deprecated, please update. New URLs can be found in the footers at https://news.google.com/news

Mashable

Break into the field of web development with these discounted e-books
Mashable
The barriers to breaking into the web development field are lower than ever. You no longer need to break the bank, quit your job, and enroll in a university to acquire a Mr. Robot-level of programming knowledge. You know what you would need? A laptop ...


Business MattersBusiness Matters

The rise of web development: The revolution that changed the face of the internet
Business MattersBusiness Matters
Curiously, just 4-5 years ago there were very few genuinely innovative projects in the web field. All major transformations in the web development industry, i.e. web componentization, the rise of web browsers and the introduction of single-page ...


Interesting Engineering

Learn the Essentials of Web Development with This eBook Bundle
Interesting Engineering
There's never been a better time to be a web developer. Whether you are interested in lucrative freelance work or joining the ranks of a Fortune 500 company, demand for talented developers who know how to craft powerful and engaging websites has ...


Gopher Protocol Launches Web Development of its Avant! Artificial Intelligence Platform
GlobeNewswire (press release)
SAN DIEGO, CA, May 22, 2018 (GLOBE NEWSWIRE) -- Gopher Protocol Inc. (OTCQB: GOPH) ("Gopher"), a company specializing in the creation of Internet of Things (IoT) and Artificial Intelligence enabled mobile technologies, announced that it is developing ...

and more »

Neowin

You can Pay What You Want for this Full Stack Web Development Bundle
Neowin
Today's highlighted deal comes via our Online Courses section of the Neowin Deals store, where you can Pay What You Want for the Full Stack Web Development Bundle. The world's best developers are Full Stack developers. Here's 122+ hours of ...


InfoWorld

6 must-have web frameworks for the Google Go language
InfoWorld
Here's a survey of the major frameworks currently used for web development in Go. Some are aimed at simpler use cases, like endpoint APIs. Others are intended to handle full-blown site development, or can be scaled up or down depending on which ...


First Certificate in Full-Stack Web Development designed for working professionals launches at York University ...
Canada NewsWire (press release)
TORONTO, May 22, 2018 /CNW/ - Gone are the days when becoming a full-stack web developer meant leaving work for weeks on end. Until recently, this intensive "bootcamp" style of learning was largely the only option for people looking to join the fastest ...


Web Developer
Bizcommunity.com
We are Conversion Advantage, a digital marketing agency based in the Winelands. We are looking for a young, skilled web developer who has a passion for technology in general and web development that can demonstrate this to us. The ideal candidate ...


F# Web Development with the SAFE Stack
InfoQ.com
The SAFE stack is a set of F# libraries used together to create web applications. Tomasz Heimowski recently presented the stack at F# eXchange 2018 in a live coding session. He demonstrated the whole experience by creating and deploying a rating ...


Atlanta Small Business Network (blog)

DIY Website Options for Entrepreneurs: Pros and Cons of Three Popular Tools
Atlanta Small Business Network (blog)
The most substantial piece of this pie is the website. You know you need one, and you are wondering if you have the skill to do it on your own. Thankfully, there are many website development platforms out there that make it easy for even a beginner ...

Google News

Maximizing ROI via Web Site Traffic Analysis

We are clearly well past the innocent "golden age" of... Read More

Wheres Your Focus, Money or Customer?

Is your website Really useful?I had a 'rep' in yesterday... Read More

Creating Dynamic Website Content with PHP - MySQL

Fresh website content for your visitors can be of real... Read More

Dreamweaver 8 Preview

August 8 2005, Macromedia announced a release of Studio 8.... Read More

Making the Most of Your Website: Start with the Basics

One of my most salient memories from when I sold... Read More

WYSIWYG Versus Coding: HTML With A Purpose

After years of working with entrepreneurs who developed their first... Read More

Build It and They Will Come

Build it and they will come is not always true;... Read More

How to Get a Better Web Site ROI

Better Web Site ROIHow to increase your business profitability by... Read More

Benefits Of An Accessible Website: Part 1 - Increase In Reach

The DDA (Disability Discrimination Act) states that service providers must... Read More

3 Reasons Why You Need URL Rewriting Module To Enchance Your Web

URL rewriting are major needs for your sites that produce... Read More

Five Essential Questions to Answer Before Creating Your First (or second...or third) Website

Right after the thought, "I need a website," people usually... Read More

The Top Ten Benefits of Having a Web Site

Do you need a web site? Are you considering getting... Read More

What Your Customers Say About YOUR Site! Part 1

The following is a list of patterns that many visitors... Read More

Entangled in the World Wide Web

I am just a learner who likes to delve in... Read More

Top 5 Reasons to Track Your Website Traffic

#5 User Satisfaction: Learn what your visitors and site users... Read More

My Yahoo Search - Beyond Bookmarks

Yahoo has long offered email, an online calendar, notes, bookmarks,... Read More

The Disability Discrimination Act (DDA) & Web Accessibility

There's been widespread speculation about the new legislation being introduced... Read More

Are You Being Scammed By Your Web Design Company?

This is a growing concern amongst many business owners. Does... Read More

Art, Artists and the Web: Part 3--What to Put on an Artist?s Website

What to put your the website if you are an... Read More

Improve Web Sales Figures Forever And Ever Amen!

"How do I improve web site sales figures?" The CEO... Read More

Website Sales: 10 Reasons Why People Dont Buy From You

You've put up a website to promote a product or... Read More

How to Create Sizzling Sales online

"Don't Sell the Steak, Sell the Sizzle."Have you heard of... Read More

How Your Own Website Helps Your Small Business Grow

What do you mean, you don't have a website for... Read More

5 Tips To Supercharge Your Website Sales Copy

The art of turning website visitors into paying customers depends... Read More

Website Imperatives and Solutions

When you take a look at the most visited sites... Read More