<?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>Bonesoft &#187; PHP</title>
	<atom:link href="http://bonesoft.net/blog/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://bonesoft.net/blog</link>
	<description>Blog dos Desenvolvedores</description>
	<lastBuildDate>Mon, 02 Aug 2010 13:47:03 +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>Instalando a extensão DBASE no PHP 5 para Linux (Ubuntu Server 9.10)</title>
		<link>http://bonesoft.net/blog/2010/02/instalando-a-extensao-dbase-no-php-5-para-linux-ubuntu-server-9-10/</link>
		<comments>http://bonesoft.net/blog/2010/02/instalando-a-extensao-dbase-no-php-5-para-linux-ubuntu-server-9-10/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 19:40:43 +0000</pubDate>
		<dc:creator>Paulo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://bonesoft.net/blog/?p=24</guid>
		<description><![CDATA[Ao precisar habilitar o suporte para DBASE no PHP 5 que tinha instalado através do apt-get no Ubuntu, me daperei com o seguinte problema: a extensão simplesmente não existia! Então com alguma pesquisa, descobri que copiar os arquivos da extensÃ£o baixados na internet, resolveriam o problema. Porém, há o risco de o mesmo não ser [...]]]></description>
			<content:encoded><![CDATA[<p>Ao precisar habilitar o suporte para <strong>DBASE</strong> no <strong>PHP 5</strong> que tinha instalado através do apt-get no Ubuntu, me daperei com o seguinte problema: a extensão simplesmente não existia!<br />
Então com alguma pesquisa, descobri que copiar os arquivos da extensÃ£o baixados na internet, resolveriam o problema. Porém, há o risco de o mesmo não ser compatível com o PHP do sistema, ter códigos maliciosos compilados&#8230; Enfim.</p>
<p>Até que encontrei um <a href="#ref_instalando-a-extensao-dbase-no-php-5-para-linux-ubuntu-server-9-10">artigo</a>, explicando como compilar extensÃµes do PHP.</p>
<p>Feliz da vida, baixei o código fonte através do Ubuntu (apt-get source php5) e então para minha surpresa, o cÃ³digo fonte da extensÃ£o tambÃ©m nÃ£o estava disponÃ­vel nos sources oferecidos pelo Ubuntu!</p>
<p>EntÃ£o tive que apelar, baixei o cÃ³digo fonte direto do site do PHP, e instalei conforme o passo-a-passo a seguir, que funcionou corretamente no Ubuntu Server 9.10:</p>
<p>Instale o kit de desenvolvimento do PHP 5:</p>
<blockquote><p><strong><span style="color: #00ff00;"># sudo apt-get install php5-dev</span></strong></p></blockquote>
<p>- Baixe o cÃ³digo fonte do PHP 5 em: http://www.php.net/downloads.php<br />
- Descompacte a pasta:</p>
<blockquote><p><span style="color: #00ff00;"><strong># tar -xzf php-5.x.x.tar.gz</strong></span></p></blockquote>
<p>- Navegue atÃ© <strong>php-5.x.x/ext/dbase</strong><br />
- Execute os comandos:</p>
<blockquote><p><strong><span style="color: #00ff00;"># phpize</span></strong><span style="color: #ffffff;"> (prepara a extensÃ£o para compilaÃ§Ã£o)</span><strong><span style="color: #00ff00;"><br />
# ./configure<br />
# make</span></strong></p></blockquote>
<p>- Copie os arquivos do mÃ³dulo compilados para a pasta de seu PHP 5:</p>
<blockquote><p><span style="color: #00ff00;"><strong>sudo cp modules/* /usr/lib/php5/<span style="color: #ffff00;">20060613+lfs</span></strong></span><span style="color: #ffffff;"> (o nome dessa pasta pode variar)</span></p></blockquote>
<p>- Edite seu arquivo <strong>php.ini</strong> para carregar o mÃ³dulo recÃ©m-compilado. No Ubuntu 9.10 Server, este arquivo estÃ¡ localizado em:</p>
<blockquote><p><strong><span style="color: #00ff00;">/etc/php5/apache2/php.ini</span></strong></p></blockquote>
<p>- Inserir a seguinte linha prÃ³ximo Ã  seÃ§Ã£o â€œDynamic Extensionsâ€œ:</p>
<blockquote><p><strong><span style="color: #00ff00;">extension=dbase.so</span></strong></p></blockquote>
<p>- Salve e feche seu arquivo<br />
- Reinicie o Apache:</p>
<blockquote><p><strong><span style="color: #00ff00;">/etc/init.d/apache2 stop<br />
/etc/init.d/apache2 start</span></strong></p></blockquote>
<p>ou</p>
<blockquote><p><strong><span style="color: #00ff00;">/etc/init.d/apache2 restart</span></strong></p></blockquote>
<p>- Corra para o abraÃ§o =)</p>
<p>Agora a pergunta que nÃ£o quer calar: Porque o PHP do Ubuntu vem sem essa extensÃ£o? =(</p>
<p>Se este artigo lhe foi Ãºtil, deixe um comentÃ¡rio <img src='http://www.bonesoft.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
&#8211;<br />
Paulo Johnny Alves</p>
<hr />
<div id="ref_instalando-a-extensao-dbase-no-php-5-para-linux-ubuntu-server-9-10"><strong>ReferÃªncias</strong><br />
<em>&#8220;Compiling shared PECL extensions with phpize&#8221;<br />
</em>http://www.php.net/manual/en/install.pecl.phpize.php<br />
Online, 09/02/2010 â€“ 09:30</div>
]]></content:encoded>
			<wfw:commentRss>http://bonesoft.net/blog/2010/02/instalando-a-extensao-dbase-no-php-5-para-linux-ubuntu-server-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
