viernes, 6 de abril de 2012

Instalar oci8 en php en Debian Squeeze de 64 bits – Miami

Imagen del logo de Oracle
Si queres usar la base de datosOracle para hacer tus aplicaciones conphp, debes de hacer algunos pasos que muestro en este post.

Entramos a la consola y escribimos
sudo aptitude install php5-common php5 php5-dev libapache2-mod-php5 php5-cli build-essential php-pear libaio1

Como estoy usando la versión 10 de Oracle, y les quiero facilitar la vida, le dejo en untar.gz de losdeb, que los había convertido de lo que descargue de la página oficial deOracle que estaban enrpm.

Una vez descargado eltar.gz, lo descomprimimos. Ahora escribimos en la consola:
sudo dpkg -i /home/proyectosbeta/Desktop/oracle/oracle-instantclient-basic_10.2.0.5-2_amd64.deb
sudo dpkg -i /home/proyectosbeta/Desktop/oracle/oracle-instantclient-devel_10.2.0.5-2_amd64.deb
sudo dpkg -i /home/proyectosbeta/Desktop/oracle/oracle-instantclient-sqlplus_10.2.0.5-2_amd64.deb


Ahora debemos de crear la variable de entornoORACLE_HOME. Escribimos en la consola:

export ORACLE_HOME=/usr/lib/oracle/10.2.0.5/client64/

Escribir en la consola para verificar si guardo correctamente la variable de entorno anterior:
echo $ORACLE_HOME

Y nos tendrá que desplegar lo siguiente:
/usr/lib/oracle/10.2.0.5/client64$

Volvemos a escribir en la consola:
pecl install oci8

Sale esto en pantalla:
Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] :

Escribimos:
shared,instantclient,/usr/lib/oracle/10.2.0.5/client64/lib

De nuevo en la consola:
sudo nano /etc/php5/apache2/php.ini

Hacemos esto para que cargue las librerías al iniciar. Agregamos esta linea en el archivophp.ini:
extension=oci8.so

En la siguiente imagen muestra lo anterior.
Imagen de agregar oci8 en php.ini

Ahora registramos las librerías instaladas.
Como mi usuario no tiene permisos de ejecutar este archivo/etc/ld.so.conf, entonces cambiamos a usuario root.
Escribimos en la consola:
su

Nos va a pedir elpassword de root y lo colocamos.
Ahora volvemos a escribir en la consola:
echo /usr/lib/oracle/10.2.0.5/client64/lib/ /etc/ld.so.conf

Otra vez en la consola:
ldconfig

Y ahora reiniciamos nuestro servidor apache.
service apache2 restart

Y ahora escribimos un pequeñoscript para saber si funciona eloci8 en nuestro querido Debian Squeeze:
?php
if(function_exists('oci_connect')){
echo "Oci8 funciona en esta PC!!!";
}else{
echo "No funciona en esta PC el o8ci!!!";
}
?

Guardamos con el nombre que queremos. En mi caso se llamaprueba_oci8.php

Ahora entramos a nuestro navegador favorito y lo probamos. En mi caso seríahttp://localhost/prueba_oci8.php
Imagen de prueba del script para saber si 0ci8 funciona en Debian Squeeze
Fuente 1:Fresno Libre
Fuente 2:Ubuntu Forums

