<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>v-nessa.net &#187; python</title>
	<atom:link href="http://www.v-nessa.net/tag/python/feed" rel="self" type="application/rss+xml" />
	<link>http://www.v-nessa.net</link>
	<description>pink is the new black</description>
	<lastBuildDate>Tue, 20 Jul 2010 13:48:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing Mod_Python</title>
		<link>http://www.v-nessa.net/2007/11/11/installing-mod_python</link>
		<comments>http://www.v-nessa.net/2007/11/11/installing-mod_python#comments</comments>
		<pubDate>Sun, 11 Nov 2007 08:46:28 +0000</pubDate>
		<dc:creator>Nessa</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.v-nessa.net/2007/11/11/installing-mod_python/</guid>
		<description><![CDATA[Update: These instructions may be outdated for most people. I&#8217;ve posted newer instructions on my collaborated sister site: http://www.thecpaneladmin.com/installing-mod-python-apache-2/ I figured I&#8217;d put this out here because it&#8217;s come up quite recently with people who are using Apache 1.3.x. If you haven&#8217;t gotten the balls to upgrade to Apache 2.x yet, you can still install [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.v-nessa.net%2F2007%2F11%2F11%2Finstalling-mod_python"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.v-nessa.net%2F2007%2F11%2F11%2Finstalling-mod_python&amp;source=nessa421&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Update: These instructions may be outdated for most people. I&#8217;ve posted newer instructions on my collaborated sister site:</p>
<p><a href="http://www.thecpaneladmin.com/installing-mod-python-apache-2/" target="_blank">http://www.thecpaneladmin.com/installing-mod-python-apache-2/</a></p>
<p>I figured I&#8217;d put this out here because it&#8217;s come up quite recently with people who are using Apache 1.3.x.  If you haven&#8217;t gotten the balls to upgrade to Apache 2.x yet, you can still install mod_python&#8230;just not as easily.  This simple walk through is for Apache 1.x and 2.x.</p>
<p>First, you need to determine what version of Python you are running.  To check, type &#8216;<strong>python -V</strong>&#8216; at the command line. If you are running Apache 1.3.x, you should use mod_python version 2.7.11.  For Apache 2.2.x, use 3.3.1.</p>
<p>1. Download the Python sources for the version of Python that you have installed, the run a configure and make (no install) just to compile them.  If you are running Apache 1.3, you should add<strong> &#8211;without-threads</strong> to your configure line.</p>
<p>2. Once you have this,  follow these steps to compile mod_python:</p>
<blockquote><p>cd /usr/src<br />
wget <a class="external free" title="http://www.trieuvan.com/apache/httpd/modpython/mod_python-2.7.11.tgz" rel="nofollow" href="http://www.trieuvan.com/apache/httpd/modpython/mod_python-2.7.11.tgz">http://www.trieuvan.com/apache/httpd/modpython/mod_python-2.7.11.tgz</a><br />
tar -xvzf mod_python-2.7.11.tgz<br />
cd mod_python-2.7.11</p></blockquote>
<blockquote><p>./configure &#8211;with-apxs=/usr/local/apache/bin/apxs &#8211;with-python=/usr/src/Python2.5.5</p></blockquote>
<p>The <strong>&#8211;with-python</strong> path should reflect the location of the sources you downloaded and compiled earlier.</p>
<p>3. If you are on Apache 1.3, you now need to perform the steps below.  If not, skip to step 4:</p>
<blockquote><p>pico src/Makefile</p></blockquote>
<p>Locate the &#8216;CFLAGS&#8217; line, and add the <strong>-DEAPI</strong> switch so it looks like this:</p>
<blockquote><p>CFLAGS=$(OPT) $(INCLUDES) -DEAPI</p></blockquote>
<p>Then add <strong>-lutil</strong> to the LIBS line like so:</p>
<blockquote><p>LIBS=-lm  /usr/src/Python-2.5.1/libpython2.5.a -lutil</p></blockquote>
<p>4. Run the <strong>make</strong> and <strong>make install</strong>.</p>
<p>5.  Now edit httpd.conf and create your handlers.  This will tell Apache which file extensions to interpret through mod_python.  If you have mod_rewrite installed and enabled, users can override this in their .htaccess files:</p>
<blockquote><p>LoadModule python_module libexec/mod_python.so<br />
AddModule mod_python.c<br />
AddHandler mod_python .psp .py</p></blockquote>
<p><!--adsense#img_banner--></p>
<p><map name='google_ad_map_105_7fa65e237551a74a'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/105?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_105_7fa65e237551a74a' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=105&amp;url= http%3A%2F%2Fwww.v-nessa.net%2F2007%2F11%2F11%2Finstalling-mod_python' /></p><img src="http://www.v-nessa.net/?ak_action=api_record_view&id=105&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.v-nessa.net/2007/11/11/installing-mod_python/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
