LinuxDev.net: Developing Python-Based CGI-Scripts: Preparations | Linux Today

LinuxDev.net: Developing Python-Based CGI-Scripts: Preparations

Written By
Web Webster
Web Webster
Jun 14, 2000

[ Thanks to BeOpen
for this link. ]

“Python is rapidly gaining popularity in the Open Source
community. Maybe the best proof of this is all the Python modules
that are in development. People simply want to use Python in a
wider range of programming areas. In a previous article from
BeOpen.com, we showed you how to use the Gnome-Python module for
developing Gnome applications. In this article series, you can
learn how to integrate the Python interpreter into the Apache web
server as a module, and then use Python’s CGI module for writing
Python-based CGI-scripts (note the distinction between Apache
modules and Python modules). Using this technique, your
Python-based CGI-scripts will execute much faster than if you used
the native Python interpreter.”

In our first article, we’ll detail the steps you need to
know to successfully integrate the Python interpreter into Apache.
If you just take your time, this is not hard to do at
all.

“To build a Python module for Apache, there are three steps you
need to take: installing the Python libraries, recompiling Apache
with the PyApache module, and finally telling Apache about PyApache
in the httpd.conf file. In this section, we will go through these
three steps.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 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.