Webmaster Papers




Google
 
Web webhostingpapers.com




/pagead2.googlesyndication.com/pagead/show_ads.js">

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.

RELATED ARTICLES


Top 7 Reasons Why Your Business Needs a Website
A website provides invaluable advantages for businesses who have one.
Developing A Login System With PHP And MySQL
Most interactive websites nowadays would require a user to log in into the website's system in order to provide a customized experience for the user. Once the user has logged in, the website will be able to provide a presentation that is tailored to the user's preferences.
Unlocking the Power of Your Website!
Why do some web sites reap huge benefits while others just get lost in the shuffle? Do some web masters have a secret that most of us have overlooked? Actually, there is a secret to unlocking the power of your web site and it has to do with words. When communicating via the web, words truly make all the difference. And the only way to get the most out of your website is carefully choosing what you have to say and how you say it.
For Newer Sites, Web Marketing Depends On Titles & Links!
We all start out the same. Some have budgets, some don't. The one true factor out there is that we all want to expose our business. For 99% of us, starting out in the world of web marketing means a few things:
7 Killer Ways To Increase Your Online Sales
Every online entrepreneur I talk to is asking the same question, "How do I increase my online sales, NOW?"
How To Start Your Own Website
I'm one of those people that always wanted a website, but had no clue as to using the internet. I could check my email and that was about it. I never heard of ISP, FTP or all those other "words".
How Improving Your Sites Usability Can Increase Your Buyers by 40% and Boost Each Order By 10%!
With all of the factors involved in designing and building a web site, one of the most influential questions is often overlooked:
Trust Us! Sending Credible Messages
A company must earn and keep trust or sales don't happen. Imagine that last Sunday, while you were reading the paper, you saw an ad for a great deal on a digital camera. You'd been considering buying one for a while, and this ad sealed the deal. You went to buy the camera, and the sales person told you they were sold out. They didn't offer you a rain check and instead substituted a different model for a "similar" price.
3 Reasons Why You Need URL Rewriting Module To Enchance Your Web
URL rewriting are major needs for your sites that produce a dynamic pages like PHP pages with redirection pages inside your index page.
Beautiful Web Sites Seldom Make More Sales
Designing an E-commerce Web site is not as simple as having a "pretty" site that is a pleasure to visit. While it is important to have an attractive site, as much thought must be given to functionality as to appearance.
Make Your Artist Website Sell!
Summary
Planning Your Website for Success
Most people know they need a website in order to publicise and promote their business but very few people know what they want in their website. Fewer still are those who can actually sit down and plan their websites well.
Top 5 Reasons to Track Your Website Traffic
#5 User Satisfaction: Learn what your visitors and site users do and do not like about your site. Using a good reporting service allows you to monitor your pages individually to see what pages are clicked on first, the most popular pages, duration of any given visitor's time viewing a page (visit duration), and what pages send your visitors off your site (exit pages).
Tips to Protect Your Downloads or Products
1. Upload robots.txt file in to your root directory and include the folder name where you set your downloads.
7 Profit Producing Reasons Why Every Successful Service Professional Needs A Web Presence
Your business website is a critical aspect of being able to start and continue conversations with potential clients. It's the ultimate self-service window for potential and current clients who come to you interested in your services and/or products.
How to Maximize the Value of Every Visitor to Your Website
While most marketers are beginning to understand the critical importance of maximizing conversion rates, few are tracking or working to maximize another critical measurement of website effectiveness.
Let Marketing Manage Your Website Content
The definition of the phrase "Content Management" depends on what the organization may need or a vendor may offer. There is no general purpose or standard content management system that can satisfy today's diverse business needs across the board. And so, factors for successfully implementing a content management system vary depending on individual business needs.
Websites: You Get What You Pay For!
So you finally decided to invest in a web presence or upgrade your current site? There are many available choices in "web designers" to choose from. This decision is an important one! You may have a relative or friend of a friend who will do your web site at a very low cost from the comfort of their house. At the same time you receive a quote of a higher price from a professional design house. Who do you choose? The first instinct is to always assume the lower price is a better choice. This article will discuss why this isn't always true, and why "YOU GET WHAT YOU PAY FOR!"
Do Dancers Need A Website?
Dance is how you pamper your soul and satiate your creativity. Mesmerized and overwhelmed with the pleasure that the dancer relishes while dancing, often there are some practical aspects that tend to get overlooked. As a dancer you might think: Why do I need a website at all? There is nothing I have to advertize!" That is not really so. As a dancer myself, I discovered the amazing advantages of having a website.
The Internet Road Map
1) Data Capture