OCI
am 21.07.2008 18:22:20 von madunix
------=_Part_53717_22952852.1216657340282
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
How could I build the OCI8 extension module for php5 under CentOS5?
I have installe PHP/APACHE/MYSQL through yum install ...
[root@PowerEdge1 arabic]# rpm -aq | grep php
php-5.1.6-20.el5_2.1
php-pdo-5.1.6-20.el5_2.1
php-odbc-5.1.6-20.el5_2.1
php-xml-5.1.6-20.el5_2.1
php-pear-Date-1.4.7-2.el5.centos
php-imap-5.1.6-20.el5_2.1
php-gd-5.1.6-20.el5_2.1
php-soap-5.1.6-20.el5_2.1
php-pear-Net-SMTP-1.2.10-1.el5.centos
php-devel-5.1.6-20.el5_2.1
php-common-5.1.6-20.el5_2.1
php-cli-5.1.6-20.el5_2.1
php-tidy-5.1.6-15.el5.centos.1
php-snmp-5.1.6-20.el5_2.1
php-readline-5.1.6-15.el5.centos.1
php-dba-5.1.6-20.el5_2.1
php-bcmath-5.1.6-20.el5_2.1
php-pear-MDB2-2.4.1-2.el5.centos
php-pear-Auth-SASL-1.0.2-4.el5.centos
php-pear-HTTP-Request-1.4.2-1.el5.centos
php-pear-MDB2-Driver-mysql-1.4.1-3.el5.centos
php-pear-Log-1.9.13-1.el5.centos
php-mcrypt-5.1.6-15.el5.centos.1
php-ldap-5.1.6-20.el5_2.1
php-mhash-5.1.6-15.el5.centos.1
php-mysql-5.1.6-20.el5_2.1
php-pecl-Fileinfo-1.0.4-3.el5.centos
php-xmlrpc-5.1.6-20.el5_2.1
php-pear-Net-Socket-1.0.8-1.el5.centos
php-pear-Net-URL-1.0.15-1.el5.centos
php-pear-Net-Sieve-1.1.5-2.el5.centos
php-pecl-memcache-2.2.3-1.el5_2
php-pear-File-1.2.2-1.el5.centos
php-mssql-5.1.6-15.el5.centos.1
php-mbstring-5.1.6-20.el5_2.1
php-pear-1.4.9-4.el5.1
php-pear-DB-1.7.13-1.el5.centos
php-pear-Mail-Mime-1.4.0-1.el5.centos
php-pgsql-5.1.6-20.el5_2.1
php-ncurses-5.1.6-20.el5_2.1
php-pear-Mail-1.1.14-1.el5.centos
--
Your search - madunix - did not match any documents.
------=_Part_53717_22952852.1216657340282--
Re: OCI
am 21.07.2008 18:36:27 von parasane
On Mon, Jul 21, 2008 at 12:22 PM, Mad Unix wrote:
> How could I build the OCI8 extension module for php5 under CentOS5?
> I have installe PHP/APACHE/MYSQL through yum install ...
OCI8 is a PECL extension.
'pecl install oci8'
If you need more help with that, you can either check Google or
perhaps go directly to the PECL OCI8 page.
--
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: OCI
am 23.07.2008 00:55:51 von Christopher Jones
Daniel Brown wrote:
> On Mon, Jul 21, 2008 at 12:22 PM, Mad Unix wrote:
>> How could I build the OCI8 extension module for php5 under CentOS5?
>> I have installe PHP/APACHE/MYSQL through yum install ...
>
> OCI8 is a PECL extension.
>
> 'pecl install oci8'
>
> If you need more help with that, you can either check Google or
> perhaps go directly to the PECL OCI8 page.
>
You'll need to download and install Oracle Instant client 'basic' and
'devel' RPMs from
http://www.oracle.com/technology/software/tech/oci/instantcl ient/index.html
# rpm -i oracle-instantclient-basic-11.1.0.1-1.i386.rpm oracle-instantclient-devel-11.1.0.1-1.i386.rpm
If pecl isn't available or fails, follow these steps.
Download PHP's oci8 1.3.3 extension from PECL
http://pecl.php.net/package/oci8
Build it:
$ tar -zxf oci8-1.3.3.tgz
$ cd oci8-1.3.3
$ phpize
$ ./configure --with-oci8=shared,instantclient
$ make
Install it as root:
# cd oci8-1.3.3
# make install
Edit /etc/php.ini and add this line:
extension=oci8.so
If you don't have a DB, download and install Oracle XE database from
http://www.oracle.com/technology/software/products/database/ xe/index.html
# rpm -i oracle-xe-univ-10.2.0.1-1.0.i386.rpm
Configure XE:
# /etc/init.d/oracle-xe configure
Chris
--
Email: christopher.jones@oracle.com Tel: +1 650 506 8630
Twitter: http://twitter.com/ghrd Free PHP Book: http://tinyurl.com/f8jad
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php