<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Jazzo weBlog</title>
	<atom:link href="http://jazzo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jazzo.wordpress.com</link>
	<description>Free software, the next world...</description>
	<lastBuildDate>Tue, 21 Nov 2006 17:51:25 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>it</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='jazzo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0b8899b1e39a6fcc1b818da55dbe182c?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Jazzo weBlog</title>
		<link>http://jazzo.wordpress.com</link>
	</image>
			<item>
		<title>Appunti CVS &#8211; Import modulo</title>
		<link>http://jazzo.wordpress.com/2006/11/21/appunti-cvs-import-modulo/</link>
		<comments>http://jazzo.wordpress.com/2006/11/21/appunti-cvs-import-modulo/#comments</comments>
		<pubDate>Tue, 21 Nov 2006 17:51:25 +0000</pubDate>
		<dc:creator>jazzo</dc:creator>
				<category><![CDATA[Appunti CVS]]></category>

		<guid isPermaLink="false">http://jazzo.wordpress.com/2006/11/21/appunti-cvs-import-modulo/</guid>
		<description><![CDATA[Tutti i file vengono copiati sul server, quindi accertatevi che nella directory corrente siano presenti solo i file che desiderete importare. Per importare i file eseguite il comando:
cvs import  -m &#8220;initial import&#8221; myproject/ &#60;vendor-tag&#62; &#60;release-tag&#62;
vendor-tag è il nome dell&#8217;azienda (di solito io metto un nome identificativo del Software)
release-tag è la release iniziale del software
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=13&subd=jazzo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Tutti i file vengono copiati sul server, quindi accertatevi che nella directory corrente siano presenti solo i file che desiderete importare. Per importare i file eseguite il comando:</p>
<blockquote><p>cvs import  -m &#8220;initial import&#8221; myproject/ &lt;vendor-tag&gt; &lt;release-tag&gt;</p></blockquote>
<p><strong>vendor-tag</strong> è il nome dell&#8217;azienda (di solito io metto un nome identificativo del Software)<br />
<strong>release-tag </strong>è la release iniziale del software</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jazzo.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jazzo.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jazzo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jazzo.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jazzo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jazzo.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jazzo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jazzo.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jazzo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jazzo.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jazzo.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jazzo.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=13&subd=jazzo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jazzo.wordpress.com/2006/11/21/appunti-cvs-import-modulo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abea710c1d739a795a4ff5e2a9eb1404?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jazzo</media:title>
		</media:content>
	</item>
		<item>
		<title>Appunti CVS &#8211; branch e tag</title>
		<link>http://jazzo.wordpress.com/2006/11/21/appunti-cvs-branch-e-tag/</link>
		<comments>http://jazzo.wordpress.com/2006/11/21/appunti-cvs-branch-e-tag/#comments</comments>
		<pubDate>Tue, 21 Nov 2006 17:19:59 +0000</pubDate>
		<dc:creator>jazzo</dc:creator>
				<category><![CDATA[Appunti CVS]]></category>

		<guid isPermaLink="false">http://jazzo.wordpress.com/2006/11/21/appunti-cvs-branch-e-tag/</guid>
		<description><![CDATA[Per creare un Tag:
cvs tag -R &#60;nome_release&#62;
-R &#8211;&#62; Recursively (default value but like this is better!!  
ATTENZIONE!! Verificare alla fine dell&#8217;operazione che il tutto sia andato a buon fine, se c&#8217;e&#8217; qualche errore potrebbe essere tagged solo una parte, fino al punto in cui si e&#8217; verificato l&#8217;errore.
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
Per rinominare un branch, prima lo duplico [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=12&subd=jazzo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Per creare un Tag:</p>
<blockquote><p>cvs tag -R &lt;nome_release&gt;</p></blockquote>
<p>-R &#8211;&gt; Recursively (default value but like this is better!! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>ATTENZIONE!! Verificare alla fine dell&#8217;operazione che il tutto sia andato a buon fine, se c&#8217;e&#8217; qualche errore potrebbe essere tagged solo una parte, fino al punto in cui si e&#8217; verificato l&#8217;errore.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Per rinominare un branch, prima lo duplico e poi elimino il vecchio:</p>
<blockquote><p>cvs admin -n newname:oldname<br />
cvs tag -Bd oldname</p></blockquote>
<p>You&#8217;re a bit confused, however.  Revisions and tags do not reference<br />
names, a tag is just a symbolic name for a particular revision number.</p>
<p>-Larry Jones</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>To delete a tag, specify the `-d&#8217; option to either cvs tag or cvs rtag.<br />
For example:</p>
<blockquote><p>cvs rtag -d rel-0-4 tc</p></blockquote>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>You can create a branch with tag -b; for example, assuming you&#8217;re in a working copy:</p>
<blockquote><p>$ cvs tag -b rel-1-0-patches</p></blockquote>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>To check out a branch from the repository, invoke `checkout&#8217; with the `-r&#8217; flag, followed by the tag name of the branch (see section Creating a branch):</p>
<blockquote><p>$ cvs checkout -r rel-1-0-patches tc</p></blockquote>
<p>Or, if you already have a working copy, you can switch it to a given branch with `update -r&#8217;:</p>
<blockquote><p>
$ cvs update -r rel-1-0-patches tc</p></blockquote>
<p>or equivalently:</p>
<blockquote><p>
$ cd tc<br />
$ cvs update -r rel-1-0-patches</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jazzo.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jazzo.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jazzo.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jazzo.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jazzo.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jazzo.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jazzo.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jazzo.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jazzo.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jazzo.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jazzo.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jazzo.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=12&subd=jazzo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jazzo.wordpress.com/2006/11/21/appunti-cvs-branch-e-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abea710c1d739a795a4ff5e2a9eb1404?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jazzo</media:title>
		</media:content>
	</item>
		<item>
		<title>Procedure di backup (risiede tutto sul server di sviluppo)</title>
		<link>http://jazzo.wordpress.com/2006/11/09/procedure-di-backup-risiede-tutto-sul-server-di-sviluppo/</link>
		<comments>http://jazzo.wordpress.com/2006/11/09/procedure-di-backup-risiede-tutto-sul-server-di-sviluppo/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 22:46:33 +0000</pubDate>
		<dc:creator>jazzo</dc:creator>
				<category><![CDATA[Installazione server]]></category>

		<guid isPermaLink="false">http://jazzo.wordpress.com/2006/11/09/procedure-di-backup-risiede-tutto-sul-server-di-sviluppo/</guid>
		<description><![CDATA[Questo utente si occupa di tutte le procedure di backup, sia delle applicazioni online che di quelle in locale, Repository compreso.
Intanto creo utente e gruppo backup.
Questi i suoi crontab:
 backup
00 20 * * * /home/backup/make_backup.sh
00 5 * * * /home/backup/get_backup.sh
00 14 * * * /home/backup/get_backup.sh
00 21 * * * /home/backup/get_backup.sh
Ogni backup risiede in 3 posti [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=7&subd=jazzo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Questo utente si occupa di tutte le <strong>procedure di backup</strong>, sia delle applicazioni online che di quelle in locale, Repository compreso.<br />
Intanto creo utente e gruppo <strong>backup</strong>.</p>
<p>Questi i suoi crontab:</p>
<blockquote><p> backup<br />
00 20 * * * /home/backup/make_backup.sh<br />
00 5 * * * /home/backup/get_backup.sh<br />
00 14 * * * /home/backup/get_backup.sh<br />
00 21 * * * /home/backup/get_backup.sh</p></blockquote>
<p>Ogni backup risiede in 3 posti fisicamente diversi:</p>
<ul>
<li>sullo stesso server da cui è generato e su cui risiede l&#8217;applicazione</li>
<li>sul server madre online</li>
<li>sul mio server di backup interno</li>
</ul>
<p>Ho due tipologie di backup diverse, in base al server su cui risiede il sito/applicazione:</p>
<ul>
<li>server su cui non ho la shell</li>
<li>server su cui ho la shell (posso lanciare script in Perl)</li>
</ul>
<p>Ogni sera alle 20 vengono generati i backup con <a href="http://jazzo.wordpress.com/2006/11/09/make_backupsh-effettua-chiamate-via-http-per-creare-i-backup/" title="make backup">make_backup.sh</a> sui server su cui non ho accesso con shell (vedi Aruba &amp; C.).<br />
Sui server dove ho la shell invece utilizzo lo script in Perl <a href="http://jazzo.wordpress.com/2006/11/09/backupdbpl-effettua-dump-database-server-con-shell/" title="backup in perl">backupdb.pl</a> che fa un dump del database e lo sposta via FTP sul server madre online.</p>
<p>La procedura <a href="http://jazzo.wordpress.com/2006/11/09/get_backupsh-preleva-i-backup-dai-vari-server/" title="get backup">get_backup.sh</a> alle 5 del mattino, alle 14 e alle 20 va a prendersi i vari backup sul server madre.</p>
<p><em>In realtà per i server su cui non ho shell le copie sono 2, manca quella sul server madre. Non mi interessa però perchè sono siti/app minori.</em></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jazzo.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jazzo.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jazzo.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jazzo.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jazzo.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jazzo.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jazzo.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jazzo.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jazzo.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jazzo.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jazzo.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jazzo.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=7&subd=jazzo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jazzo.wordpress.com/2006/11/09/procedure-di-backup-risiede-tutto-sul-server-di-sviluppo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abea710c1d739a795a4ff5e2a9eb1404?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jazzo</media:title>
		</media:content>
	</item>
		<item>
		<title>get_backup.sh &#8211; preleva i backup dai vari server</title>
		<link>http://jazzo.wordpress.com/2006/11/09/get_backupsh-preleva-i-backup-dai-vari-server/</link>
		<comments>http://jazzo.wordpress.com/2006/11/09/get_backupsh-preleva-i-backup-dai-vari-server/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 22:33:14 +0000</pubDate>
		<dc:creator>jazzo</dc:creator>
				<category><![CDATA[Installazione server]]></category>

		<guid isPermaLink="false">http://jazzo.wordpress.com/2006/11/09/get_backupsh-preleva-i-backup-dai-vari-server/</guid>
		<description><![CDATA[
### Preleva Backup dal dominio1
wget &#8211;output-file=log_bck.txt -N -l1 &#8211;ftp-user=&#60;user&#62; &#8211;ftp-password=&#60;password&#62; &#8211;no-remove-listing ftp://ftp.dominio1.it/backup/*.gz
### Preleva Backup dal dominio2
wget &#8211;output-file=log_bck.txt -N -l1 &#8211;ftp-user=&#60;user&#62; &#8211;ftp-password=&#60;password&#62; &#8211;no-remove-listing ftp://ftp.dominio2.it/backup/*.gz
### Preleva Backup dal dominio3
wget &#8211;output-file=log_bck.txt -N -l1 &#8211;ftp-user=&#60;user&#62; &#8211;ftp-password=&#60;password&#62; &#8211;no-remove-listing ftp://ftp.dominio3.it/backup/*.gz

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=10&subd=jazzo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><blockquote><p>
### Preleva Backup dal dominio1<br />
wget &#8211;output-file=log_bck.txt -N -l1 &#8211;ftp-user=<em>&lt;user&gt;</em> &#8211;ftp-password=<em>&lt;password&gt;</em> &#8211;no-remove-listing ftp://ftp.dominio1.it/backup/*.gz<br />
### Preleva Backup dal dominio2<br />
wget &#8211;output-file=log_bck.txt -N -l1 &#8211;ftp-user=<em>&lt;user&gt;</em> &#8211;ftp-password=<em>&lt;password&gt;</em> &#8211;no-remove-listing ftp://ftp.dominio2.it/backup/*.gz<br />
### Preleva Backup dal dominio3<br />
wget &#8211;output-file=log_bck.txt -N -l1 &#8211;ftp-user=<em>&lt;user&gt;</em> &#8211;ftp-password=<em>&lt;password&gt;</em> &#8211;no-remove-listing ftp://ftp.dominio3.it/backup/*.gz
</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jazzo.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jazzo.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jazzo.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jazzo.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jazzo.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jazzo.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jazzo.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jazzo.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jazzo.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jazzo.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jazzo.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jazzo.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=10&subd=jazzo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jazzo.wordpress.com/2006/11/09/get_backupsh-preleva-i-backup-dai-vari-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abea710c1d739a795a4ff5e2a9eb1404?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jazzo</media:title>
		</media:content>
	</item>
		<item>
		<title>make_backup.sh &#8211; effettua chiamate via HTTP per creare i backup</title>
		<link>http://jazzo.wordpress.com/2006/11/09/make_backupsh-effettua-chiamate-via-http-per-creare-i-backup/</link>
		<comments>http://jazzo.wordpress.com/2006/11/09/make_backupsh-effettua-chiamate-via-http-per-creare-i-backup/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 22:28:25 +0000</pubDate>
		<dc:creator>jazzo</dc:creator>
				<category><![CDATA[Installazione server]]></category>

		<guid isPermaLink="false">http://jazzo.wordpress.com/2006/11/09/make_backupsh-effettua-chiamate-via-http-per-creare-i-backup/</guid>
		<description><![CDATA[make_backup.sh:

# Backup su dominio 1
wget &#8211;spider http://www.******.**/db-bck.php?dbname=Sql*****_*
wget &#8211;spider http://www.******.**/db-bck.php?dbname=Sql*****_*
wget &#8211;spider http://www.******.**/db-bck.php?dbname=Sql*****_*
# Backup su dominio 2
wget &#8211;spider http://www.******.**/db-bck.php?dbname=Sql*****_*
# Backup su dominio 3
wget &#8211;spider http://www.******.**/db-bck.php?dbname=Sql*****_*

db-bck.php risiede sui diversi domini (vedi sopra) genera un dump del database.
La procedura è molto spartana ma fa il suo dovere, naturalmente deve trattarsi di piccoli database altrimenti non funzia. Però per tanti [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=9&subd=jazzo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>make_backup.sh:</p>
<blockquote><p>
# Backup su dominio 1<br />
wget &#8211;spider http://www.******.**/db-bck.php?dbname=Sql*****_*<br />
wget &#8211;spider http://www.******.**/db-bck.php?dbname=Sql*****_*<br />
wget &#8211;spider http://www.******.**/db-bck.php?dbname=Sql*****_*<br />
# Backup su dominio 2<br />
wget &#8211;spider http://www.******.**/db-bck.php?dbname=Sql*****_*<br />
# Backup su dominio 3<br />
wget &#8211;spider http://www.******.**/db-bck.php?dbname=Sql*****_*
</p></blockquote>
<p>db-bck.php risiede sui diversi domini (vedi sopra) genera un dump del database.<br />
La procedura è molto spartana ma fa il suo dovere, naturalmente deve trattarsi di piccoli database altrimenti non funzia. Però per tanti piccoli domini dove i database sono si e no qualche Mb va benissimo&#8230;</p>
<p>db-bck.php:</p>
<blockquote><p> #### Parametri di configurazione per Backup Database<br />
// $dbname DEVE essere passato come parametro GET, altrimenti lo script esce<br />
if( !isset($dbname) )<br />
{<br />
exit;<br />
}<br />
$username = &#8220;********&#8221;;<br />
$password = &#8220;********&#8221;;<br />
$hostname = &#8220;***.***.***.***&#8221;;</p>
<p>#### Tipo di salvataggio<br />
// Le opzioni sono: file -&gt; invio diretto file con handler<br />
// file_backup -&gt; scrive backup in $dir_backup<br />
$dir_backup = &#8220;backup/&#8221;;<br />
$target = &#8220;file_backup&#8221;;<br />
#### FINE Parametri ######################################</p>
<p>if($target==&#8221;file&#8221;)<br />
{<br />
header(&#8216;Content-Type: application/octetstream&#8217;);<br />
header(&#8216;Content-Disposition: filename=&#8221;backup.sql&#8221;&#8216;);<br />
$asfile=&#8221;download&#8221;;<br />
}</p>
<p>$crlf=&#8221;\r\n&#8221;;</p>
<p>$link = mysql_connect($hostname, $username, $password);<br />
$database = mysql_select_db($dbname);</p>
<p>$dump_buffer=&#8221;";</p>
<p>$tables = mysql_query(&#8220;show tables from $dbname&#8221;);<br />
$num_tables = mysql_num_rows($tables);</p>
<p>if($num_tables == 0)<br />
{<br />
echo &#8220;# No Tables Found&#8221;;<br />
exit;<br />
}</p>
<p>$dump_buffer.= &#8220;# DatabaseBackup $crlf&#8221;;<br />
$dump_buffer.= &#8220;# Backup made:$crlf&#8221;;<br />
$dump_buffer.= &#8220;# &#8220;.date(&#8220;F j, Y, g:i a&#8221;).&#8221;$crlf&#8221;;<br />
$dump_buffer.= &#8220;# Database: $dbname$crlf&#8221;;<br />
$dump_buffer.= &#8220;# Backed up tables : $dbname $crlf&#8221;;</p>
<p>$i = 0;<br />
while($i &#8220;;<br />
$dump_buffer.= &#8220;# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;$crlf&#8221;;<br />
$dump_buffer.= &#8220;$crlf#$crlf&#8221;;<br />
$dump_buffer.= &#8220;# Table structure for table &#8216;$table&#8217;$crlf&#8221;;<br />
$dump_buffer.= &#8220;#$crlf$crlf&#8221;;<br />
$db = $table;<br />
$dump_buffer.= get_table_def($table, $crlf,$dbname).&#8221;;$crlf&#8221;;<br />
$dump_buffer.= &#8220;$crlf#$crlf&#8221;;<br />
$dump_buffer.= &#8220;# Dumping data for table &#8216;$table&#8217;$crlf&#8221;;<br />
$dump_buffer.= &#8220;#$crlf$crlf&#8221;;<br />
$tmp_buffer=&#8221;";<br />
get_table_content($dbname, $table, 0, 0, &#8216;my_handler&#8217;, $dbname);<br />
$dump_buffer.=$tmp_buffer;</p>
<p>$i++;<br />
$dump_buffer.= &#8220;$crlf&#8221;;<br />
}</p>
<p>if($target==&#8221;file_backup&#8221;)<br />
{<br />
$dump_buffer = gzencode($dump_buffer);<br />
$fp = fopen( $dir_backup . $dbname . &#8216;_&#8217; . date(&#8220;w&#8221;) . &#8216;.sql.gz&#8217;, &#8216;wb&#8217;);<br />
fwrite($fp, $dump_buffer);<br />
fclose($fp);<br />
echo &#8220;OK&#8221;;<br />
} else {<br />
echo $dump_buffer;<br />
}<br />
exit;</p>
<p>function get_table_def($table, $crlf,$dbname)<br />
{</p>
<p>$schema_create = &#8220;DROP TABLE IF EXISTS `$table`;$crlf&#8221;;<br />
$db = $table;</p>
<p>$schema_create .= &#8220;CREATE TABLE `$table` ($crlf&#8221;;</p>
<p>$result = mysql_query(&#8220;SHOW FIELDS FROM &#8221; .$dbname.&#8221;.&#8221;<br />
. $table) or die();<br />
while($row = mysql_fetch_array($result))<br />
{<br />
$schema_create .= &#8221;   `$row[Field]` $row[Type]&#8220;;</p>
<p>if(isset($row["Default"]) &amp;&amp; (!empty($row["Default"]) || $row["Default"] == &#8220;0&#8243;))<br />
$schema_create .= &#8221; DEFAULT &#8216;$row[Default]&#8216;&#8221;;<br />
if($row["Null"] != &#8220;YES&#8221;)<br />
$schema_create .= &#8221; NOT NULL&#8221;;<br />
if($row["Extra"] != &#8220;&#8221;)<br />
$schema_create .= &#8221; $row[Extra]&#8220;;<br />
$schema_create .= &#8220;,$crlf&#8221;;<br />
}<br />
$schema_create = ereg_replace(&#8220;,&#8221;.$crlf.&#8221;$&#8221;, &#8220;&#8221;, $schema_create);<br />
$result = mysql_query(&#8220;SHOW KEYS FROM &#8221; .$dbname.&#8221;.&#8221; .<br />
$table) or die();<br />
while($row = mysql_fetch_array($result))<br />
{<br />
$kname=$row['Key_name'];<br />
$comment=(isset($row['Comment'])) ? $row['Comment'] : &#8221;;<br />
$sub_part=(isset($row['Sub_part'])) ? $row['Sub_part'] : &#8221;;</p>
<p>if(($kname != &#8220;PRIMARY&#8221;) &amp;&amp; ($row['Non_unique'] == 0))<br />
$kname=&#8221;UNIQUE|$kname&#8221;;</p>
<p>if($comment==&#8221;FULLTEXT&#8221;)<br />
$kname=&#8221;FULLTEXT|$kname&#8221;;<br />
if(!isset($index[$kname]))<br />
$index[$kname] = array();</p>
<p>if ($sub_part&gt;1)<br />
$index[$kname][] = $row['Column_name'] . &#8220;(&#8221; . $sub_part . &#8220;)&#8221;;<br />
else<br />
$index[$kname][] = $row['Column_name'];<br />
}</p>
<p>while(list($x, $columns) = @each($index))<br />
{<br />
$schema_create .= &#8220;,$crlf&#8221;;<br />
if($x == &#8220;PRIMARY&#8221;)<br />
$schema_create .= &#8221;   PRIMARY KEY (`&#8221;;<br />
elseif (substr($x,0,6) == &#8220;UNIQUE&#8221;)<br />
$schema_create .= &#8221;   UNIQUE &#8221; .substr($x,7).&#8221; (`&#8221;;<br />
elseif (substr($x,0,8) == &#8220;FULLTEXT&#8221;)<br />
$schema_create .= &#8221;   FULLTEXT &#8220;.substr($x,9).&#8221; (`&#8221;;<br />
else<br />
$schema_create .= &#8221;   KEY $x (`&#8221;;</p>
<p>$schema_create .= implode($columns,&#8221;, &#8220;) . &#8220;`)&#8221;;<br />
}</p>
<p>$schema_create .= &#8220;$crlf)&#8221;;<br />
if(get_magic_quotes_gpc()) {<br />
return (stripslashes($schema_create));<br />
} else {<br />
return ($schema_create);<br />
}<br />
}<br />
function get_table_content($db, $table, $limit_from = 0, $limit_to = 0,$handler)<br />
{<br />
// Defines the offsets to use<br />
if ($limit_from &gt; 0) {<br />
$limit_from&#8211;;<br />
} else {<br />
$limit_from = 0;<br />
}<br />
if ($limit_to &gt; 0 &amp;&amp; $limit_from &gt;= 0) {<br />
$add_query  = &#8221; LIMIT $limit_from, $limit_to&#8221;;<br />
} else {<br />
$add_query  = &#8221;;<br />
}</p>
<p>get_table_content_fast($db, $table, $add_query,$handler);</p>
<p>}</p>
<p>function get_table_content_fast($db, $table, $add_query = &#8221;,$handler)<br />
{<br />
$result = mysql_query(&#8216;SELECT * FROM &#8216; . $db . &#8216;.&#8217; . $table . $add_query) or die();<br />
if ($result != false) {</p>
<p>@set_time_limit(1200); // 20 Minutes</p>
<p>// Checks whether the field is an integer or not<br />
for ($j = 0; $j &lt; mysql_num_fields($result); $j++) {<br />
$field_set[$j] = mysql_field_name($result, $j);<br />
$type          = mysql_field_type($result, $j);<br />
if ($type == &#8216;tinyint&#8217; || $type == &#8217;smallint&#8217; || $type == &#8216;mediumint&#8217; || $type == &#8216;int&#8217; ||<br />
$type == &#8216;bigint&#8217;  ||$type == &#8216;timestamp&#8217;) {<br />
$field_num[$j] = true;<br />
} else {<br />
$field_num[$j] = false;<br />
}<br />
} // end for</p>
<p>// Get the scheme<br />
if (isset($GLOBALS['showcolumns'])) {<br />
$fields        = implode(&#8216;, &#8216;, $field_set);<br />
$schema_insert = &#8220;INSERT INTO `$table` ($fields) VALUES (&#8220;;<br />
} else {<br />
$schema_insert = &#8220;INSERT INTO `$table` VALUES (&#8220;;<br />
}</p>
<p>$field_count = mysql_num_fields($result);</p>
<p>$search  = array(&#8220;\x0a&#8221;,&#8221;\x0d&#8221;,&#8221;\x1a&#8221;); //\x08\\x09, not required<br />
$replace = array(&#8220;\\n&#8221;,&#8221;\\r&#8221;,&#8221;\Z&#8221;);</p>
<p>while ($row = mysql_fetch_row($result)) {<br />
for ($j = 0; $j &lt; $field_count; $j++) {<br />
if (!isset($row[$j])) {<br />
$values[]     = &#8216;NULL&#8217;;<br />
} else if (!empty($row[$j])) {<br />
// a number<br />
if ($field_num[$j]) {<br />
$values[] = $row[$j];<br />
}<br />
// a string<br />
else {<br />
$values[] = &#8220;&#8216;&#8221; . str_replace($search, $replace, addslashes($row[$j])) . &#8220;&#8216;&#8221;;<br />
}<br />
} else {<br />
$values[]     = &#8220;&#8221;&#8221;;<br />
} // end if<br />
} // end for</p>
<p>$insert_line = $schema_insert . implode(&#8216;,&#8217;, $values) . &#8216;)&#8217;;<br />
unset($values);</p>
<p>// Call the handler<br />
$handler($insert_line);<br />
} // end while<br />
} // end if ($result != false)</p>
<p>return true;<br />
}</p>
<p>function my_handler($sql_insert)<br />
{<br />
global $crlf, $asfile;<br />
global $tmp_buffer;</p>
<p>if(empty($asfile))<br />
$tmp_buffer.= htmlspecialchars(&#8220;$sql_insert;$crlf&#8221;);<br />
else<br />
$tmp_buffer.= &#8220;$sql_insert;$crlf&#8221;;<br />
}</p>
<p>function faqe_db_error()<br />
{<br />
return mysql_error();<br />
}</p>
<p>function faqe_db_insert_id($result)<br />
{<br />
return mysql_insert_id($result);<br />
}</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jazzo.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jazzo.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jazzo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jazzo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jazzo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jazzo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jazzo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jazzo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jazzo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jazzo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jazzo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jazzo.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=9&subd=jazzo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jazzo.wordpress.com/2006/11/09/make_backupsh-effettua-chiamate-via-http-per-creare-i-backup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abea710c1d739a795a4ff5e2a9eb1404?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jazzo</media:title>
		</media:content>
	</item>
		<item>
		<title>backupdb.pl &#8211; effettua dump database (server con shell)</title>
		<link>http://jazzo.wordpress.com/2006/11/09/backupdbpl-effettua-dump-database-server-con-shell/</link>
		<comments>http://jazzo.wordpress.com/2006/11/09/backupdbpl-effettua-dump-database-server-con-shell/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 22:17:46 +0000</pubDate>
		<dc:creator>jazzo</dc:creator>
				<category><![CDATA[Installazione server]]></category>

		<guid isPermaLink="false">http://jazzo.wordpress.com/2006/11/09/backupdbpl-effettua-dump-database-server-con-shell/</guid>
		<description><![CDATA[
#!/usr/bin/perl
use strict;
use warnings; # replaces -w, but much better
use Net::FTP;
# Time vars per impostare ora del dump
my @timevars = localtime();
# Variabili per connessione FTP al server madre
my $server=&#8221;ftp.******&#8221;;
my $user=&#8221;*****&#8221;;
my $password=&#8221;*****&#8221;;
my $dir=&#8221;www.***.***/backup&#8221;;
my $db=&#8221;/home/**********/&#60;dir_application&#62;/tmp/&#60;name_application&#62;$timevars[6]_$timevars[2].sql.gz&#8221;;
my $success=&#8221;true&#8221;;
my $db_tran=&#8221;true&#8221;;
#This dumps the mysql tables for backup
`/usr/bin/mysqldump -u&#60;user&#62; -p&#60;password&#62; &#8211;opt &#60;nome_db&#62; &#124; gzip &#62; /home/**********/&#60;dir_application&#62;/tmp/&#60;name_application&#62;$timevars[6]_$timevars[2].sql.gz`;
my $ftp=Net::FTP-&#62;new($server) or $success=&#8221;false&#8221;;
$ftp-&#62;login($user, $password) or $success=&#8221;false&#8221;;
$ftp-&#62;pasv() or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=8&subd=jazzo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><blockquote><p>
#!/usr/bin/perl</p>
<p>use strict;<br />
use warnings; # replaces -w, but much better<br />
use Net::FTP;</p>
<p># Time vars per impostare ora del dump<br />
my @timevars = localtime();</p>
<p># Variabili per connessione FTP al server madre<br />
my $server=&#8221;ftp.******&#8221;;<br />
my $user=&#8221;*****&#8221;;<br />
my $password=&#8221;*****&#8221;;<br />
my $dir=&#8221;www.***.***/backup&#8221;;<br />
my $db=&#8221;/home/**********/<em>&lt;dir_application&gt;</em>/tmp/<em>&lt;name_application&gt;</em>$timevars[6]_$timevars[2].sql.gz&#8221;;<br />
my $success=&#8221;true&#8221;;<br />
my $db_tran=&#8221;true&#8221;;</p>
<p>#This dumps the mysql tables for backup<br />
`/usr/bin/mysqldump -u<em>&lt;user&gt;</em> -p<em>&lt;password&gt;</em> &#8211;opt <em>&lt;nome_db&gt;</em> | gzip &gt; /home/**********/<em>&lt;dir_application&gt;</em>/tmp/<em>&lt;name_application&gt;</em>$timevars[6]_$timevars[2].sql.gz`;</p>
<p>my $ftp=Net::FTP-&gt;new($server) or $success=&#8221;false&#8221;;</p>
<p>$ftp-&gt;login($user, $password) or $success=&#8221;false&#8221;;<br />
$ftp-&gt;pasv() or $success=&#8221;false&#8221;;<br />
$ftp-&gt;binary() or $success=&#8221;false&#8221;;<br />
$ftp-&gt;cwd($dir) or $success=&#8217;false&#8217;;<br />
$ftp-&gt;put($db) or $db_tran=&#8221;false&#8221;;<br />
$ftp-&gt;quit;</p>
<p>my $reason;<br />
my $test=&#8221;true&#8221;;</p>
<p>if ($success eq &#8220;false&#8221;){$reason .=&#8221;Unsuccessful login\n\n&#8221;;<br />
$test=&#8221;false&#8221;;}<br />
if ($db_tran eq &#8220;false&#8221;){$reason .=&#8221;Unsuccessful file transfer db\n\n&#8221;;<br />
$test=&#8221;false&#8221;;}</p>
<p>if ($test eq &#8220;false&#8221;) {<br />
my $subject=&#8221;Backup on <em>&lt;nome_server&gt;</em> Failed !&#8221;;<br />
my $to=&#8217;******@******.**&#8217;;</p>
<p>BEGIN {<br />
$ENV{PATH}=&#8221;/bin:/usr/bin&#8221;;<br />
delete @ENV{qw(IFS CDPATH ENV BASH_ENV) };<br />
}<br />
open MAIL,&#8221;| /usr/lib/sendmail -t -i -F&#8217;<em>&lt;dominio_server&gt;</em>&#8216; -f&#8217;HostingLinux\@<em>&lt;dominio_server&gt;</em>&#8216;&#8221; or dienice(&#8220;Couldn&#8217;t open sendmail $!&#8221;);<br />
print MAIL &#8220;To: $to\n&#8221;;<br />
print MAIL &#8220;Reply-To: HostingLinux\@<em>&lt;dominio_server&gt;</em>\n&#8221;;<br />
print MAIL &#8220;Subject: $subject\n\n&#8221;;<br />
print MAIL $reason;<br />
close MAIL or die(&#8220;Error closing sendmail: $!&#8221;);<br />
}
</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jazzo.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jazzo.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jazzo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jazzo.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jazzo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jazzo.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jazzo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jazzo.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jazzo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jazzo.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jazzo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jazzo.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=8&subd=jazzo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jazzo.wordpress.com/2006/11/09/backupdbpl-effettua-dump-database-server-con-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abea710c1d739a795a4ff5e2a9eb1404?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jazzo</media:title>
		</media:content>
	</item>
		<item>
		<title>Utente devel del server di sviluppo</title>
		<link>http://jazzo.wordpress.com/2006/11/09/utente-devel-del-server-di-sviluppo/</link>
		<comments>http://jazzo.wordpress.com/2006/11/09/utente-devel-del-server-di-sviluppo/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 21:48:55 +0000</pubDate>
		<dc:creator>jazzo</dc:creator>
				<category><![CDATA[Installazione server]]></category>

		<guid isPermaLink="false">http://jazzo.wordpress.com/2006/11/09/utente-devel-del-server-di-sviluppo/</guid>
		<description><![CDATA[Creato utente e gruppo devel.
Creata directory /home/devel/www dentro la quale sviluppo le applicazioni. Poi ho configurato Apache in modo da creare dei domini virtuali locali. Vedi file di configurazione httpd.conf
Per vederli da macchine Windorz devi configurare il file hosts aggiungendo righe del tipo:

127.0.0.1       localhost
192.168.1.3    gdm.luke.local
Per questo [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=6&subd=jazzo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Creato utente e gruppo <strong>devel</strong>.<br />
Creata directory <strong>/home/devel/www</strong> dentro la quale sviluppo le applicazioni. Poi ho configurato Apache in modo da creare dei domini virtuali locali. Vedi file di configurazione <a href="http://jazzo.wordpress.com/2006/11/09/httpdconf-di-apache/" title="httpd.conf di apache">httpd.conf</a><br />
Per vederli da macchine Windorz devi configurare il file <strong>hosts</strong> aggiungendo righe del tipo:<br />
<code><br />
127.0.0.1       localhost<br />
192.168.1.3    gdm.luke.local</code></p>
<p>Per questo utente va poi configurato il CVS (Repository) e Samba per accedere direttamente ai file a Windorz.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jazzo.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jazzo.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jazzo.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jazzo.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jazzo.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jazzo.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jazzo.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jazzo.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jazzo.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jazzo.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jazzo.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jazzo.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=6&subd=jazzo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jazzo.wordpress.com/2006/11/09/utente-devel-del-server-di-sviluppo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abea710c1d739a795a4ff5e2a9eb1404?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jazzo</media:title>
		</media:content>
	</item>
		<item>
		<title>httpd.conf di Apache</title>
		<link>http://jazzo.wordpress.com/2006/11/09/httpdconf-di-apache/</link>
		<comments>http://jazzo.wordpress.com/2006/11/09/httpdconf-di-apache/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 21:42:00 +0000</pubDate>
		<dc:creator>jazzo</dc:creator>
				<category><![CDATA[Installazione server]]></category>

		<guid isPermaLink="false">http://jazzo.wordpress.com/2006/11/09/httpdconf-di-apache/</guid>
		<description><![CDATA[ #
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See &#60;URL:http://httpd.apache.org/docs/2.0/&#62; for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=5&subd=jazzo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> #<br />
# Based upon the NCSA server configuration files originally by Rob McCool.<br />
#<br />
# This is the main Apache server configuration file.  It contains the<br />
# configuration directives that give the server its instructions.<br />
# See &lt;URL:http://httpd.apache.org/docs/2.0/&gt; for detailed information about<br />
# the directives.<br />
#<br />
# Do NOT simply read the instructions in here without understanding<br />
# what they do.  They&#8217;re here only as hints or reminders.  If you are unsure<br />
# consult the online docs. You have been warned.<br />
#<br />
# The configuration directives are grouped into three basic sections:<br />
#  1. Directives that control the operation of the Apache server process as a<br />
#     whole (the &#8216;global environment&#8217;).<br />
#  2. Directives that define the parameters of the &#8216;main&#8217; or &#8216;default&#8217; server,<br />
#     which responds to requests that aren&#8217;t handled by a virtual host.<br />
#     These directives also provide default values for the settings<br />
#     of all virtual hosts.<br />
#  3. Settings for virtual hosts, which allow Web requests to be sent to<br />
#     different IP addresses or hostnames and have them handled by the<br />
#     same Apache server process.<br />
#<br />
# Configuration and logfile names: If the filenames you specify for many<br />
# of the server&#8217;s control files begin with &#8220;/&#8221; (or &#8220;drive:/&#8221; for Win32), the<br />
# server will use that explicit path.  If the filenames do *not* begin<br />
# with &#8220;/&#8221;, the value of ServerRoot is prepended &#8212; so &#8220;logs/foo.log&#8221;<br />
# with ServerRoot set to &#8220;/usr/local/apache2&#8243; will be interpreted by the<br />
# server as &#8220;/usr/local/apache2/logs/foo.log&#8221;.<br />
#</p>
<p>### Section 1: Global Environment<br />
#<br />
# The directives in this section affect the overall operation of Apache,<br />
# such as the number of concurrent requests it can handle or where it<br />
# can find its configuration files.<br />
#</p>
<p>#<br />
# ServerRoot: The top of the directory tree under which the server&#8217;s<br />
# configuration, error, and log files are kept.<br />
#<br />
# NOTE!  If you intend to place this on an NFS (or otherwise network)<br />
# mounted filesystem then please read the LockFile documentation (available<br />
# at &lt;URL:http://httpd.apache.org/docs/2.0/mod/mpm_common.html#lockfile&gt;);<br />
# you will save yourself a lot of trouble.<br />
#<br />
# Do NOT add a slash at the end of the directory path.<br />
#<br />
ServerRoot &#8220;/usr/local/apache2&#8243;</p>
<p>#<br />
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.<br />
#<br />
&lt;IfModule !mpm_winnt.c&gt;<br />
&lt;IfModule !mpm_netware.c&gt;<br />
#LockFile logs/accept.lock<br />
&lt;/IfModule&gt;<br />
&lt;/IfModule&gt;</p>
<p>#<br />
# ScoreBoardFile: File used to store internal server process information.<br />
# If unspecified (the default), the scoreboard will be stored in an<br />
# anonymous shared memory segment, and will be unavailable to third-party<br />
# applications.<br />
# If specified, ensure that no two invocations of Apache share the same<br />
# scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.<br />
#<br />
&lt;IfModule !mpm_netware.c&gt;<br />
&lt;IfModule !perchild.c&gt;<br />
#ScoreBoardFile logs/apache_runtime_status<br />
&lt;/IfModule&gt;<br />
&lt;/IfModule&gt;</p>
<p>#<br />
# PidFile: The file in which the server should record its process<br />
# identification number when it starts.<br />
#<br />
&lt;IfModule !mpm_netware.c&gt;<br />
PidFile logs/httpd.pid<br />
&lt;/IfModule&gt;</p>
<p>#<br />
# Timeout: The number of seconds before receives and sends time out.<br />
#<br />
Timeout 300</p>
<p>#<br />
# KeepAlive: Whether or not to allow persistent connections (more than<br />
# one request per connection). Set to &#8220;Off&#8221; to deactivate.<br />
#<br />
KeepAlive On</p>
<p>#<br />
# MaxKeepAliveRequests: The maximum number of requests to allow<br />
# during a persistent connection. Set to 0 to allow an unlimited amount.<br />
# We recommend you leave this number high, for maximum performance.<br />
#<br />
MaxKeepAliveRequests 100</p>
<p>#<br />
# KeepAliveTimeout: Number of seconds to wait for the next request from the<br />
# same client on the same connection.<br />
#<br />
KeepAliveTimeout 15</p>
<p>##<br />
## Server-Pool Size Regulation (MPM specific)<br />
##</p>
<p># prefork MPM<br />
# StartServers: number of server processes to start<br />
# MinSpareServers: minimum number of server processes which are kept spare<br />
# MaxSpareServers: maximum number of server processes which are kept spare<br />
# MaxClients: maximum number of server processes allowed to start<br />
# MaxRequestsPerChild: maximum number of requests a server process serves<br />
&lt;IfModule prefork.c&gt;<br />
StartServers         5<br />
MinSpareServers      5<br />
MaxSpareServers     10<br />
MaxClients         150<br />
MaxRequestsPerChild  0<br />
&lt;/IfModule&gt;</p>
<p># worker MPM<br />
# StartServers: initial number of server processes to start<br />
# MaxClients: maximum number of simultaneous client connections<br />
# MinSpareThreads: minimum number of worker threads which are kept spare<br />
# MaxSpareThreads: maximum number of worker threads which are kept spare<br />
# ThreadsPerChild: constant number of worker threads in each server process<br />
# MaxRequestsPerChild: maximum number of requests a server process serves<br />
&lt;IfModule worker.c&gt;<br />
StartServers         2<br />
MaxClients         150<br />
MinSpareThreads     25<br />
MaxSpareThreads     75<br />
ThreadsPerChild     25<br />
MaxRequestsPerChild  0<br />
&lt;/IfModule&gt;</p>
<p># perchild MPM<br />
# NumServers: constant number of server processes<br />
# StartThreads: initial number of worker threads in each server process<br />
# MinSpareThreads: minimum number of worker threads which are kept spare<br />
# MaxSpareThreads: maximum number of worker threads which are kept spare<br />
# MaxThreadsPerChild: maximum number of worker threads in each server process<br />
# MaxRequestsPerChild: maximum number of connections per server process<br />
&lt;IfModule perchild.c&gt;<br />
NumServers           5<br />
StartThreads         5<br />
MinSpareThreads      5<br />
MaxSpareThreads     10<br />
MaxThreadsPerChild  20<br />
MaxRequestsPerChild  0<br />
&lt;/IfModule&gt;</p>
<p># WinNT MPM<br />
# ThreadsPerChild: constant number of worker threads in the server process<br />
# MaxRequestsPerChild: maximum  number of requests a server process serves<br />
&lt;IfModule mpm_winnt.c&gt;<br />
ThreadsPerChild 250<br />
MaxRequestsPerChild  0<br />
&lt;/IfModule&gt;</p>
<p># BeOS MPM<br />
# StartThreads: how many threads do we initially spawn?<br />
# MaxClients:   max number of threads we can have (1 thread == 1 client)<br />
# MaxRequestsPerThread: maximum number of requests each thread will process<br />
&lt;IfModule beos.c&gt;<br />
StartThreads               10<br />
MaxClients                 50<br />
MaxRequestsPerThread       10000<br />
&lt;/IfModule&gt;</p>
<p># NetWare MPM<br />
# ThreadStackSize: Stack size allocated for each worker thread<br />
# StartThreads: Number of worker threads launched at server startup<br />
# MinSpareThreads: Minimum number of idle threads, to handle request spikes<br />
# MaxSpareThreads: Maximum number of idle threads<br />
# MaxThreads: Maximum number of worker threads alive at the same time<br />
# MaxRequestsPerChild: Maximum  number of requests a thread serves. It is<br />
#                      recommended that the default value of 0 be set for this<br />
#                      directive on NetWare.  This will allow the thread to<br />
#                      continue to service requests indefinitely.<br />
&lt;IfModule mpm_netware.c&gt;<br />
ThreadStackSize      65536<br />
StartThreads           250<br />
MinSpareThreads         25<br />
MaxSpareThreads        250<br />
MaxThreads            1000<br />
MaxRequestsPerChild      0<br />
MaxMemFree             100<br />
&lt;/IfModule&gt;</p>
<p># OS/2 MPM<br />
# StartServers: Number of server processes to maintain<br />
# MinSpareThreads: Minimum number of idle threads per process,<br />
#                  to handle request spikes<br />
# MaxSpareThreads: Maximum number of idle threads per process<br />
# MaxRequestsPerChild: Maximum number of connections per server process<br />
&lt;IfModule mpmt_os2.c&gt;<br />
StartServers           2<br />
MinSpareThreads        5<br />
MaxSpareThreads       10<br />
MaxRequestsPerChild    0<br />
&lt;/IfModule&gt;</p>
<p>#<br />
# Listen: Allows you to bind Apache to specific IP addresses and/or<br />
# ports, instead of the default. See also the &lt;VirtualHost&gt;<br />
# directive.<br />
#<br />
# Change this to Listen on specific IP addresses as shown below to<br />
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)<br />
#<br />
#Listen 12.34.56.78:80</p>
<p>Listen *:80</p>
<p>#<br />
# Dynamic Shared Object (DSO) Support<br />
#<br />
# To be able to use the functionality of a module which was built as a DSO you<br />
# have to place corresponding `LoadModule&#8217; lines at this location so the<br />
# directives contained in it are actually available _before_ they are used.<br />
# Statically compiled modules (those listed by `httpd -l&#8217;) do not need<br />
# to be loaded here.<br />
#<br />
# Example:<br />
# LoadModule foo_module modules/mod_foo.so</p>
<p># Modulo PHP<br />
LoadModule php5_module        modules/libphp5.so</p>
<p>#</p>
<p>#<br />
# ExtendedStatus controls whether Apache will generate &#8220;full&#8221; status<br />
# information (ExtendedStatus On) or just basic information (ExtendedStatus<br />
# Off) when the &#8220;server-status&#8221; handler is called. The default is Off.<br />
#<br />
#ExtendedStatus On</p>
<p>### Section 2: &#8216;Main&#8217; server configuration<br />
#<br />
# The directives in this section set up the values used by the &#8216;main&#8217;<br />
# server, which responds to any requests that aren&#8217;t handled by a<br />
# &lt;VirtualHost&gt; definition.  These values also provide defaults for<br />
# any &lt;VirtualHost&gt; containers you may define later in the file.<br />
#<br />
# All of these directives may appear inside &lt;VirtualHost&gt; containers,<br />
# in which case these default settings will be overridden for the<br />
# virtual host being defined.<br />
#</p>
<p>&lt;IfModule !mpm_winnt.c&gt;<br />
&lt;IfModule !mpm_netware.c&gt;<br />
#<br />
# If you wish httpd to run as a different user or group, you must run<br />
# httpd as root initially and it will switch.<br />
#<br />
# User/Group: The name (or #number) of the user/group to run httpd as.<br />
#  . On SCO (ODT 3) use &#8220;User nouser&#8221; and &#8220;Group nogroup&#8221;.<br />
#  . On HPUX you may not be able to use shared memory as nobody, and the<br />
#    suggested workaround is to create a user www and use that user.<br />
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)<br />
#  when the value of (unsigned)Group is above 60000;<br />
#  don&#8217;t use Group #-1 on these systems!<br />
#<br />
User nobody<br />
Group #-1<br />
&lt;/IfModule&gt;<br />
&lt;/IfModule&gt;</p>
<p>#<br />
# ServerAdmin: Your address, where problems with the server should be<br />
# e-mailed.  This address appears on some server-generated pages, such<br />
# as error documents.  e.g. admin@your-domain.com<br />
#<br />
ServerAdmin you@example.com</p>
<p>#<br />
# ServerName gives the name and port that the server uses to identify itself.<br />
# This can often be determined automatically, but we recommend you specify<br />
# it explicitly to prevent problems during startup.<br />
#<br />
# If this is not set to valid DNS name for your host, server-generated<br />
# redirections will not work.  See also the UseCanonicalName directive.<br />
#<br />
# If your host doesn&#8217;t have a registered DNS name, enter its IP address here.<br />
# You will have to access it by its address anyway, and this will make<br />
# redirections work in a sensible way.<br />
#<br />
ServerName 127.0.0.1:80</p>
<p>#<br />
# UseCanonicalName: Determines how Apache constructs self-referencing<br />
# URLs and the SERVER_NAME and SERVER_PORT variables.<br />
# When set &#8220;Off&#8221;, Apache will use the Hostname and Port supplied<br />
# by the client.  When set &#8220;On&#8221;, Apache will use the value of the<br />
# ServerName directive.<br />
#<br />
UseCanonicalName On</p>
<p>#<br />
# DocumentRoot: The directory out of which you will serve your<br />
# documents. By default, all requests are taken from this directory, but<br />
# symbolic links and aliases may be used to point to other locations.<br />
#<br />
DocumentRoot &#8220;/usr/local/apache2/htdocs&#8221;</p>
<p>#<br />
# Each directory to which Apache has access can be configured with respect<br />
# to which services and features are allowed and/or disabled in that<br />
# directory (and its subdirectories).<br />
#<br />
# First, we configure the &#8220;default&#8221; to be a very restrictive set of<br />
# features.<br />
#<br />
&lt;Directory /&gt;<br />
Order deny,allow<br />
Deny from all<br />
Options FollowSymLinks<br />
AllowOverride All<br />
&lt;/Directory&gt;</p>
<p>#<br />
# Note that from this point forward you must specifically allow<br />
# particular features to be enabled &#8211; so if something&#8217;s not working as<br />
# you might expect, make sure that you have specifically enabled it<br />
# below.<br />
#</p>
<p>#<br />
# This should be changed to whatever you set DocumentRoot to.<br />
#<br />
&lt;Directory &#8220;/usr/local/apache2/htdocs&#8221;&gt;</p>
<p>#<br />
# Possible values for the Options directive are &#8220;None&#8221;, &#8220;All&#8221;,<br />
# or any combination of:<br />
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews<br />
#<br />
# Note that &#8220;MultiViews&#8221; must be named *explicitly* &#8212; &#8220;Options All&#8221;<br />
# doesn&#8217;t give it to you.<br />
#<br />
# The Options directive is both complicated and important.  Please see<br />
# http://httpd.apache.org/docs/2.0/mod/core.html#options<br />
# for more information.<br />
#<br />
Options Indexes FollowSymLinks</p>
<p>#<br />
# AllowOverride controls what directives may be placed in .htaccess files.<br />
# It can be &#8220;All&#8221;, &#8220;None&#8221;, or any combination of the keywords:<br />
#   Options FileInfo AuthConfig Limit Indexes<br />
#<br />
AllowOverride None</p>
<p>#<br />
# Controls who can get stuff from this server.<br />
#<br />
Order allow,deny<br />
Allow from all</p>
<p>&lt;/Directory&gt;</p>
<p>#<br />
# UserDir: The name of the directory that is appended onto a user&#8217;s home<br />
# directory if a ~user request is received.<br />
#<br />
UserDir public_html</p>
<p>#<br />
# Control access to UserDir directories.  The following is an example<br />
# for a site where these directories are restricted to read-only.<br />
#<br />
#&lt;Directory /home/*/public_html&gt;<br />
#    AllowOverride FileInfo AuthConfig Limit Indexes<br />
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec<br />
#    &lt;Limit GET POST OPTIONS PROPFIND&gt;<br />
#        Order allow,deny<br />
#        Allow from all<br />
#    &lt;/Limit&gt;<br />
#    &lt;LimitExcept GET POST OPTIONS PROPFIND&gt;<br />
#        Order deny,allow<br />
#        Deny from all<br />
#    &lt;/LimitExcept&gt;<br />
#&lt;/Directory&gt;</p>
<p>#<br />
# DirectoryIndex: sets the file that Apache will serve if a directory<br />
# is requested.<br />
#<br />
# The index.html.var file (a type-map) is used to deliver content-<br />
# negotiated documents.  The MultiViews Option can be used for the<br />
# same purpose, but it is much slower.<br />
#<br />
DirectoryIndex index.html index.php index.html.var</p>
<p>#<br />
# AccessFileName: The name of the file to look for in each directory<br />
# for additional configuration directives.  See also the AllowOverride<br />
# directive.<br />
#<br />
AccessFileName .htaccess</p>
<p>#<br />
# The following lines prevent .htaccess and .htpasswd files from being<br />
# viewed by Web clients.<br />
#<br />
&lt;FilesMatch &#8220;^\.ht&#8221;&gt;<br />
Order allow,deny<br />
Deny from all<br />
&lt;/FilesMatch&gt;</p>
<p>#<br />
# TypesConfig describes where the mime.types file (or equivalent) is<br />
# to be found.<br />
#<br />
TypesConfig conf/mime.types</p>
<p>#<br />
# DefaultType is the default MIME type the server will use for a document<br />
# if it cannot otherwise determine one, such as from filename extensions.<br />
# If your server contains mostly text or HTML documents, &#8220;text/plain&#8221; is<br />
# a good value.  If most of your content is binary, such as applications<br />
# or images, you may want to use &#8220;application/octet-stream&#8221; instead to<br />
# keep browsers from trying to display binary files as though they are<br />
# text.<br />
#<br />
DefaultType text/plain</p>
<p>#<br />
# The mod_mime_magic module allows the server to use various hints from the<br />
# contents of the file itself to determine its type.  The MIMEMagicFile<br />
# directive tells the module where the hint definitions are located.<br />
#<br />
&lt;IfModule mod_mime_magic.c&gt;<br />
MIMEMagicFile conf/magic<br />
&lt;/IfModule&gt;</p>
<p>#<br />
# HostnameLookups: Log the names of clients or just their IP addresses<br />
# e.g., www.apache.org (on) or 204.62.129.132 (off).<br />
# The default is off because it&#8217;d be overall better for the net if people<br />
# had to knowingly turn this feature on, since enabling it means that<br />
# each client request will result in AT LEAST one lookup request to the<br />
# nameserver.<br />
#<br />
HostnameLookups Off</p>
<p>#<br />
# EnableMMAP: Control whether memory-mapping is used to deliver<br />
# files (assuming that the underlying OS supports it).<br />
# The default is on; turn this off if you serve from NFS-mounted<br />
# filesystems.  On some systems, turning it off (regardless of<br />
# filesystem) can improve performance; for details, please see<br />
# http://httpd.apache.org/docs/2.0/mod/core.html#enablemmap<br />
#<br />
#EnableMMAP off</p>
<p>#<br />
# EnableSendfile: Control whether the sendfile kernel support is<br />
# used  to deliver files (assuming that the OS supports it).<br />
# The default is on; turn this off if you serve from NFS-mounted<br />
# filesystems.  Please see<br />
# http://httpd.apache.org/docs/2.0/mod/core.html#enablesendfile<br />
#<br />
#EnableSendfile off</p>
<p>#<br />
# ErrorLog: The location of the error log file.<br />
# If you do not specify an ErrorLog directive within a &lt;VirtualHost&gt;<br />
# container, error messages relating to that virtual host will be<br />
# logged here.  If you *do* define an error logfile for a &lt;VirtualHost&gt;<br />
# container, that host&#8217;s errors will be logged there and not here.<br />
#<br />
ErrorLog logs/error_log</p>
<p>#<br />
# LogLevel: Control the number of messages logged to the error_log.<br />
# Possible values include: debug, info, notice, warn, error, crit,<br />
# alert, emerg.<br />
#<br />
LogLevel warn</p>
<p>#<br />
# The following directives define some format nicknames for use with<br />
# a CustomLog directive (see below).<br />
#<br />
LogFormat &#8220;%h %l %u %t \&#8221;%r\&#8221; %&gt;s %b \&#8221;%{Referer}i\&#8221; \&#8221;%{User-Agent}i\&#8221;" combined<br />
LogFormat &#8220;%h %l %u %t \&#8221;%r\&#8221; %&gt;s %b&#8221; common<br />
LogFormat &#8220;%{Referer}i -&gt; %U&#8221; referer<br />
LogFormat &#8220;%{User-agent}i&#8221; agent</p>
<p># You need to enable mod_logio.c to use %I and %O<br />
#LogFormat &#8220;%h %l %u %t \&#8221;%r\&#8221; %&gt;s %b \&#8221;%{Referer}i\&#8221; \&#8221;%{User-Agent}i\&#8221; %I %O&#8221; combinedio</p>
<p>#<br />
# The location and format of the access logfile (Common Logfile Format).<br />
# If you do not define any access logfiles within a &lt;VirtualHost&gt;<br />
# container, they will be logged here.  Contrariwise, if you *do*<br />
# define per-&lt;VirtualHost&gt; access logfiles, transactions will be<br />
# logged therein and *not* in this file.<br />
#<br />
CustomLog logs/access_log common</p>
<p>#<br />
# If you would like to have agent and referer logfiles, uncomment the<br />
# following directives.<br />
#<br />
#CustomLog logs/referer_log referer<br />
#CustomLog logs/agent_log agent</p>
<p>#<br />
# If you prefer a single logfile with access, agent, and referer information<br />
# (Combined Logfile Format) you can use the following directive.<br />
#<br />
#CustomLog logs/access_log combined</p>
<p>#<br />
# ServerTokens<br />
# This directive configures what you return as the Server HTTP response<br />
# Header. The default is &#8216;Full&#8217; which sends information about the OS-Type<br />
# and compiled in modules.<br />
# Set to one of:  Full | OS | Minor | Minimal | Major | Prod<br />
# where Full conveys the most information, and Prod the least.<br />
#<br />
ServerTokens Full</p>
<p>#<br />
# Optionally add a line containing the server version and virtual host<br />
# name to server-generated pages (internal error documents, FTP directory<br />
# listings, mod_status and mod_info output etc., but not CGI generated<br />
# documents or custom error documents).<br />
# Set to &#8220;EMail&#8221; to also include a mailto: link to the ServerAdmin.<br />
# Set to one of:  On | Off | EMail<br />
#<br />
ServerSignature On</p>
<p>#<br />
# Aliases: Add here as many aliases as you need (with no limit). The format is<br />
# Alias fakename realname<br />
#<br />
# Note that if you include a trailing / on fakename then the server will<br />
# require it to be present in the URL.  So &#8220;/icons&#8221; isn&#8217;t aliased in this<br />
# example, only &#8220;/icons/&#8221;.  If the fakename is slash-terminated, then the<br />
# realname must also be slash terminated, and if the fakename omits the<br />
# trailing slash, the realname must also omit it.<br />
#<br />
# We include the /icons/ alias for FancyIndexed directory listings.  If you<br />
# do not use FancyIndexing, you may comment this out.<br />
#<br />
Alias /icons/ &#8220;/usr/local/apache2/icons/&#8221;</p>
<p>&lt;Directory &#8220;/usr/local/apache2/icons&#8221;&gt;<br />
Options Indexes MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</p>
<p>#<br />
# This should be changed to the ServerRoot/manual/.  The alias provides<br />
# the manual, even if you choose to move your DocumentRoot.  You may comment<br />
# this out if you do not care for the documentation.<br />
#<br />
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ &#8220;/usr/local/apache2/manual$1&#8243;</p>
<p>&lt;Directory &#8220;/usr/local/apache2/manual&#8221;&gt;<br />
Options Indexes<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all</p>
<p>&lt;Files *.html&gt;<br />
SetHandler type-map<br />
&lt;/Files&gt;</p>
<p>SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1<br />
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2<br />
&lt;/Directory&gt;</p>
<p>#<br />
# ScriptAlias: This controls which directories contain server scripts.<br />
# ScriptAliases are essentially the same as Aliases, except that<br />
# documents in the realname directory are treated as applications and<br />
# run by the server when requested rather than as documents sent to the client.<br />
# The same rules about trailing &#8220;/&#8221; apply to ScriptAlias directives as to<br />
# Alias.<br />
#<br />
ScriptAlias /cgi-bin/ &#8220;/usr/local/apache2/cgi-bin/&#8221;</p>
<p>&lt;IfModule mod_cgid.c&gt;<br />
#<br />
# Additional to mod_cgid.c settings, mod_cgid has Scriptsock &lt;path&gt;<br />
# for setting UNIX socket for communicating with cgid.<br />
#<br />
#Scriptsock            logs/cgisock<br />
&lt;/IfModule&gt;</p>
<p>#<br />
# &#8220;/usr/local/apache2/cgi-bin&#8221; should be changed to whatever your ScriptAliased<br />
# CGI directory exists, if you have that configured.<br />
#<br />
&lt;Directory &#8220;/usr/local/apache2/cgi-bin&#8221;&gt;<br />
AllowOverride None<br />
Options None<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</p>
<p>#<br />
# Redirect allows you to tell clients about documents which used to exist in<br />
# your server&#8217;s namespace, but do not anymore. This allows you to tell the<br />
# clients where to look for the relocated document.<br />
# Example:<br />
# Redirect permanent /foo http://www.example.com/bar</p>
<p>#<br />
# Directives controlling the display of server-generated directory listings.<br />
#</p>
<p>#<br />
# IndexOptions: Controls the appearance of server-generated directory<br />
# listings.<br />
#<br />
IndexOptions FancyIndexing VersionSort</p>
<p>#<br />
# AddIcon* directives tell the server which icon to show for different<br />
# files or filename extensions.  These are only displayed for<br />
# FancyIndexed directories.<br />
#<br />
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip</p>
<p>AddIconByType (TXT,/icons/text.gif) text/*<br />
AddIconByType (IMG,/icons/image2.gif) image/*<br />
AddIconByType (SND,/icons/sound2.gif) audio/*<br />
AddIconByType (VID,/icons/movie.gif) video/*</p>
<p>AddIcon /icons/binary.gif .bin .exe<br />
AddIcon /icons/binhex.gif .hqx<br />
AddIcon /icons/tar.gif .tar<br />
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv<br />
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip<br />
AddIcon /icons/a.gif .ps .ai .eps<br />
AddIcon /icons/layout.gif .html .shtml .htm .pdf<br />
AddIcon /icons/text.gif .txt<br />
AddIcon /icons/c.gif .c<br />
AddIcon /icons/p.gif .pl .py<br />
AddIcon /icons/f.gif .for<br />
AddIcon /icons/dvi.gif .dvi<br />
AddIcon /icons/uuencoded.gif .uu<br />
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl<br />
AddIcon /icons/tex.gif .tex<br />
AddIcon /icons/bomb.gif core</p>
<p>AddIcon /icons/back.gif ..<br />
AddIcon /icons/hand.right.gif README<br />
AddIcon /icons/folder.gif ^^DIRECTORY^^<br />
AddIcon /icons/blank.gif ^^BLANKICON^^</p>
<p>#<br />
# DefaultIcon is which icon to show for files which do not have an icon<br />
# explicitly set.<br />
#<br />
DefaultIcon /icons/unknown.gif</p>
<p>#<br />
# AddDescription allows you to place a short description after a file in<br />
# server-generated indexes.  These are only displayed for FancyIndexed<br />
# directories.<br />
# Format: AddDescription &#8220;description&#8221; filename<br />
#<br />
#AddDescription &#8220;GZIP compressed document&#8221; .gz<br />
#AddDescription &#8220;tar archive&#8221; .tar<br />
#AddDescription &#8220;GZIP compressed tar archive&#8221; .tgz</p>
<p>#<br />
# ReadmeName is the name of the README file the server will look for by<br />
# default, and append to directory listings.<br />
#<br />
# HeaderName is the name of a file which should be prepended to<br />
# directory indexes.<br />
ReadmeName README.html<br />
HeaderName HEADER.html</p>
<p>#<br />
# IndexIgnore is a set of filenames which directory indexing should ignore<br />
# and not include in the listing.  Shell-style wildcarding is permitted.<br />
#<br />
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t</p>
<p>#<br />
# DefaultLanguage and AddLanguage allows you to specify the language of<br />
# a document. You can then use content negotiation to give a browser a<br />
# file in a language the user can understand.<br />
#<br />
# Specify a default language. This means that all data<br />
# going out without a specific language tag (see below) will<br />
# be marked with this one. You probably do NOT want to set<br />
# this unless you are sure it is correct for all cases.<br />
#<br />
# * It is generally better to not mark a page as<br />
# * being a certain language than marking it with the wrong<br />
# * language!<br />
#<br />
# DefaultLanguage nl<br />
#<br />
# Note 1: The suffix does not have to be the same as the language<br />
# keyword &#8212; those with documents in Polish (whose net-standard<br />
# language code is pl) may wish to use &#8220;AddLanguage pl .po&#8221; to<br />
# avoid the ambiguity with the common suffix for perl scripts.<br />
#<br />
# Note 2: The example entries below illustrate that in some cases<br />
# the two character &#8216;Language&#8217; abbreviation is not identical to<br />
# the two character &#8216;Country&#8217; code for its country,<br />
# E.g. &#8216;Danmark/dk&#8217; versus &#8216;Danish/da&#8217;.<br />
#<br />
# Note 3: In the case of &#8216;ltz&#8217; we violate the RFC by using a three char<br />
# specifier. There is &#8216;work in progress&#8217; to fix this and get<br />
# the reference data for rfc1766 cleaned up.<br />
#<br />
# Catalan (ca) &#8211; Croatian (hr) &#8211; Czech (cs) &#8211; Danish (da) &#8211; Dutch (nl)<br />
# English (en) &#8211; Esperanto (eo) &#8211; Estonian (et) &#8211; French (fr) &#8211; German (de)<br />
# Greek-Modern (el) &#8211; Hebrew (he) &#8211; Italian (it) &#8211; Japanese (ja)<br />
# Korean (ko) &#8211; Luxembourgeois* (ltz) &#8211; Norwegian Nynorsk (nn)<br />
# Norwegian (no) &#8211; Polish (pl) &#8211; Portugese (pt)<br />
# Brazilian Portuguese (pt-BR) &#8211; Russian (ru) &#8211; Swedish (sv)<br />
# Simplified Chinese (zh-CN) &#8211; Spanish (es) &#8211; Traditional Chinese (zh-TW)<br />
#<br />
AddLanguage ca .ca<br />
AddLanguage cs .cz .cs<br />
AddLanguage da .dk<br />
AddLanguage de .de<br />
AddLanguage el .el<br />
AddLanguage en .en<br />
AddLanguage eo .eo<br />
AddLanguage es .es<br />
AddLanguage et .et<br />
AddLanguage fr .fr<br />
AddLanguage he .he<br />
AddLanguage hr .hr<br />
AddLanguage it .it<br />
AddLanguage ja .ja<br />
AddLanguage ko .ko<br />
AddLanguage ltz .ltz<br />
AddLanguage nl .nl<br />
AddLanguage nn .nn<br />
AddLanguage no .no<br />
AddLanguage pl .po<br />
AddLanguage pt .pt<br />
AddLanguage pt-BR .pt-br<br />
AddLanguage ru .ru<br />
AddLanguage sv .sv<br />
AddLanguage zh-CN .zh-cn<br />
AddLanguage zh-TW .zh-tw</p>
<p>#<br />
# LanguagePriority allows you to give precedence to some languages<br />
# in case of a tie during content negotiation.<br />
#<br />
# Just list the languages in decreasing order of preference. We have<br />
# more or less alphabetized them here. You probably want to change this.<br />
#<br />
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW</p>
<p>#<br />
# ForceLanguagePriority allows you to serve a result page rather than<br />
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)<br />
# [in case no accepted languages matched the available variants]<br />
#<br />
ForceLanguagePriority Prefer Fallback</p>
<p>#<br />
# Commonly used filename extensions to character sets. You probably<br />
# want to avoid clashes with the language extensions, unless you<br />
# are good at carefully testing your setup after each change.<br />
# See http://www.iana.org/assignments/character-sets for the<br />
# official list of charset names and their respective RFCs.<br />
#<br />
AddCharset ISO-8859-1  .iso8859-1  .latin1<br />
AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen<br />
AddCharset ISO-8859-3  .iso8859-3  .latin3<br />
AddCharset ISO-8859-4  .iso8859-4  .latin4<br />
AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru<br />
AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb<br />
AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk<br />
AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb<br />
AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk<br />
AddCharset ISO-2022-JP .iso2022-jp .jis<br />
AddCharset ISO-2022-KR .iso2022-kr .kis<br />
AddCharset ISO-2022-CN .iso2022-cn .cis<br />
AddCharset Big5        .Big5       .big5<br />
# For russian, more than one charset is used (depends on client, mostly):<br />
AddCharset WINDOWS-1251 .cp-1251   .win-1251<br />
AddCharset CP866       .cp866<br />
AddCharset KOI8-r      .koi8-r .koi8-ru<br />
AddCharset KOI8-ru     .koi8-uk .ua<br />
AddCharset ISO-10646-UCS-2 .ucs2<br />
AddCharset ISO-10646-UCS-4 .ucs4<br />
AddCharset UTF-8       .utf8</p>
<p># The set below does not map to a specific (iso) standard<br />
# but works on a fairly wide range of browsers. Note that<br />
# capitalization actually matters (it should not, but it<br />
# does for some browsers).<br />
#<br />
# See http://www.iana.org/assignments/character-sets<br />
# for a list of sorts. But browsers support few.<br />
#<br />
AddCharset GB2312      .gb2312 .gb<br />
AddCharset utf-7       .utf7<br />
AddCharset utf-8       .utf8<br />
AddCharset big5        .big5 .b5<br />
AddCharset EUC-TW      .euc-tw<br />
AddCharset EUC-JP      .euc-jp<br />
AddCharset EUC-KR      .euc-kr<br />
AddCharset shift_jis   .sjis</p>
<p>#<br />
# AddType for PHP !<br />
#<br />
AddType application/x-httpd-php .php .phtml<br />
AddType application/x-httpd-php-source .phps</p>
<p>#<br />
# AddType allows you to add to or override the MIME configuration<br />
# file mime.types for specific file types.<br />
#<br />
#AddType application/x-tar .tgz<br />
#<br />
# AddEncoding allows you to have certain browsers uncompress<br />
# information on the fly. Note: Not all browsers support this.<br />
# Despite the name similarity, the following Add* directives have nothing<br />
# to do with the FancyIndexing customization directives above.<br />
#<br />
#AddEncoding x-compress .Z<br />
#AddEncoding x-gzip .gz .tgz<br />
#<br />
# If the AddEncoding directives above are commented-out, then you<br />
# probably should define those extensions to indicate media types:<br />
#<br />
AddType application/x-compress .ZAddType application/x-gzip .gz .tgz</p>
<p>#<br />
# AddHandler allows you to map certain file extensions to &#8220;handlers&#8221;:<br />
# actions unrelated to filetype. These can be either built into the server<br />
# or added with the Action directive (see below)<br />
#<br />
# To use CGI scripts outside of ScriptAliased directories:<br />
# (You will also need to add &#8220;ExecCGI&#8221; to the &#8220;Options&#8221; directive.)<br />
#<br />
#AddHandler cgi-script .cgi</p>
<p>#<br />
# For files that include their own HTTP headers:<br />
#<br />
#AddHandler send-as-is asis</p>
<p>#<br />
# For server-parsed imagemap files:<br />
#<br />
#AddHandler imap-file map</p>
<p>#<br />
# For type maps (negotiated resources):<br />
# (This is enabled by default to allow the Apache &#8220;It Worked&#8221; page<br />
#  to be distributed in multiple languages.)<br />
#<br />
AddHandler type-map var</p>
<p>#<br />
# Filters allow you to process content before it is sent to the client.<br />
#<br />
# To parse .shtml files for server-side includes (SSI):<br />
# (You will also need to add &#8220;Includes&#8221; to the &#8220;Options&#8221; directive.)<br />
#<br />
#AddType text/html .shtml<br />
#AddOutputFilter INCLUDES .shtml</p>
<p>#<br />
# Action lets you define media types that will execute a script whenever<br />
# a matching file is called. This eliminates the need for repeated URL<br />
# pathnames for oft-used CGI file processors.<br />
# Format: Action media/type /cgi-script/location<br />
# Format: Action handler-name /cgi-script/location<br />
#</p>
<p>#<br />
# Customizable error responses come in three flavors:<br />
# 1) plain text 2) local redirects 3) external redirects<br />
#<br />
# Some examples:<br />
#ErrorDocument 500 &#8220;The server made a boo boo.&#8221;<br />
#ErrorDocument 404 /missing.html<br />
#ErrorDocument 404 &#8220;/cgi-bin/missing_handler.pl&#8221;<br />
#ErrorDocument 402 http://www.example.com/subscription_info.html<br />
#</p>
<p>#<br />
# Putting this all together, we can internationalize error responses.<br />
#<br />
# We use Alias to redirect any /error/HTTP_&lt;error&gt;.html.var response to<br />
# our collection of by-error message multi-language collections.  We use<br />
# includes to substitute the appropriate text.<br />
#<br />
# You can modify the messages&#8217; appearance without changing any of the<br />
# default HTTP_&lt;error&gt;.html.var files by adding the line:<br />
#<br />
#   Alias /error/include/ &#8220;/your/include/path/&#8221;<br />
#<br />
# which allows you to create your own set of files by starting with the<br />
# /usr/local/apache2/error/include/ files and copying them to /your/include/path/,<br />
# even on a per-VirtualHost basis.  The default include files will display<br />
# your Apache version number and your ServerAdmin email address regardless<br />
# of the setting of ServerSignature.<br />
#<br />
# The internationalized error documents require mod_alias, mod_include<br />
# and mod_negotiation.  To activate them, uncomment the following 30 lines.</p>
<p>#    Alias /error/ &#8220;/usr/local/apache2/error/&#8221;<br />
#<br />
#    &lt;Directory &#8220;/usr/local/apache2/error&#8221;&gt;<br />
#        AllowOverride None<br />
#        Options IncludesNoExec<br />
#        AddOutputFilter Includes html<br />
#        AddHandler type-map var<br />
#        Order allow,deny<br />
#        Allow from all<br />
#        LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr<br />
#        ForceLanguagePriority Prefer Fallback<br />
#    &lt;/Directory&gt;<br />
#<br />
#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var<br />
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var<br />
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var<br />
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var<br />
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var<br />
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var<br />
#    ErrorDocument 410 /error/HTTP_GONE.html.var<br />
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var<br />
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var<br />
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var<br />
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var<br />
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var<br />
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var<br />
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var<br />
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var<br />
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var<br />
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var</p>
<p>#<br />
# The following directives modify normal HTTP response behavior to<br />
# handle known problems with browser implementations.<br />
#<br />
BrowserMatch &#8220;Mozilla/2&#8243; nokeepalive<br />
BrowserMatch &#8220;MSIE 4\.0b2;&#8221; nokeepalive downgrade-1.0 force-response-1.0<br />
BrowserMatch &#8220;RealPlayer 4\.0&#8243; force-response-1.0<br />
BrowserMatch &#8220;Java/1\.0&#8243; force-response-1.0<br />
BrowserMatch &#8220;JDK/1\.0&#8243; force-response-1.0</p>
<p>#<br />
# The following directive disables redirects on non-GET requests for<br />
# a directory that does not include the trailing slash.  This fixes a<br />
# problem with Microsoft WebFolders which does not appropriately handle<br />
# redirects for folders with DAV methods.<br />
# Same deal with Apple&#8217;s DAV filesystem and Gnome VFS support for DAV.<br />
#<br />
BrowserMatch &#8220;Microsoft Data Access Internet Publishing Provider&#8221; redirect-carefully<br />
BrowserMatch &#8220;MS FrontPage&#8221; redirect-carefully<br />
BrowserMatch &#8220;^WebDrive&#8221; redirect-carefully<br />
BrowserMatch &#8220;^WebDAVFS/1.[0123]&#8221; redirect-carefully<br />
BrowserMatch &#8220;^gnome-vfs&#8221; redirect-carefully<br />
BrowserMatch &#8220;^XML Spy&#8221; redirect-carefully<br />
BrowserMatch &#8220;^Dreamweaver-WebDAV-SCM1&#8243; redirect-carefully</p>
<p>#<br />
# Allow server status reports generated by mod_status,<br />
# with the URL of http://servername/server-status<br />
# Change the &#8220;.example.com&#8221; to match your domain to enable.<br />
#<br />
#&lt;Location /server-status&gt;<br />
#    SetHandler server-status<br />
#    Order deny,allow<br />
#    Deny from all<br />
#    Allow from .example.com<br />
#&lt;/Location&gt;</p>
<p>#<br />
# Allow remote server configuration reports, with the URL of<br />
#  http://servername/server-info (requires that mod_info.c be loaded).<br />
# Change the &#8220;.example.com&#8221; to match your domain to enable.<br />
#<br />
#&lt;Location /server-info&gt;<br />
#    SetHandler server-info<br />
#    Order deny,allow<br />
#    Deny from all<br />
#    Allow from .example.com<br />
#&lt;/Location&gt;</p>
<p>#<br />
# Bring in additional module-specific configurations<br />
#<br />
&lt;IfModule mod_ssl.c&gt;<br />
Include conf/ssl.conf<br />
&lt;/IfModule&gt;</p>
<p>### Section 3: Virtual Hosts<br />
#<br />
# VirtualHost: If you want to maintain multiple domains/hostnames on your<br />
# machine you can setup VirtualHost containers for them. Most configurations<br />
# use only name-based virtual hosts so the server doesn&#8217;t need to worry about<br />
# IP addresses. This is indicated by the asterisks in the directives below.<br />
#<br />
# Please see the documentation at<br />
# &lt;URL:http://httpd.apache.org/docs/2.0/vhosts/&gt;<br />
# for further details before you try to setup virtual hosts.<br />
#<br />
# You may use the command line option &#8216;-S&#8217; to verify your virtual host<br />
# configuration.</p>
<p>#<br />
# Use name-based virtual hosting.<br />
#<br />
NameVirtualHost 192.168.1.3</p>
<p>#<br />
# VirtualHost example:<br />
# Almost any Apache directive may go into a VirtualHost container.<br />
# The first VirtualHost section is used for requests without a known<br />
# server name.<br />
#<br />
#&lt;VirtualHost *:80&gt;<br />
#    ServerAdmin webmaster@dummy-host.example.com<br />
#    DocumentRoot /www/docs/dummy-host.example.com<br />
#    ServerName dummy-host.example.com<br />
#    ErrorLog logs/dummy-host.example.com-error_log<br />
#    CustomLog logs/dummy-host.example.com-access_log common<br />
#&lt;/VirtualHost&gt;</p>
<p># ADMIN &#8211; PhpMyAdmin<br />
&lt;VirtualHost 192.168.1.3&gt;<br />
Servername admin.luke.local<br />
DocumentRoot /home/devel/www/admin<br />
&lt;Directory /&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p>
<p><strong># GDM &#8211; Sviluppo Enterprise<br />
&lt;VirtualHost 192.168.1.3&gt;<br />
Servername gdm.luke.local<br />
DocumentRoot /home/devel/www/gdm<br />
&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride All<br />
Order allow,deny<br />
allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</strong></p>
<p><strong># e via così per tutte le applicazioni&#8230; </strong></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jazzo.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jazzo.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jazzo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jazzo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jazzo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jazzo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jazzo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jazzo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jazzo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jazzo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jazzo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jazzo.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=5&subd=jazzo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jazzo.wordpress.com/2006/11/09/httpdconf-di-apache/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abea710c1d739a795a4ff5e2a9eb1404?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jazzo</media:title>
		</media:content>
	</item>
		<item>
		<title>Configurazioni Apache, PHP e MySql</title>
		<link>http://jazzo.wordpress.com/2006/11/09/configurazioni-apache-php-e-mysql/</link>
		<comments>http://jazzo.wordpress.com/2006/11/09/configurazioni-apache-php-e-mysql/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 21:14:03 +0000</pubDate>
		<dc:creator>jazzo</dc:creator>
				<category><![CDATA[Installazione server]]></category>

		<guid isPermaLink="false">http://jazzo.wordpress.com/2006/11/09/configurazioni-apache-php-e-mysql/</guid>
		<description><![CDATA[Su Luke ho installato Fedora Core 3. Avrei preferito un&#8217;altra distribuzione ma voglio avere la stessa che è installata sul server online (non decisa da me) in modo da non ritrovarmi poi delle sorprese in fase di pubblicazione online.
Apache
Versione  2.0.59 con questo configure:
[root@Luke httpd-2.0.59]# cat config.nice
#! /bin/sh
#
# Created by configure
&#8220;./configure&#8221; \
&#8220;&#8211;enable-so&#8221; \
&#8220;&#8211;enable-rewrite&#8221; \
&#8220;$@&#8221;
[root@Luke httpd-2.0.59]#
PHP
Versione [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=4&subd=jazzo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Su Luke ho installato <strong>Fedora Core 3</strong>. Avrei preferito un&#8217;altra distribuzione ma voglio avere la stessa che è installata sul server online (non decisa da me) in modo da non ritrovarmi poi delle sorprese in fase di pubblicazione online.</p>
<p><strong>Apache</strong></p>
<p>Versione  <strong>2.0.59 </strong>con questo configure:<br />
<code>[root@Luke httpd-2.0.59]# cat config.nice<br />
#! /bin/sh<br />
#<br />
# Created by configure</code></p>
<p>&#8220;./configure&#8221; \<br />
&#8220;&#8211;enable-so&#8221; \<br />
&#8220;&#8211;enable-rewrite&#8221; \<br />
&#8220;$@&#8221;<br />
[root@Luke httpd-2.0.59]#</p>
<p><strong>PHP</strong><br />
Versione <strong>5.1.5</strong> con questo configure:<br />
<code>[root@Luke php-5.1.5]# cat config.nice<br />
#! /bin/sh<br />
#<br />
# Created by configure</code></p>
<p>&#8216;./configure&#8217; \<br />
&#8216;&#8211;with-apxs2=/usr/local/apache2/bin/apxs&#8217; \<br />
&#8216;&#8211;with-config-file-path=/etc&#8217; \<br />
&#8216;&#8211;with-xml&#8217; \<br />
&#8216;&#8211;enable-bcmath&#8217; \<br />
&#8216;&#8211;enable-calendar&#8217; \<br />
&#8216;&#8211;enable-ftp&#8217; \<br />
&#8216;&#8211;with-gd&#8217; \<br />
&#8216;&#8211;with-jpeg-dir=/usr/local&#8217; \<br />
&#8216;&#8211;with-png-dir=/usr/local&#8217; \<br />
&#8216;&#8211;with-kerberos&#8217; \<br />
&#8216;&#8211;enable-magic-quotes&#8217; \<br />
&#8216;&#8211;with-mysql=/usr/local/mysql/&#8217; \<br />
&#8216;&#8211;enable-discard-path&#8217; \<br />
&#8216;&#8211;with-pear&#8217; \<br />
&#8216;&#8211;enable-sockets&#8217; \<br />
&#8216;&#8211;enable-track-vars&#8217; \<br />
&#8216;&#8211;with-freetype-dir=/usr&#8217; \<br />
&#8216;&#8211;enable-gd-native-ttf&#8217; \<br />
&#8216;&#8211;enable-versioning&#8217; \<br />
&#8216;&#8211;with-zlib&#8217; \<br />
&#8220;$@&#8221;<br />
[root@Luke php-5.1.5]#</p>
<p><strong>Mysql</strong><br />
Versione<strong> 5.0.21</strong> con questo configure:<br />
<code>[root@Luke mysql-5.0.21]# ./configure --prefix=/usr/local/mysql --enable-local-infile</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jazzo.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jazzo.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jazzo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jazzo.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jazzo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jazzo.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jazzo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jazzo.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jazzo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jazzo.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jazzo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jazzo.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=4&subd=jazzo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jazzo.wordpress.com/2006/11/09/configurazioni-apache-php-e-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abea710c1d739a795a4ff5e2a9eb1404?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jazzo</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://jazzo.wordpress.com/2005/11/22/hello-world/</link>
		<comments>http://jazzo.wordpress.com/2005/11/22/hello-world/#comments</comments>
		<pubDate>Tue, 22 Nov 2005 16:48:37 +0000</pubDate>
		<dc:creator>jazzo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=1&subd=jazzo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jazzo.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jazzo.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jazzo.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jazzo.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jazzo.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jazzo.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jazzo.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jazzo.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jazzo.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jazzo.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jazzo.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jazzo.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jazzo.wordpress.com&blog=26056&post=1&subd=jazzo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jazzo.wordpress.com/2005/11/22/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abea710c1d739a795a4ff5e2a9eb1404?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jazzo</media:title>
		</media:content>
	</item>
	</channel>
</rss>