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

<channel>
	<title>www.AnalyX.org &#187; tutoriais</title>
	<atom:link href="http://www.analyx.org/tag/tutoriais/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.analyx.org</link>
	<description>De um nerd para outros nerds!</description>
	<lastBuildDate>Tue, 10 Aug 2010 15:12:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>FreeBSD+PHP5+Lighttpd &#8211; Para os apressados.</title>
		<link>http://www.analyx.org/2010/07/11/freebsdphp5lighttpd-para-os-apressados/</link>
		<comments>http://www.analyx.org/2010/07/11/freebsdphp5lighttpd-para-os-apressados/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 16:35:49 +0000</pubDate>
		<dc:creator>Leonardo Marques</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[tutoriais]]></category>

		<guid isPermaLink="false">http://www.analyx.org/?p=374</guid>
		<description><![CDATA[Esse semana tive de fazer o update do FreeBSD 7.2 para o 7.3, haja visto que o tempo de suporte a versão 7.2 expirou. Decidi refazer toda a instalação, e já que estava com o sistema todo limpo, quis dar uma chance ao lighttpd para ver como ele se comporta. Tive de fazer pequenas modificações [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.analyx.org/wp-content/uploads/2010/07/light_logo.png"><img class="aligncenter size-full wp-image-393" title="light_logo" src="http://www.analyx.org/wp-content/uploads/2010/07/light_logo.png" alt="" width="249" height="239" /></a></p>
<p>Esse semana tive de fazer o update do FreeBSD 7.2 para o 7.3, haja visto que o tempo de suporte a versão 7.2 expirou. Decidi refazer toda a instalação, e já que estava com o sistema todo limpo, quis dar uma chance ao lighttpd para ver como ele se comporta. Tive de fazer pequenas modificações depois dos aplicativos serem instalados pelo ports.</p>
<p>Nesse tutorial apresento como instalar rapidamente o Lighttpd, o PHP5 em um sistema rodando FreeBSD 7.3.<br />
<span id="more-374"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-4620111844219324";
/* 468x60, criado 11/07/10 */
google_ad_slot = "0164185464";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<ol>1 &#8211; Primeiramente atualize seu ports, para instalar tudo novinho. Fora do escopo desse tutorial.</ol>
<ol>2 &#8211; Instale o lighttpd:</ol>
<blockquote><p>cd /usr/ports/www/lighttpd/<br />
make install clean</p></blockquote>
<ol>3 &#8211; Instale o PHP5:</ol>
<blockquote><p>cd /usr/ports/lang/php5/<br />
make install clean</p></blockquote>
<ol>4 &#8211; Instale as extensões do PHP5:</ol>
<blockquote><p>cd /usr/ports/lang/php5-extensions/<br />
make install clean</p></blockquote>
<p>Até aqui tudo normal, agora que vem o pulo do gato que eu não tinha achado na Internet.</p>
<ol>5 &#8211; Edite o arquivo /usr/local/etc/lighttpd.conf e se certifique que das seguintes alterações, para habilitar o PHP no lighttpd</ol>
<p>Descomentar a linha:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="st0">&quot;mod_fastcgi&quot;</span>,<span class="re3">#### fastcgi module</span></div>
<p>Descomentar as seguintes linhas para habilitar o fastcgi:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">## <span class="kw2">read</span> fastcgi.txt <span class="kw1">for</span> <span class="kw2">more</span> info</span><br />
<span class="re3">## <span class="kw1">for</span> PHP don</span><span class="st0">&#8216;t forget to set cgi.fix_pathinfo = 1 in the php.ini<br />
fastcgi.server &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = ( &quot;.php&quot; =&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;( &quot;localhost&quot; =&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;socket&quot; =&gt; &quot;/var/run/lighttpd/php-fastcgi.socket&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;bin-path&quot; =&gt; &quot;/usr/local/bin/php-cgi&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )</span></div>
<p><strong>ATENÇÃO A SEGUINTE LINHA:</strong></p>
<blockquote><p>&#8220;bin-path&#8221; =&gt; &#8220;/usr/local/bin/php-cgi&#8221;</p></blockquote>
<p>No arquivo original ela vem como /usr/local/bin/php-cgi-cgi , alterar para como está demonstrado no exemplo acima, haja visto que o binário no FreeBSD não tem esse nome.</p>
<ol>6 &#8211; Crie a pasta para armazenagem dos sockets do fastcgi</ol>
<blockquote><p>mkdir /var/run/lighttpd<br />
chown www:www /var/run/lighttpd</p></blockquote>
<p>PRONTO! Seu lighttpd está pronto para rodar com suporte a PHP!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.analyx.org/2010/07/11/freebsdphp5lighttpd-para-os-apressados/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Novos tutoriais!</title>
		<link>http://www.analyx.org/2009/12/05/novos-tutoriais/</link>
		<comments>http://www.analyx.org/2009/12/05/novos-tutoriais/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 22:25:48 +0000</pubDate>
		<dc:creator>Leonardo Marques</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[documentações]]></category>
		<category><![CDATA[freeradius]]></category>
		<category><![CDATA[lcc]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mandriva]]></category>
		<category><![CDATA[mrtg]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pykota]]></category>
		<category><![CDATA[redes]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[tutoriais]]></category>
		<category><![CDATA[unb]]></category>
		<category><![CDATA[wi-fi]]></category>
		<category><![CDATA[wiki]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[xdmcp]]></category>

		<guid isPermaLink="false">http://www.analyx.org/?p=85</guid>
		<description><![CDATA[Olá pessoal! Tinha algumas documentações que eu havia escrito no meu antigo estágio, Lab. Computação Científica &#8211; UnB, que só está publicada no nosso Wiki, logo estou aproveitando para deixar os links por aqui também. Novas documentações: Sistema de Quotas de Impressão com Pykota+MySQL+CUPS Configurando servidor FreeRADIUS para autenticar clientes de um access point wi-fi [...]]]></description>
			<content:encoded><![CDATA[<p>Olá pessoal!</p>
<p>Tinha algumas documentações que eu havia escrito no meu antigo estágio, Lab. Computação Científica &#8211; UnB, que só está publicada no nosso Wiki, logo estou aproveitando para deixar os links por aqui também.</p>
<p>Novas documentações:</p>
<p><a href="http://ivete.fis.unb.br/wiki/wikka.php?wakka=CupsPykotaMysql">Sistema de Quotas de Impressão com Pykota+MySQL+CUPS</a></p>
<p><a href="http://ivete.fis.unb.br/wiki/wikka.php?wakka=FreeRadius">Configurando servidor FreeRADIUS para autenticar clientes de um access point wi-fi utilizando PAM.</a></p>
<p><a href="http://ivete.fis.unb.br/wiki/wikka.php?wakka=InstalacaoMrtg">Passo a passo para instalação do MRTG no Mandriva.</a></p>
<p><a href="http://ivete.fis.unb.br/wiki/wikka.php?wakka=ManualSolaris">Manual Solaris &#8211; Em construção</a></p>
<p><a href="http://ivete.fis.unb.br/wiki/wikka.php?wakka=terminais">Habilitação do XDMCP Mandriva.</a></p>
<p>Todos foram adicionados à página de Tutoriais, na seção Projetos. ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.analyx.org/2009/12/05/novos-tutoriais/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