best structured settlement companies dui austin call center agent software sell a structured settlement webmail teamhealth best business voip phone system mesotheolima structured settlement purchasers wisconsin mesothelioma attorney houston motorcycle accident lawyer structured settlements annuities lasvegas criminal defense attorneys mesothelioma incidence sell your structured settlement mesothelioma navy veterans structured settlement cash out auto insurance loveland co selling my structured settlement business phone and internet providers online degree in international business addiction treatment program selling annuity mesothelioma lawyer texas mesothelioma lawsuit mesothelioma rates hughes net business business telephone and internet packages predictive dailer small business administration sba host virtual machine cloud application hosting earthlink business internet mesothelioma survival rates car accident lawyer michigan mesothelioma litigation mesothelioma trial attorney sell an annuity hosted predictive dialers buy structured settlements mesothelioma claim structured settlement annuity companies seattle mesothelioma lawyer mesotheliama plumbing company denver mesothelioma attorneys california tampa auto accident lawyer car accident attorneys los angeles caraccidentlawyer or car insurance structured settlement need cash now costa mesa dui lawyer truck accident attorney texas buyer of structured settlement annuity baltimore mesothelioma attorneys arizona car accident lawyer banking offers to open accounts criminal justice bachelor degree online truck accident attorney los angeles ashely madis structured settlement buyer mesothelioma lawyer chicago mesothelioma suit mesothelioma lawyer virginia drug rehabs org outbound call center software structured settlemen new voip phone service los angeles auto accident attorneys structered settlement structure settlements my family app accident defense attorney florida alcohol rehab phoenix wrongful death lawyer car accident lawyers west palm beach average mesothelioma settlement mesothelioma drug structured settlement sell houston tx auto insurance cheaper insurance companies structured settlement investments buying a structured settlement buying an annuity calculator mesothelioma charities cheap business internet and phone service business voice mail service asbestos mesothelioma lawsuit mesothelioma lawyer dallas lawyers accidents mesothelioma personal injury lawyers texting from the internet to cell phone cash for structured settlement lawsuit mesothelioma toledo phone company mesothelioma attorney directory mesothelioma attorney illinois mesothelioma care highest yield online savings motorcycle accident lawyer san diego car accident lawyer san bernardino list of structured settlement companies accident attorney fort lauderdale personal injury attorney boca raton ford focus st top gear cloud computering injury lawyer houston tx auto accidents attorney i have a structured settlement aa accident attorneys cloud computing security companies data recovery raid mesothelioma claims mobile business phone car crash attorneys car wreck lawyer dallas car accident attorney new york city sell structured settlement calculator new mexico mesothelioma lawyer small business voip services jones act attorney tampa car accident motorcycle accident attorney chicago cash for structured settlements structured settlement annuity rates annuity payment water damage lawyer how to get a masters in business administration long distance telephone providers accident attorneys denver free electronic medical records software download pharmacist jobs in chicago air conditioning repair frisco structured settlement criminal defense attorney phoenix mesothelioma help verizon sip mesothelioma attorney baltimore business compliance package houston mesothelioma attorney motorcycle accident attorneys auto insurance yuba city ca nashville car accident lawyer arizona auto accident attorney personal injury attorney austin how to open a bank account overseas selling structured settlement auto accident defense attorney card services direct login new york mesothelioma law firm cash out structured settlement motorcycle accident lawyer california utah mesothelioma lawyer residential treatment centers florida mesothelioma attorney florida online schools for social worker degree is water damage covered by homeowners insurance health care reform impact on employers structured settlement quote business class internet alabama mesothelioma lawyer attorney philadelphia online phd programs in public health business email web hosting asbestos exposure lawyers mesothelioma attorney assistance california drug rehabilitation best accident attorneys structured settlement company dallas hvac service south florida detox center mesothelioma cases phone system for small businesses emergency response plan ppt supportpeachtreecom auto insurance grand junction all about mesothelioma mesothelioma settlements amounts henderson auto insurance truck accident attorney california multicystic peritoneal mesothelioma microsoft private cloud certification florida automobile insurance company plumber richardson tx miami dui lawyers car accident lawyers in los angeles structured settlement definition selling annuity payments for cash network coverage comparison companies car insurance injury lawyer los angeles drain cleaning in denver semi truck accident lawyers auto accident attorney Torrance family plumber drug rehabs in florida american telecom solutions mesothelioma lawyer asbestos cancer lawsuit mesothelioma lawyers san diego how to sell structured settlement truck accident lawyer los angeles rehabilitation associates fairfield ct business telephone service provider colorado mesothelioma lawyers windows phone platform plumbing inspection Los Angeles buying structured settlements colorado accident lawyers peruvianconnectioncouk illinois mesothelioma lawyer car accident lawyers los angeles tennessee mesothelioma lawyer sell structured settlement payments meso lawyer florida auto ins tucson car accident attorney benign cystic mesothelioma accident attorney orange county feds liability insurance accident lawyers in los angeles peruvianconnection co uk mesothelioma law firms alcohol rehab center in florida auto accident lawyers in houston tx city college in miami motorcycle accident lawyers san diego accident attorneys orange county dui lawyer phoenix personal injury accident lawyer pensacola personal injury lawyer firm law mesothelioma purchase structured settlements fast cash for house mesothelioma diagnosis purchase annuities virtual data room review structured settlement buyers no vehicle insurance accident attorney san bernardino structured settlement agreement workers compensation lawyer los angeles mesothelioma attorneys auto accident lawyer san francisco personal injury lawyers tampa free online car quotes los angeles motorcycle accident lawyer injury attorney milwaukee personal injury lawyer in chicago what is a business license number personal injury lawyer sarasota fl motorcycle accident lawyer san francisco broward county dui lawyer state of california car insurance free tech support software selling a structured settlement internet provider business plan yahoo web based mail mesothelioma attorney law firm personal injury auto accident lawyer in los angeles personal injury attorney newport beach mesothelioma ct california motorcycle accident lawyer san bernardino car accident attorney cash advance structured settlement washington mesothelioma attorney best mesothelioma lawyers sacramento car accident attorney online insurance quote comparison fort lauderdale criminal defense lawyer auto insurance in seattle diagnosed with mesothelioma st louis mesothelioma attorney best android business card scanner best buy business phone systems dui attorney miami integrated ehr mesothelioma settlement amounts motorcycle accident attorney sacramento masters programs in criminology mesothelioma lawyer california truck wreck lawyer small business phone plans austin dui lawyer south florida personal injury attorney accident lawyer houston tx cell cycle regulation ppt mesothelioma compensation michigan auto accident lawyer structured settlements companies cloud computig maritime lawyer houston business voip phone service providers e insurance auto quote bluehost vs ipage citrix blogs best online graduate programs for education denver car accident attorney personal injury attorney ocala fl california mesothelioma attorney offshore accident lawyer best electronic health record philadelphia mesothelioma lawyer car accident attorney orange county mesothelioma fund workplace accident attorney buisness internet most profitable internet business motorcycle injury lawyer los angeles new jersey medical malpractice lawyer auto insurance cost by state florida car insurance company internet business plan integrated management log mesothelioma lawyer massachusetts truck accident attorney atlanta ga broward personal injury attorney mesothelioma settlements delaware mesothelioma lawyer mesothelioma specialists mesotheioma attorney lawyer mesothelioma anaheim dui lawyer mesothelioma lawsuits austin car wreck attorney best savings accounts online brooks auto insurance a structured settlement mesothelioma law suit best business telephone service mesothelioma law suits sell your structured settlement payments mesothelioma legal information payout annuity colorado auto accident attorney dui lawyer mesa az probability of dying in a car accident sell my structured settlement allstate structured settlement annuity american securities opportunities fund dallas mesothelioma lawyer citrix xendesktop price peritoneal mesothelioma causes cash out annuity personal injury lawyer miami mesothelioma attorney california cash annuity boca raton personal injury attorney structured settlement quotes onine backup fort lauderdale personal injury lawyer dui lawyer scottsdale drug and alcohol rehab in florida broadband phone service cloud identity and access management personal injury attorney springfield mo accident attorney in los angeles quotes car houston car accident lawyers michigan motorcycle accident lawyer accident lawyer orange county personal injury firm how do structured settlements work florida sex crime lawyer houston accident lawyer web based tech support accidents attorneys boulder personal injury lawyers online bank savings account bus accident attorneys structured settlement blog i need a personal injury lawyer georgia truck accident lawyer best pbx phone system for small business asterisk call center software denver injury attorney plueral mesothelioma los angeles car donation auto accident lawyer detroit injury attorney baton rouge mesothelioma and asbestos exposure business administration masters car accident attorney in dallas master in healthcare administration online marketing online degrees bus accident attorney los angeles structured settlement broker jacksonville personal injury attorney personal injury attorney torrance buyers of structured settlements mesotheloma car accident lawyer houston annuity cash out lost car insurance card virtual dataroom personal accident attorney mesothelioma cancer center java cloud development dallas mesothelioma attorneys la personal injury lawyer personal injury attorney Palm Beach County

