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.

cleaning service near Morton Grove ...
In The News:

Amazon's Alexa for Shopping now lets customers verify suspicious emails, texts and phone calls against the company's own communication records.
Lindsey Brooke Isaacs spent 13 days in jail after a Flock camera flagged her Dodge Durango near a fatal Florida crash that killed three people.
AI-powered smart grocery carts are linked to 32% higher spending, according to new research, as Instacart Caper Carts expand across U.S. stores.
A VPN encrypts your connection on hotel, airport and café Wi-Fi abroad, but streaming catalogs and live sports access still depend on provider rules.
Gmail's Verified Sender Program launches September 8, 2026, giving U.S. political committees a more reliable path to your personal email inbox.
Elroy Air's Chaparral can carry over 500 pounds and fly 450 miles without a runway, and the FAA just tested it under a new federal program.
Bedrock Robotics says its autonomous excavators are doing paid earthwork on active job sites in Texas and Nevada with no operator in the cab.
A dedicated banking computer isolates your financial accounts from malware and phishing, but passwords, SIM swapping and outdated software remain risks.
The OlloNi SS1 AI robot pet uses a 4K camera and facial recognition to learn your family, but its removable Red Heart memory module raises questions.
Nine identity theft warning signs range from unfamiliar credit inquiries to SIM swap attacks that can quietly drain your bank account funds.
Robot.com's R-dog uses articulated legs and wheels to climb stairs and deliver packages, while its built-in screens display paid ads along the route.
MyChart phishing emails mimic real patient portal alerts with fake lab results and malware tricks that target Windows users across the country.
The Fox News AI Newsletter covers the latest artificial intelligence technology advancements, including the challenges and opportunities AI presents now and for the future.
Google's Motion Assist places animated dots on Pixel screens to combat motion sickness in vehicles, but the Android 17 rollout remains limited.
Moving to a 55+ community can quickly expose your data to scammers and data brokers before you even unpack, putting your whole family at risk.
Amazon Prime Air drone delivery plans to reach nearly 500 U.S. cities by the end of 2026, but your yard and ZIP code may determine eligibility.
The FBI reports nearly $21 billion in cybercrime losses for 2025, up 26%, as AI scams make fake voices and identities more convincing than ever.
Uber teen accounts now feature live video streaming from the driver's camera, but encrypted recordings stay on Uber's servers for up to 14 days.
Router firewalls and software firewalls serve different roles in protecting your home Wi-Fi from unwanted traffic and suspicious connections.
A Chrome extension with 70,000 users and a 4.7-star rating began injecting fake update warnings after a threat actor acquired and weaponized it.
Amazon's Alexa+ rolls out free to Fire TV devices across the U.S., but hands-free microphones and stored voice data raise key privacy questions.
Meta's new teen accounts settlement sets a default two-hour daily limit on Instagram and Facebook, plus night mode and school mode restrictions.
The CareCloud data breach exposed Social Security numbers, banking information and medical records belonging to more than 3.75 million people.
Waymo reveals its custom 5-nanometer chip and dual computing systems designed to take over instantly if the robotaxi's primary computer fails.
Identity theft now includes account takeover, phone hijacking and payment card exposure. Here's what to look for in identity theft protection services.

If Its Done Its Done for: Make Your Website Part of Your Business before You Build

Web sites are an Ongoing Part of Business.All too many... Read More

Growing Your Meetings In CyberSpace

As increasing numbers of people search for information on the... Read More

Better Web Site ROI: Efficient Online Business with SEO, PPC, Split Testing, and Forums

If you're looking for better web site ROI, chances are,... Read More

Beyond Web Usability: Web Credibility

If you've been developing websites on Mars for the past... Read More

Make Your Own Website - General Website Design Tips

Wow, we`ve already taken a domain and chosen a web... Read More

Database Driven Web Site - Do You Need It?

Many of site owners still don't realize all advantages of... Read More

Lead Generation How to -- 10 Tips On Generating More Internet Sales Leads

Many millions of dollars are being wasted on promoting and... Read More

Newsletter Management Using PHP w/o mySQL for Beginners

Let's begin by setting some limits. If you're like me,... Read More

Be Creative Before You Purchase Or Create A Website

Before you jump into spending coutnless hours on designing and... Read More

Websites: You Get What You Pay For!

So you finally decided to invest in a web presence... Read More

The Problem with Automated Accessibility Testing Tools

An automated accessibility tool is a piece of software which... Read More

Non-Profits: Successful Online Strategies

More and more non-profit organizations are developing websites to help... Read More

Give Your Business a Cash Infusion

Whether you have your own business already, or are looking... Read More

7 Tips to Make Your Order Page Work Harder

So your prospect, Mary, is sitting at the computer reading... Read More

The Birth of a Professional Web Site

The Internet has opened a whole New World of opportunity... Read More

Five Question-Five Minute Web Makeover Quiz

If you haven't made the sales and built your clients... Read More

Direct Sales and Your Corporate Website - A Creative Marketing Plan that Works!

Creatively marketing your corporate site takes time in the set... Read More

Improve Conversion Rates ? Load Times

Your site is getting traffic, but conversion rates are horrible.... Read More

How Does Your Website Make Me Feel?

When people think about the Internet, they think about technology.... Read More

The Secret Benefit Of Accessibility: Part 2 - A Higher Search Engine Ranking

An additional benefit of website accessibility is an improved performance... Read More

Track Your Visitors, Using PHP

There are many different traffic analysis tools, ranging from simple... Read More

Web Sites ? Should I Learn or not?

A common dilemma most small and medium businesses face when... Read More

The Secret Benefit Of Accessibility: Part 1 - Increased Usability

Web accessibility has so many benefits that I really do... Read More

Beautiful Web Sites Seldom Make More Sales

Designing an E-commerce Web site is not as simple as... Read More

Email Addresses in Web Pages

You want to give your site's visitors a way to... Read More

green cleaning service Highland Park ...