Jump to content

Recommended Posts

hi all,

 

this is my setup

Apache/2.2.15 (Unix)

PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)

CentOS release 6.6

 

i am having intermmittent issues whenever in install pdo_oci and oci8 for PHP following this procedure

http://shiki.me/blog/installing-pdo_oci-and-oci8-php-extensions-on-centos-6-4-64bit/

 

this is the full error

[root@localhost ~]# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - /usr/lib64/php/modules/oci8.so: undefined symbol: php_checkuid in Unknown on line 0
PHP Warning:  PHP Startup: PDO_OCI: Unable to initialize module

 

location of  oci8

[root@localhost ~]# cd /usr/lib64/php/
[root@localhost php]# ll
total 8
drwxr-xr-x. 2 root root 4096 Jan  6 20:16 build
drwxr-xr-x. 2 root root 4096 Jan  6 20:16 modules
[root@localhost php]# cd modules/
[root@localhost modules]# ll
total 4052
-rwxr-xr-x. 1 root root   69304 Dec 19 13:32 curl.so
-rwxr-xr-x. 1 root root 2708336 Dec 19 13:32 fileinfo.so
-rwxr-xr-x. 1 root root   46152 Dec 19 13:32 gmp.so
-rwxr-xr-x. 1 root root   41576 Dec 19 13:32 json.so
-rwxr-xr-x. 1 root root   49288 Dec 19 13:32 mssql.so
-rwxr-xr-x. 1 root root  482372 Jan  6 14:15 oci8.so<<<<<========
-rwxr-xr-x. 1 root root   20256 Dec 19 13:32 pdo_dblib.so
-rwxr-xr-x. 1 root root  124216 Jan  6 13:32 pdo_oci.so
-rwxr-xr-x. 1 root root  101784 Dec 19 13:32 pdo.so
-rwxr-xr-x. 1 root root   25984 Dec 19 13:32 pdo_sqlite.so
-rwxr-xr-x. 1 root root  265584 Dec 19 13:32 phar.so
-rwxr-xr-x. 1 root root   45744 Dec 19 13:32 sqlite3.so
-rwxr-xr-x. 1 root root   41008 Dec 19 13:32 sybase_ct.so
-rwxr-xr-x. 1 root root   94808 Dec 19 13:32 zip.so
[root@localhost modules]#

 

[root@localhost modules]# cd /etc/php.d
[root@localhost php.d]# ll
total 56
-rw-r--r--. 1 root root 49 Dec 19 13:32 curl.ini
-rw-r--r--. 1 root root 57 Dec 19 13:32 fileinfo.ini
-rw-r--r--. 1 root root 47 Dec 19 13:32 gmp.ini
-rw-r--r--. 1 root root 49 Dec 19 13:32 json.ini
-rw-r--r--. 1 root root 51 Dec 19 13:32 mssql.ini
-rw-r--r--. 1 root root 18 Jan  6 14:16 oci8.ini
-rw-r--r--. 1 root root 59 Dec 19 13:32 pdo_dblib.ini
-rw-r--r--. 1 root root 47 Dec 19 13:32 pdo.ini
-rw-r--r--. 1 root root 22 Jan  6 13:59 pdo_oci.ini
-rw-r--r--. 1 root root 61 Dec 19 13:32 pdo_sqlite.ini
-rw-r--r--. 1 root root 49 Dec 19 13:32 phar.ini
-rw-r--r--. 1 root root 55 Dec 19 13:32 sqlite3.ini
-rw-r--r--. 1 root root 59 Dec 19 13:32 sybase_ct.ini
-rw-r--r--. 1 root root 47 Dec 19 13:32 zip.ini
[root@localhost php.d]# more oci8.ini
extension=oci8.so

 

 

but if i do this

 

[root@localhost php.d]# rm -fr oci8.ini
[root@localhost php.d]# ll
total 52
-rw-r--r--. 1 root root 49 Dec 19 13:32 curl.ini
-rw-r--r--. 1 root root 57 Dec 19 13:32 fileinfo.ini
-rw-r--r--. 1 root root 47 Dec 19 13:32 gmp.ini
-rw-r--r--. 1 root root 49 Dec 19 13:32 json.ini
-rw-r--r--. 1 root root 51 Dec 19 13:32 mssql.ini
-rw-r--r--. 1 root root 59 Dec 19 13:32 pdo_dblib.ini
-rw-r--r--. 1 root root 47 Dec 19 13:32 pdo.ini
-rw-r--r--. 1 root root 22 Jan  6 13:59 pdo_oci.ini
-rw-r--r--. 1 root root 61 Dec 19 13:32 pdo_sqlite.ini
-rw-r--r--. 1 root root 49 Dec 19 13:32 phar.ini
-rw-r--r--. 1 root root 55 Dec 19 13:32 sqlite3.ini
-rw-r--r--. 1 root root 59 Dec 19 13:32 sybase_ct.ini
-rw-r--r--. 1 root root 47 Dec 19 13:32 zip.ini
[root@localhost php.d]# php -v
PHP Warning:  PHP Startup: PDO_OCI: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)
Copyright © 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright © 1998-2014 Zend Technologies

  no errror on PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - /usr/lib64/php/modules/oci8.so: undefined symbol: php_checkuid in Unknown on line 0

[root@localhost php.d]#

 

 

thanks in advance

Edited by taliez
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.