<?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; freebsd</title>
	<atom:link href="http://www.analyx.org/tag/freebsd/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>O Retorno &#8211; FreeBSD zica: PHP Fatal error:  Call to undefined function preg_match()</title>
		<link>http://www.analyx.org/2010/02/28/o-retorno-freebsd-zica-php-fatal-error-call-to-undefined-function-preg_match/</link>
		<comments>http://www.analyx.org/2010/02/28/o-retorno-freebsd-zica-php-fatal-error-call-to-undefined-function-preg_match/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 02:44:35 +0000</pubDate>
		<dc:creator>Leonardo Marques</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[zica]]></category>

		<guid isPermaLink="false">http://www.analyx.org/?p=230</guid>
		<description><![CDATA[Depois de um reboot anormal (rede elétrica problemática), o FreeBSD voltou a retornar esse famigerado erro: PHP Fatal error: Call to undefined function preg_match() Entretanto, dessa vez, o procedimento descrito no post anterior não deu jeito, tive de ser mais ignorante, simplesmente mandei remover tudo que tinha de php5 no sistema e mandei reinstalar. Para [...]]]></description>
			<content:encoded><![CDATA[<p>Depois de um reboot anormal (rede elétrica problemática), o FreeBSD voltou a retornar esse famigerado erro:</p>
<blockquote><p>PHP Fatal error:  Call to undefined function preg_match()</p></blockquote>
<p>Entretanto, dessa vez, o procedimento descrito no <a href="http://www.analyx.org/2010/02/07/freebsd-zica-php-fatal-error-call-to-undefined-function-preg_match/">post anterior</a> não deu jeito, tive de ser mais ignorante, simplesmente mandei remover tudo que tinha de php5 no sistema e mandei reinstalar.</p>
<p>Para visualizar o que você tem de instalado do php5 (suporte a linguagem, módulos, etc..)</p>
<blockquote><p>pkg_version -v | grep -i php5</p></blockquote>
<p>Para remover tudo:</p>
<blockquote><p>pkg_delete -f php5-\*</p></blockquote>
<p>Pronto. Agora é só ir em lang/php5 e lang/php5-extensions, dar um make clean em cada, e mandar instalar tudo com o famoso:</p>
<blockquote><p>make install clean</p></blockquote>
<p>Espero que seja útil.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.analyx.org/2010/02/28/o-retorno-freebsd-zica-php-fatal-error-call-to-undefined-function-preg_match/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Domingão &#8211; FreeBSD, Punk Rock e ressaca! ;)</title>
		<link>http://www.analyx.org/2010/02/07/domingao-freebsd-punk-rock-e-ressaca/</link>
		<comments>http://www.analyx.org/2010/02/07/domingao-freebsd-punk-rock-e-ressaca/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 22:13:54 +0000</pubDate>
		<dc:creator>Leonardo Marques</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bad religion]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[pennywise]]></category>
		<category><![CDATA[ramones]]></category>
		<category><![CDATA[rocknroll]]></category>
		<category><![CDATA[the clash]]></category>
		<category><![CDATA[the offspring]]></category>

		<guid isPermaLink="false">http://www.analyx.org/?p=208</guid>
		<description><![CDATA[HAAA!!!!! Na animação do blog estar de volta, agora rodando sobre FreeBSD (que eu curto muito) e ainda por cima pra curar a cachaça, mando uma seleção de 5 clássicos do Punk Rock, a lista contém The Clash, Bad Religion, The Offspring Pennywise e Ramones. Então aproveite e leia esse post completo para curtir essa [...]]]></description>
			<content:encoded><![CDATA[<p>HAAA!!!!! Na animação do blog estar de volta, agora rodando sobre FreeBSD (que eu curto muito) e ainda por cima pra curar a cachaça, mando uma seleção de 5 clássicos do Punk Rock, a lista contém The Clash, Bad Religion, The Offspring Pennywise e Ramones. Então aproveite e leia esse post completo para curtir essa sonzeira ;)</p>
<p><a href="http://www.freebsd.org"><img src="http://www.analyx.org/wp-content/uploads//2010/02/beastie.png" alt="freebsd beastie" title="beastie" width="227" height="265" class="aligncenter size-full wp-image-207" /></a></p>
<p><span id="more-208"></span></p>
<p>The Clash &#8211; Should I Stay or Should I Go<br />
<center><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/0Ag8J2NMYmc&#038;hl=en_US&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/0Ag8J2NMYmc&#038;hl=en_US&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></center></p>
<p>Bad Religion &#8211; I Want to Conquer the World<br />
<center><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/h-VyWe0sm0I&#038;hl=en_US&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/h-VyWe0sm0I&#038;hl=en_US&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></center></p>
<p>The Offspring &#8211; Self Esteem &#8211; Live<br />
<center><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/JlGztHbDspg&#038;hl=en_US&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/JlGztHbDspg&#038;hl=en_US&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></center></p>
<p>Pennywise &#8211; Bro Hymm<br />
<center><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/jpfq6yKOifA&#038;hl=en_US&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jpfq6yKOifA&#038;hl=en_US&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></center></p>
<p>Ramones &#8211; California Sun &#8211; Live<br />
<center><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/1Z9iUdiS3hI&#038;hl=en_US&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/1Z9iUdiS3hI&#038;hl=en_US&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></center></p>
<p>Bom resto de domingo galera e boa semana!!! ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.analyx.org/2010/02/07/domingao-freebsd-punk-rock-e-ressaca/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD zica: PHP Fatal error:  Call to undefined function preg_match()</title>
		<link>http://www.analyx.org/2010/02/07/freebsd-zica-php-fatal-error-call-to-undefined-function-preg_match/</link>
		<comments>http://www.analyx.org/2010/02/07/freebsd-zica-php-fatal-error-call-to-undefined-function-preg_match/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 18:52:25 +0000</pubDate>
		<dc:creator>Leonardo Marques</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[zica]]></category>

		<guid isPermaLink="false">http://www.analyx.org/?p=200</guid>
		<description><![CDATA[Hoje eu fui passar meu site para um servidor que roda FreeBSD, e decidi atualizar o PHP4 para o PHP5. Depois de tudo facilmente desinstalado e instalado (lang/php5 e lang/php5-extensions), apache configurado e tudo mais, todos os sites que usam php estavam abrindo em branco e nos logs apareciam coisas desse tipo: PHP Fatal error: [...]]]></description>
			<content:encoded><![CDATA[<p>Hoje eu fui passar meu site para um servidor que roda FreeBSD, e decidi atualizar o PHP4 para o PHP5.</p>
<p>Depois de tudo facilmente desinstalado e instalado (lang/php5 e lang/php5-extensions), apache configurado e tudo mais, todos os sites que usam php estavam abrindo em branco e nos logs apareciam coisas desse tipo:</p>
<blockquote><p>PHP Fatal error:  Call to undefined function preg_match()</p></blockquote>
<p>Depois de uma googlada, vi que o erro estava na extensão devel/php5-pcre.<br />
<a href="http://http://www.michiknows.com/2007/02/27/fatal-error-call-to-undefined-function-preg_match/">Site que continha o workaround original.</a></p>
<p>Tentei remover essa extensão, mas não foi possível haja visto que outras dependiam dela, entretanto outra linha funcionou perfeitamente:</p>
<blockquote><p># make reinstall clean</p></blockquote>
<p>Depois foi só restartar o apache e tudo voltou a funcionar normalmente.</p>
<p>Só para constar: FreeBSD 7.2, apache 1.3 e php5.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.analyx.org/2010/02/07/freebsd-zica-php-fatal-error-call-to-undefined-function-preg_match/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
