<?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>Fabrizio Balliano &#187; Oracle</title>
	<atom:link href="http://fabrizioballiano.net/tag/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://fabrizioballiano.net</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 15:22:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to install PHP PDO_OCI on Ubuntu Jaunty</title>
		<link>http://fabrizioballiano.net/2009/09/22/how-to-install-php-pdo_oci-on-ubuntu-jaunty/</link>
		<comments>http://fabrizioballiano.net/2009/09/22/how-to-install-php-pdo_oci-on-ubuntu-jaunty/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 08:27:09 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PDO_OCI]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/2009/09/22/how-to-install-php-pdo_oci-on-ubuntu-jaunty/</guid>
		<description><![CDATA[This is a revamped guide, previously wrote for gutsy, enjoy! 1) prerequisites First of all we&#8217;ll install the php5-dev package which contains some utilities we&#8217;ll need for the build process: sudo apt-get install php5-dev then you&#8217;ve to find out your ORACLE_HOME environment variable, try executing: env &#124; grep ORACLE_HOME= If this command outputs something like: [...]]]></description>
			<content:encoded><![CDATA[<p>This is a revamped guide, previously wrote for gutsy, enjoy!</p>
<p><strong>1) prerequisites</strong></p>
<p>First of all we&#8217;ll <strong>install the php5-dev package</strong> which contains some utilities we&#8217;ll need for the build process:</p>
<blockquote><p>sudo apt-get install php5-dev</p></blockquote>
<p>then you&#8217;ve to <strong>find out your ORACLE_HOME</strong> environment variable, try executing:</p>
<blockquote><p>env | grep ORACLE_HOME=</p></blockquote>
<p>If this command outputs something like:</p>
<blockquote><p>ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server</p></blockquote>
<p>then you can jump to section &#8220;2) Getting and compiling PDO_OCI&#8221; otherwise go on thru this section.</p>
<p>If this guide we&#8217;ll just see how to find out which is your ORACLE_HOME directory if you&#8217;ve installed the oracle-xe server package. If you&#8217;ve installed instantclient or anything else please refer to the product documentation. So you&#8217;ve an installed and configured oracle-xe instance on your machine, now type:</p>
<blockquote><p>cat /etc/init.d/oracle-xe |grep ORACLE_HOME=</p></blockquote>
<p>the command should print something like:</p>
<blockquote><p>ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server</p></blockquote>
<p>now we&#8217;ve to <strong>export this variable to the current terminal</strong> session, we&#8217;ll do that with this command:</p>
<blockquote><p>export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server</p></blockquote>
<p>and the environment variable will be configured.</p>
<p><strong>2) Getting and compiling PDO_OCI</strong></p>
<p>Just cut and paste these simple commands to download PDO_OCI from the web and prepare it for the build phase:</p>
<blockquote><p>cd /tmp<br />
pecl download pdo_oci<br />
tar xvfz PDO_OCI-1.0.tgz<br />
cd PDO_OCI-1.0<br />
phpize<br />
mkdir include<br />
ln -s /usr/include/php5/ include/php<br />
./configure</p></blockquote>
<p>now everything should be setup and we can build the driver and install it with:</p>
<blockquote><p>make &amp;&amp; make install</p></blockquote>
<p>If everything is fine you can continue</p>
<p><strong>3) Configuring PHP and Apache</strong></p>
<p>if everything is fine you can go on <strong>editing your php.ini</strong> file and adding this line:</p>
<blockquote><p>extension=pdo_oci.so</p></blockquote>
<p>now create a phpinfo.php file under your apache&#8217;s document root, containing this line:</p>
<blockquote><p>&lt;?php phpinfo();</p></blockquote>
<p>point your browser to:</p>
<blockquote><p>http://localhost/phpinfo.php</p></blockquote>
<p>and search for the &#8220;environment&#8221; section, it should look like the one in the next screenshot:<br />
<img class="centered" src="http://fabrizioballiano.net/wp-content/uploads/2008/01/environment1.png" alt="environment variables" /><br />
if you see the ORACLE_HOME line everything it&#8217;s ok, jump to the &#8220;4) Closure&#8221; section otherwise <strong>edit /etc/apache2/envvars</strong> file and add the ORACLE_HOME configuration, it will be something like this (on a single line):</p>
<blockquote><p>export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server</p></blockquote>
<p><strong>4) Closure</strong></p>
<p><strong>Restart your apache</strong> and you&#8217;re done:</p>
<blockquote><p>sudo /etc/init.d/apache2 restart</p></blockquote>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2009%2F09%2F22%2Fhow-to-install-php-pdo_oci-on-ubuntu-jaunty%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Jaunty" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2009%2F09%2F22%2Fhow-to-install-php-pdo_oci-on-ubuntu-jaunty%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Jaunty" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2009%2F09%2F22%2Fhow-to-install-php-pdo_oci-on-ubuntu-jaunty%2F&amp;t=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Jaunty" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2009%2F09%2F22%2Fhow-to-install-php-pdo_oci-on-ubuntu-jaunty%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Jaunty" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2009%2F09%2F22%2Fhow-to-install-php-pdo_oci-on-ubuntu-jaunty%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Jaunty" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2009%2F09%2F22%2Fhow-to-install-php-pdo_oci-on-ubuntu-jaunty%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Jaunty" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2009%2F09%2F22%2Fhow-to-install-php-pdo_oci-on-ubuntu-jaunty%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Jaunty" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2009%2F09%2F22%2Fhow-to-install-php-pdo_oci-on-ubuntu-jaunty%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Jaunty" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2009%2F09%2F22%2Fhow-to-install-php-pdo_oci-on-ubuntu-jaunty%2F&amp;h=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Jaunty" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2009/09/22/how-to-install-php-pdo_oci-on-ubuntu-jaunty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install PHP PDO_OCI on Ubuntu Gutsy</title>
		<link>http://fabrizioballiano.net/2008/01/26/how-to-install-php-pdo_oci-on-ubuntu-gutsy/</link>
		<comments>http://fabrizioballiano.net/2008/01/26/how-to-install-php-pdo_oci-on-ubuntu-gutsy/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 15:35:49 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PDO_OCI]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/2008/01/26/how-to-install-php-pdo_oci-on-ubuntu-gutsy/</guid>
		<description><![CDATA[1) prerequisites First of all we&#8217;ll install the php5-dev package which contains some utilities we&#8217;ll need for the build process: sudo apt-get install php5-dev then you&#8217;ve to find out your ORACLE_HOME environment variable, try executing: env &#124; grep ORACLE_HOME= If this command outputs something like: ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server then you can jump to section &#8220;2) Getting and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1) prerequisites</strong></p>
<p>First of all we&#8217;ll <strong>install the php5-dev package</strong> which contains some utilities we&#8217;ll need for the build process:</p>
<blockquote><p>sudo apt-get install php5-dev</p></blockquote>
<p>then you&#8217;ve to <strong>find out your ORACLE_HOME</strong> environment variable, try executing:</p>
<blockquote><p>env | grep ORACLE_HOME=</p></blockquote>
<p>If this command outputs something like:</p>
<blockquote><p>ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server</p></blockquote>
<p>then you can jump to section &#8220;2) Getting and compiling PDO_OCI&#8221; otherwise go on thru this section.</p>
<p>If this guide we&#8217;ll just see how to find out which is your ORACLE_HOME directory if you&#8217;ve installed the oracle-xe server package. If you&#8217;ve installed instantclient or anything else please refer to the product documentation. So you&#8217;ve an installed and configured oracle-xe instance on your machine, now type:</p>
<blockquote><p>cat /etc/init.d/oracle-xe |grep ORACLE_HOME=</p></blockquote>
<p>the command should print something like:</p>
<blockquote><p>ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server</p></blockquote>
<p>now we&#8217;ve to <strong>export this variable to the current terminal</strong> session, we&#8217;ll do that with this command:</p>
<blockquote><p>export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server</p></blockquote>
<p>and the environment variable will be configured.</p>
<p><strong>2) Getting and compiling PDO_OCI</strong></p>
<p>Just cut and paste these simple commands to download PDO_OCI from the web and prepare it for the build phase:</p>
<blockquote><p>cd /tmp<br />
pecl download pdo_oci<br />
tar xvfz PDO_OCI-1.0.tgz<br />
cd PDO_OCI-1.0<br />
phpize<br />
mkdir include<br />
ln -s /usr/include/php5/ include/php</p></blockquote>
<p>now everything should be setup and we can build the driver and install it with:</p>
<blockquote><p>make &amp;&amp; make install</p></blockquote>
<p>If everything is fine you can continue</p>
<p><strong>3) Configuring PHP and Apache</strong></p>
<p>if everything is fine you can go on <strong>editing your php.ini</strong> file and adding this line:</p>
<blockquote><p>extension=pdo_oci.so</p></blockquote>
<p>now create a phpinfo.php file under your apache&#8217;s document root, containing this line:</p>
<blockquote><p>&lt;?php phpinfo();</p></blockquote>
<p>point your browser to:</p>
<blockquote><p>http://localhost/phpinfo.php</p></blockquote>
<p>and search for the &#8220;environment&#8221; section, it should look like the one in the next screenshot:<br />
<img src="http://fabrizioballiano.net/wp-content/uploads/2008/01/environment1.png" class="centered" alt="environment variables" /><br />
if you see the ORACLE_HOME line everything it&#8217;s ok, jump to the &#8220;4) Closure&#8221; section otherwise <strong>edit /etc/apache2/envvars</strong> file and add the ORACLE_HOME configuration, it will be something like this (on a single line):</p>
<blockquote><p>export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server</p></blockquote>
<p><strong>4) Closure</strong></p>
<p><strong>Restart your apache</strong> and you&#8217;re done:</p>
<blockquote><p>sudo /etc/init.d/apache2 restart</p></blockquote>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2008%2F01%2F26%2Fhow-to-install-php-pdo_oci-on-ubuntu-gutsy%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Gutsy" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2008%2F01%2F26%2Fhow-to-install-php-pdo_oci-on-ubuntu-gutsy%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Gutsy" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2008%2F01%2F26%2Fhow-to-install-php-pdo_oci-on-ubuntu-gutsy%2F&amp;t=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Gutsy" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2008%2F01%2F26%2Fhow-to-install-php-pdo_oci-on-ubuntu-gutsy%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Gutsy" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2008%2F01%2F26%2Fhow-to-install-php-pdo_oci-on-ubuntu-gutsy%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Gutsy" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2008%2F01%2F26%2Fhow-to-install-php-pdo_oci-on-ubuntu-gutsy%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Gutsy" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2008%2F01%2F26%2Fhow-to-install-php-pdo_oci-on-ubuntu-gutsy%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Gutsy" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2008%2F01%2F26%2Fhow-to-install-php-pdo_oci-on-ubuntu-gutsy%2F&amp;title=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Gutsy" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2008%2F01%2F26%2Fhow-to-install-php-pdo_oci-on-ubuntu-gutsy%2F&amp;h=How%20to%20install%20PHP%20PDO_OCI%20on%20Ubuntu%20Gutsy" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2008/01/26/how-to-install-php-pdo_oci-on-ubuntu-gutsy/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
