<?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>Deec.it &#187; psp</title>
	<atom:link href="http://www.deec.it/tag/psp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deec.it</link>
	<description>Le Guide Pratiche Dell&#039;Informatica</description>
	<lastBuildDate>Sun, 04 Sep 2011 16:52:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installare Mod_python su Debian</title>
		<link>http://www.deec.it/2009/09/16/installare-mod_python-su-debian/</link>
		<comments>http://www.deec.it/2009/09/16/installare-mod_python-su-debian/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 22:12:18 +0000</pubDate>
		<dc:creator>loade</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Programmazione e scripting]]></category>
		<category><![CDATA[mod_python]]></category>
		<category><![CDATA[psp]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.deec.it/?p=397</guid>
		<description><![CDATA[



Se volete utilizzare Python per scrivere le vostre applicazioni web le soluzioni sono molteplici, quella analizzata in quest&#8217;articolo si riferisce ad un modulo integrato in apache: Mod_python.
Per il corretto funzionamento di Mod_python su Debian dovete installare il pacchetto libapache2-mod-python :
apt-get install libapache2-mod-python
caricare il modulo dentro apache se non è già stato caricato:
a2enmod python
Se volete avere [...]]]></description>
			<content:encoded><![CDATA[<!-- AdSense Now! V1.77 -->
<!-- Post[count: 3] -->
<div class="adsense adsense-leadin" style="text-align:center;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-5841373120371067";
/* 468x60, creato 22/09/09 M&amp;P */
google_ad_slot = "8731175604";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>Se volete utilizzare Python per scrivere le vostre applicazioni web le soluzioni sono molteplici, quella analizzata in quest&#8217;articolo si riferisce ad un modulo integrato in apache: Mod_python.</p>
<p>Per il corretto funzionamento di Mod_python su Debian dovete installare il pacchetto libapache2-mod-python :</p>
<blockquote><p>apt-get install libapache2-mod-python</p></blockquote>
<p>caricare il modulo dentro apache se non è già stato caricato:</p>
<blockquote><p>a2enmod python</p></blockquote>
<p>Se volete avere maggiori informazioni sul modulo caricato aggiungete nel VirtualHost:</p>
<blockquote><p>&lt;Location /mpinfo&gt;<br />
SetHandler mod_python<br />
PythonHandler mod_python.testhandler<br />
&lt;/Location&gt;</p></blockquote>
<p>Se richiamate la seguente URL avrete tutte le informazioni sul modulo:</p>
<blockquote><p>http://www.nomesito.ext/mpinfo</p></blockquote>
<p>A questo punto dentro la home dir del sito create un file .htacces con il seguente contenuto:</p>
<blockquote><p>SetHandler mod_python<br />
PythonHandler mod_python.publisher<br />
PythonDebug On</p></blockquote>
<p>e la index.py:</p>
<blockquote><p>def index(req):<br />
return &#8220;Hello World!!!&#8221;</p></blockquote>
<p>Per vedere il nostro Hello World:</p>
<blockquote><p>http://www.nomesito.ext/</p></blockquote>
<p>Per approfondimenti <a title="www.modpython.org" href="http://www.modpython.org/live/current/doc-html/modpython.html" target="_blank">www.modpython.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deec.it/2009/09/16/installare-mod_python-su-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

