<?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>Jonh Wendell &#187; PHP</title>
	<atom:link href="http://www.bani.com.br/lang/en/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bani.com.br</link>
	<description>Learning is cool!</description>
	<lastBuildDate>Mon, 07 May 2012 19:23:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>PHP and Oracle on Ubuntu Server</title>
		<link>http://www.bani.com.br/lang/en/2008/12/php-and-oracle-on-ubuntu-serverphp-e-oracle-no-ubuntu-server</link>
		<comments>http://www.bani.com.br/lang/en/2008/12/php-and-oracle-on-ubuntu-serverphp-e-oracle-no-ubuntu-server#comments</comments>
		<pubDate>Thu, 18 Dec 2008 13:23:05 +0000</pubDate>
		<dc:creator>Jonh Wendell</dc:creator>
				<category><![CDATA[gnome]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bani.com.br/?p=220</guid>
		<description><![CDATA[Here are a few steps to have your PHP with Oracle (OCI8) support. I assume you already have Apache and PHP running. I have tested this procedure with Ubuntu 8.04 (Hardy, LTS) Server Edition. Install some needed packages: sudo apt-get install php-pear php5-dev libaio1 build-essential Download the Oracle Instant Client: http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html You need the packages: [...]]]></description>
			<content:encoded><![CDATA[<p><span lang="en">Here are a few steps to have your PHP with Oracle (OCI8) support. I assume you already have Apache and PHP running. I have tested this procedure with <strong>Ubuntu 8.04 (Hardy, LTS) Server Edition</strong>.<br />
</span></p>
<p><strong><span lang="en">Install some needed packages:</span><br />
</strong></p>
<blockquote><p>sudo apt-get install php-pear php5-dev libaio1 build-essential</p></blockquote>
<p><strong><br />
<span lang="en"> Download the Oracle Instant Client:</span><br />
</strong> <a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html" target="_blank"><strong> </strong>http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html</a></p>
<p><strong><br />
<span lang="en"> You need the packages:</span></strong></p>
<ul>
<li><strong> </strong>Basic client</li>
<li> SDK</li>
<li> SQL Plus (Optional)</li>
</ul>
<p><strong><span lang="en">Unzip all downloaded files in /opt/instantclient</span><br />
</strong></p>
<p><strong><br />
<span lang="en"> Run the commands below:</span></strong></p>
<blockquote><p>cd /opt/instantclient<br />
sudo ln -s libclntsh.so.11.1 libclntsh.so<br />
sudo ln -s libocci.so.11.1 libocci.so<br />
sudo sh -c &#8216;echo &#8220;/opt/instantclient&#8221; &#62; /etc/ld.so.conf.d/oracle.conf&#8217;<br />
sudo ldconfig</p></blockquote>
<p><strong><br />
<span lang="en"> Let&#8217;s install OCI8 module:</span></strong></p>
<blockquote><p>sudo pecl install oci8</p></blockquote>
<p><strong><br />
<span lang="en"> When asked for Oracle PATH, type:</span></strong></p>
<blockquote><p>all &#60;ENTER&#62;<br />
instantclient,/opt/instantclient &#60;ENTER&#62;<br />
&#60;ENTER&#62;</p></blockquote>
<p><strong><br />
<span lang="en"> Put the newly created extension in PHP config:</span></strong></p>
<blockquote><p>sudo sh -c &#8216;echo &#8220;extension=oci8.so&#8221; &#62; /etc/php5/conf.d/oracle.ini&#8217;</p></blockquote>
<p><strong><br />
<span lang="en"> Restart your apache:</span></strong></p>
<blockquote><p>sudo /etc/init.d/apache2 restart</p></blockquote>
<p><strong><br />
<span lang="en"> Check with phpinfo() if OCI8 module was loaded.</span></strong></p>
<p><em><br />
<span lang="en"> That&#8217;s All!</span></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bani.com.br/lang/en/2008/12/php-and-oracle-on-ubuntu-serverphp-e-oracle-no-ubuntu-server/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP acessando Oracle no Ubuntu Server 6.06</title>
		<link>http://www.bani.com.br/lang/en/2006/07/php-acessando-oracle-no-ubuntu-server-606</link>
		<comments>http://www.bani.com.br/lang/en/2006/07/php-acessando-oracle-no-ubuntu-server-606#comments</comments>
		<pubDate>Wed, 26 Jul 2006 19:59:05 +0000</pubDate>
		<dc:creator>Jonh Wendell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.bani.com.br/?p=5</guid>
		<description><![CDATA[Infelizmente o php que vem no Ubuntu não oferece suporte ao Oracle. Este guia mostra como instalar o php direto dos fontes para que ele consiga conectar-se a este banco de dados. Pré-Requisito Passo 0 (zero): É necessário um cliente oracle instalado na máquina. Caso ainda não tenha um e queira instalar um [levíssimo] cliente, [...]]]></description>
			<content:encoded><![CDATA[<p>Infelizmente o <em>php</em> que vem no <em>Ubuntu</em> não oferece suporte ao <em>Oracle</em>.<br />
Este guia mostra como instalar o <em>php</em> direto dos fontes para que ele consiga conectar-se a este banco de dados.</p>
<h4>Pré-Requisito</h4>
<p>Passo 0 (zero): É necessário um cliente oracle instalado na máquina. Caso ainda não tenha um e queira instalar um [levíssimo] cliente, acesse <a target="_blank" title="Instalando o Oracle Instant Client no Ubuntu Server 6.06" href="http://www.bani.com.br/?p=4">este post</a>. Feito isso, siga essas etapas:</p>
<h4>Instalação</h4>
<ol>
<li>Instale o apache e outros pacotes necessários: &#8211; e os milhares de dependências <img src='http://www.bani.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<blockquote><p>sudo apt-get install apache2 apache2-threaded-dev flex bison libxml2-dev gcc g++ make autoconf automake libtool</p></blockquote>
</li>
<li>Baixe o [fonte do] php em <a title="Baixar o php (código fonte)" target="_blank" href="http://www.php.net/downloads.php">http://www.php.net/downloads.php<br />
</a></p>
<div align="left">Descompactar em alguma pasta, no meu caso: /home/wendell/php-5.1.4</div>
</li>
<li>Compile o php:<br />
<blockquote><p>cd /home/wendell/php-5.1.4<br />
./configure \<br />
&#8211;with-apxs2=/usr/bin/apxs2 \<br />
&#8211;with-oci8=instantclient,/usr/lib/instantclient \<br />
&#8211;with-config-file-path=/etc/php5 \<br />
&#8211;prefix=/usr/lib/php</p>
<p>make<br />
sudo make install<br />
sudo mkdir /etc/php5<br />
sudo cp php.ini-dist /etc/php5</p></blockquote>
</li>
<li>Adicione ou descomente a linha abaixo do /etc/apache2/apache2.conf:<br />
<blockquote><p>AddType application/x-httpd-php .php</p></blockquote>
</li>
<li>Reinicie o apache:<br />
<blockquote><p>sudo /etc/init.d/apache2 restart</p></blockquote>
</li>
</ol>
<h4>Pronto. Agora é só testar!</h4>
<p>Crie um arquivo vazio com o seguinte conteúdo:</p>
<blockquote><p>phpinfo();<br />
?></p></blockquote>
<p>E salve-o na pasta padrão do apache &#8211; <em>/var/www</em> &#8211; com o nome <em>info.php</em>.<br />
Abra o browser e visite: http://maquina/info.php</p>
<p>Se tudo deu certo, deve haver uma seção <em><strong>OCI8</strong></em> indicando as propriedades da extensão <em>Oracle</em>.</p>
<h4>Até a próxima!</h4>
<p>Fiquem a vontade para tirar dúvidas. Usem a área de comentários ou entrem em contato diretamente: wendell_listas@bani.com.br</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bani.com.br/lang/en/2006/07/php-acessando-oracle-no-ubuntu-server-606/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