mesothelioma suit what is structured settlement hybrid cloud solution tucson dui attorney mesothelioma personal injury lawyers mesothelioma metastasis houston mesothelioma attorney microsoft private cloud certification structured settlements annuities bus accident attorney los angeles structured settlement blog payout annuity average mesothelioma settlement saskatchewan auto insurance houston tx auto insurance offshore injury lawyer lump sum annuity nss imss car accident lawyers san diego utah mesothelioma lawyer orange county water damage restoration tennessee mesothelioma lawyer alcoholics rehabilitation firm law mesothelioma best dui lawyer in phoenix structured settlements splunk rex houston mesothelioma lawyers orange county car accident lawyer mesothelioma survival rates houston accident lawyer structured settlement buyer auto accident attorney Torrance all about mesothelioma offshore accident lawyer structured settlement annuity companies auto accident attorney denver accident lawyer houston tx cloud development tools michigan injury lawyer car insurance quote chicago los angeles auto accident attorneys mesothelioma settlements car insurancs small business administration sba hartford car accident lawyer free online car quotes mesothelioma attorneys california fort collins car accident attorney mesothelioma lawyer chicago mesothelioma lawsuit baltimore mesothelioma attorneys business voip phone service providers structured settlement purchasers best voip business phone service selling my structured settlement skype push to talk companies car insurance pharmacist jobs in chicago mesothelioma trial attorney princeton application tracking system drug and alcohol rehab in florida personal injury accident lawyer plumbing company denver los angeles injury attorney sell my settlement internet business plan mesothelioma cases non injury accident attorney austin tx auto insurance emergency response plan ppt sacramento car accident lawyer verizon sip selling annuity structure settlement orange county accident attorney structured settlement quote huntington beach dui lawyer accident attorneys orange county meso lawyer fort lauderdale personal injury lawyer mesothelioma lawyer virginia mesothelioma settlements amounts online degree in international business caraccidentlawyer car accident lawyers west palm beach mesothelioma claim best mesothelioma lawyers mesothelioma charities accident lawyers in los angeles california motorcycle accident lawyers health care reform impact on employers motorcycle accident attorney sacramento buy structured settlements best dui lawyer los angeles car accident law firms online savings accounts high interest asbestos exposure lawyers georgia truck accident lawyer best structured settlement companies sell structured settlement calculator alcohol rehab center in florida mesothelioma attorneys wisconsin mesothelioma attorney philly accident lawyer mesotheliama buying an annuity calculator mesothelioma attorney dallas la personal injury lawyer mesothelioma attorney how to sell structured settlement dui attorneys orange county internet business sales car accident attorney las vegas major cloud service providers cash out structured settlement salt lake city personal injury lawyers los angeles workers compensation lawyers auto accident lawyer in los angeles java application performance management call centers software sell my structured settlement dallas car wreck attorney car accident lawyer in san diego seattle mesothelioma lawyer orlando truck accident attorney state of california car insurance attorney for injury boost mobile corporate office phone number mesothelioma attorney illinois attorney malpractice cases best accident attorneys tucson car accident attorney mesothelioma attorney florida probability of dying in a car accident can i sell my annuity cloud to cloud backup i need a personal injury lawyer small business voip services business telephone service provider injury lawyer houston tx structure settlements drug rehab centers in orlando florida highlander the final dimension tampa car accident lawyers mesothelioma lawyer california cyber security small business structured settlemen what is a business license number hosted virtual desktop services mesothelioma care mesothelioma lawyer texas structered settlement how do create a website defense attorney phoenix houston motorcycle accident lawyer structured settlement investments asbestos mesothelioma lawsuit motorcycle accident lawyer san francisco best car accident lawyers ak auto insurance south florida personal injury attorney injury lawyer tampa criminal defense attorney mesa az injury attorney baton rouge personal injury attorney oklahoma city mesothelioma lawyer dallas highest yield online savings verizon wireless business phone best buy business phone systems structured settlement sell new york mesothelioma law firm structured settlements companies california motorcycle accident lawyer water restoration san diego florida auto ins lawsuit mesothelioma avaya phones system truck accident attorney los angeles keller williams insurance motorcycle accident lawyer los angeles philadelphia mesothelioma lawyer list of structured settlement companies best business voip phone system mesothelioma lawyer asbestos cancer lawsuit fast cash for house motorcycle accident attorneys auto insurance cost by state it managing business internet and phone service providers alcohol rehab centers florida arizona dui attorneys personal injury attorney Palm Beach County supportpeachtreecom business voice mail service semi truck accident lawyers define welfare car accident lawyer denver mesothelioma law firms companies that buy structured settlements family plumber mesothelioma lawyers san diego dui attorney miami best internet service for business academy of cosmetology janesville wi buying structured settlements mesothelioma attorney assistance sell structured settlement earthlink business internet nyc mesothelioma lawyer mesotheolima auto accident lawyers california new mexico mesothelioma lawyer accident attorney orange county dui attorney tempe ft lauderdale personal injury lawyer mesothelioma litigation car insurance office injury attorney dallas small business phone plans liability insurance quote online denver car accident lawyers personal injury lawyer west palm beach injury lawyer virginia rehabilitation associates fairfield ct criminal defense attorney phoenix multicystic peritoneal mesothelioma structured settlement cash now anaheim dui lawyer mesothelioma ct online website store builder open paas purchase structured settlements openstack private cloud coupon code hostgator brooklyn accident lawyer bowne virtual data room structured settlements calculator i got into a car accident without insurance mesothelioma lawyer houston nashville car accident lawyer car accident lawyers los angeles motorcycle lawyer los angeles nist cloud security structured settlement company business telephone providers in my area auto accident lawyer san francisco ashely madis cloudservice structured settlement agreement los angeles motorcycle accident lawyer colorado mesothelioma lawyers masters degree in criminal psychology colorado accident lawyers sell annuities business administration masters dui lawyer phoenix why hosted voip accounting degree online accredited residential treatment centers florida virtual data room broward county dui lawyer business landline phone deals personal injury lawyers sarasota mesothelioma law suits cloud application hosting healthcare management mba online selling a structured settlement nsync bye bye bye accident attorney san bernardino hughes net business structured settlement brokers car accident lawyer michigan ehr incentives cms gov mesothelioma cancer center mesothelioma help washington mesothelioma attorney business email web hosting diagnosed with mesothelioma personal injury lawyer plano benign cystic mesothelioma car crash attorneys motorcycle accident attorney chicago structured settlement need cash now mesothelioma settlement amounts mesotheioma mental health rehabs data recovery raid maritime lawyer houston injurylawyer personal injury attorney memphis personal injury attorney ocala fl personal injury lawyer boca raton san antonio car accident lawyer mesothelioma attorney baltimore houston auto accident attorneys california mesothelioma attorney dallas mesothelioma lawyer austin texas personal injury attorney bluehost vs ipage car accident attorney baton rouge michigan motorcycle accident lawyer personal injury attorney torrance selling structured settlement selling annuity payments auto accidents attorney workplace accident attorney illinois mesothelioma lawyer call center agent software irvine car accident lawyer business phone service orlando lowest rates on car insurance att business sales phone number truck accident attorney texas personal injury lawyer sarasota fl cash advance structured settlement magix phone system selling an annuity florida car insurance company structured settlement cash out mesothelioma compensation mesothelioma claims free electronic medical records software download miami dui lawyers american telecom solutions sell structured settlement payments attorney lawyer mesothelioma mesothelioma lawsuits costa mesa dui lawyer cell cycle regulation ppt long distance telephone providers car insurance seattle washington houston truck accident lawyer rehab centers in orlando florida integrated ehr mesothelioma law suit best dui attorney phoenix motorcycle accident lawyer california auto accident attorney tampa sell your structured settlement payments alcohol treatment center florida colorado auto accident attorney auto insurance grand junction most profitable internet business alabama mesothelioma lawyer san francisco motorcycle accident lawyer workers compensation attorney atlanta ga arizona auto accident attorney cash out annuity dui lawyer mesa az

Share:

Popular Posts

Recent Posts

Blog Archive

Con la tecnología de Blogger.