SHARE
Facebook X Pinterest WhatsApp

Apache Guide: Dynamic Content with CGI Page 3

Written By
thumbnail Rich Bowen
Rich Bowen
Jul 20, 2010
ServerWatch content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More



When a program runs through the web server as a CGI program, it does not have that
path. Any programs that you invoke in your CGI program (like sendmail, for example)
will need to be specified by a full path, so that the shell can find them
when it attempts to execute your CGI program.

Syntax Errors

Most of the time when a CGI program fails, it’s because of a problem with the
program itself. This is particularly true once you get the hang of this CGI stuff,
and no longer make the above two mistakes. Always attempt to run your program
from the command line before you test if via a browser. This will elimate most
of your problems, and will prevent having to look through cryptic error logs.

For More Information

There are a large number of CGI resources on the Web. You can discuss CGI
problems with other users on the Usenet group
comp.infosystems.www.authoring.cgi. And the -servers mailing list from the
HTML Writers Guild is a great source of answers to your questions. You can
find out more at http://www.hwg.org/lists/hwg-servers/.

When you post a question about a CGI problem that you’re having, whether
to a mailing list, or to a newsgroup, make sure you provide enough information
about what happened, what you expected to happen, and how what actually happened
was different, what server you’re running, what language your CGI program
was in, and, if possible, the offending code. This will make finding your
problem much simpler.

Rich Bowen is the Director of Web Application Development at The Creative Group and the author of Apache Server Unleashed.

thumbnail Rich Bowen

Rich Bowen is a ServerWatch contributor.

Recommended for you...

What Is a Container? Understanding Containerization
What Is a Print Server? | How It Works and What It Does
Nisar Ahmad
Dec 8, 2023
What Is a Network Policy Server (NPS)? | Essential Guide
Virtual Servers vs. Physical Servers: Comparison and Use Cases
Ray Fernandez
Nov 14, 2023
ServerWatch Logo

ServerWatch is a top resource on servers. Explore the latest news, reviews and guides for server administrators now.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.