Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/a26f9f83/public_html/articles/includes/config.php on line 159
Setting Up A CGI Script On Your Web Site > NetSparsh - Viral Content you Love & Share

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

Coinpedia (press release) (blog)

Top 10 Crypto Web Development Company
Coinpedia (press release) (blog)
After the emergence of the first cryptocurrency in 2009, a chain of reactions started leading to the growth and development of the cryptocurrency industry. Here we are listing the Top ten companies that are leading in cryptocurrency web and application ...


Huddle Today

Zwebra Web Development Company Shares Experience After One Year In NB
Huddle Today
“Founded in 2009, Zwebra specializes in custom web design, application development and digital marketing. Today, the company has four people working in offices in Saint John and Moncton and more than 20 specialists working in the office back in Ukraine.


Business 2 Community

4 Ways to Ensure Effective Web Development
Business 2 Community
When it comes to building a new website, many businesses choose to focus predominantly on the design aspect of the project when approaching agencies to carry out the work. Whilst design is a vital part to any web development project, there are a vast ...


Customer Think

Know about the current trends in web development
Customer Think
In case of web development, you may have probably heard that the only constant is the change. It is an industry-defining statement as web development keeps on changing. User expectations are evolving rapidly, and it is quite essential than ever before ...


Neowin

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

WebAssembly, JavaScript links get faster in Firefox
InfoWorld
Mozilla's latest beta version of the Firefox browser, Firefox Nightly, makes calls between the WebAssembly binary format and JavaScript faster, so it is easier to combine the two languages. WebAssembly can serve as a companion to JavaScript in web ...

and more »

AroundtheO

New Portland program focuses on coding and web development
AroundtheO
In an effort to meet regional demand for web developers, the UO will offer a new 24-week coding course in Portland starting this January. The University of Oregon Coding Boot Camp is a part-time program is geared toward adult learners and working ...

and more »

Which are the best tools for front-end web development?
SitePoint
They are not really front-end development tools but essential for monitoring your site as far as a user is concerned. Everything may work locally on your desktop but could possibly have online problems. Their suggestions and help pages are also good.


Chicago Business Journal

Sun-Times partnering with Vox Media for website development
Chicago Business Journal
As part of the new partnership, the Sun-Times also will join Vox Media's digital advertising marketplace, a move Sun-Times management conceded could affect staffing in the newspaper's in-house advertising and web development units. According to the Vox ...

and more »

The Verge

Google is delaying a change that will break old web games — again
The Verge
But Andi McClure, a web artist and developer of games like Jumpman, doesn't think much has changed. “Whenever the autoplay stuff goes into effect, my stuff will just break,” she tells The Verge, partly because she's busy and partly because she's not ...

and more »
Google News

If You Build It, They Will Come?

Building a new website can be a lengthy task. From... Read More

Why Local Service Companies Should Have a Website

The Internet is being used by local service business to... Read More

PHP & Account Activation

When a user signs up at your website, you may... Read More

Establishing Your Web Presence

Part of the success of most home-based businesses is their... Read More

4 Marketing Tips for Resourceful Webmasters!

The internet is a sea of knowledge. Getting your information... Read More

Learn to Build a Better Online Business Website Using Keywords and Content

Are you aware that 90% of the websites on the... Read More

Website Development: Become Your Own Expert

Starting and maintaining a business is challenging enough without the... Read More

Planning Your Website for Success

Most people know they need a website in order to... Read More

Build It and They Will Come

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

Cost Effective and Powerful Dynamic Websites w. Fantastico Web Hosting

If you are developing your website on a host that... Read More

Where?s Your Web Site?

This simple question can take on several different forms, but... Read More

Website For The Company Store

If your company own one or more stores, you might... Read More

Now You Have a Web Site - Have You Ever Heard of Accessibility?

An accessible Web site is easily approached, easily understood, and... Read More

Learn What 98% of Targeted Visitors Do On Your Website

Getting a Targeted Visitor to a website is a waste... Read More

7 Profit Producing Reasons Why Every Successful Service Professional Needs A Web Presence

Your business website is a critical aspect of being able... Read More

Website Content & Usability

Writing for the web is totally different to writing for... Read More

Free Isnt Always Good - 5 Reasons Why You Need Your Own Website

Often time I've browsed sites and seen the same thing... Read More

Do You Need a Web Database?

Does My Web Site Require A Web Database?If your web... Read More

Building eCommerce Websites that Work - Part 2

Succeeding with an eCommerce website is a dream for many... Read More

What and How to choose the Right Keywords for Mega Traffic

Keywords in Search Engine Optimizing and Search Engine Marketing are... Read More

Warning: The Truth About Having a Web Site!

If you don't have a web site yet, are thinking... Read More

Is Your Website Doomed for Failure Before Youve Built It?

One of the things that many people overlook when building... Read More

Freelance Programming is Easy to Manage

There are several reverse bid freelance sites out there. Beyond... Read More

Three Things Every Website Should Do

When I started my company in 2002, I knew I... Read More

Do Authors Need a Website?

"I am a writer, not a business-person. I don't want... Read More