You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Darryle Steplight <ds...@gmail.com> on 2012/02/01 18:55:24 UTC

[users@httpd] Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' - ....

Hello Everyone,
    My name is Darryle. I've installed PHP 5.3.9 on my CentOs box and
some numerous modules via yum. Some of those modules are  PDO,
PDO_MYSQL and PDO_SQLITE. However, my PHP configuration is not
recognizing my PDO_MYSQL module.  I can verify that these modules
exists by looking in my /etc/php.d/ folder.  I'm also including the
PDO and PDO_MYSQL extensions in my httpd.conf file after my
extension_dir=/path/to/modules/ declaration.  When I run php -i | grep
pdo this is what I see

]# php -i | grep pdo
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/php_pdo' - /usr/lib64/php/modules/php_pdo:
cannot open shared object file: No such file or directory in Unknown
on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/php_pdo_mysql' -
/usr/lib64/php/modules/php_pdo_mysql: cannot open shared object file:
No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.15: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/mysqli.so' - libmysqlclient.so.15: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/pdo_mysql.so' - libmysqlclient.so.15: cannot
open shared object file: No such file or directory in Unknown on line
0
Configure Command =>  './configure'  '--build=x86_64-redhat-linux-gnu'
'--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib64' '--libexecdir=/usr/libexec'
'--localstatedir=/var' '--sharedstatedir=/usr/com'
'--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--cache-file=../config.cache' '--with-libdir=lib64'
'--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--disable-debug'
'--with-pic' '--disable-rpath' '--without-pear' '--with-bz2'
'--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr'
'--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf'
'--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv'
'--with-jpeg-dir=/usr' '--with-openssl' '--with-zlib'
'--with-layout=GNU' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos'
'--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar'
'--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml'
'--with-system-tzdata' '--enable-force-cgi-redirect' '--enable-pcntl'
'--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared'
'--enable-mbregex' '--with-gd=shared' '--enable-bcmath=shared'
'--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared'
'--with-ldap=shared' '--with-ldap-sasl' '--with-mysql=shared,/usr'
'--with-mysqli=shared,/usr/lib64/mysql/mysql_config'
'--enable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared'
'--with-snmp=shared,/usr' '--enable-soap=shared'
'--with-xsl=shared,/usr' '--enable-xmlreader=shared'
'--enable-xmlwriter=shared' '--with-curl=shared,/usr'
'--enable-fastcgi' '--enable-pdo=shared'
'--with-pdo-odbc=shared,unixODBC,/usr'
'--with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config'
'--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr'
'--with-pdo-dblib=shared,/usr' '--without-sqlite3'
'--enable-json=shared' '--enable-zip=shared' '--with-readline'
'--with-pspell=shared' '--enable-phar=shared'
'--with-mcrypt=shared,/usr' '--with-tidy=shared,/usr'
'--with-mssql=shared,/usr' '--enable-sysvmsg=shared'
'--enable-sysvshm=shared' '--enable-sysvsem=shared'
'--enable-posix=shared' '--with-unixODBC=shared,/usr'
'--enable-fileinfo=shared' '--enable-intl=shared'
'--with-icu-dir=/usr' '--with-recode=shared,/usr'
/etc/php.d/pdo.ini,
/etc/php.d/pdo_mysql.ini,
/etc/php.d/pdo_sqlite.ini,
PHP Warning:  Unknown: It is not safe to rely on the system's timezone
settings. You are *required* to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no
DST' instead in Unknown on line 0
pdo_sqlite

and if I run php -m, this is  a sample pf what I see  (  I still see
the same warnings that I see from above )
pcre
PDO
pdo_sqlite
Phar


What do I need to do to make my php configuration recognize my
pdp_mysql module? Being that's i'm a LAMP Developer, I have frameworks
that I use that require PDO_MYSQL to exist.


-- 
----------------------------------------------
"May the Source be with you."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' - ....

Posted by Darryle Steplight <ds...@gmail.com>.
Wow, I just checked like last week,lol. But you're right it looks like
5.3.9. is old school now. That was fast,lol.

On Sun, Feb 5, 2012 at 2:16 PM, Angus McIntyre <an...@pobox.com> wrote:
> Darryle Steplight wrote:
>> I have Centos 5.5. and I've installed Apache, MySql 5.5 and PHP via
>> yum. I can install PHP from source some time today but it wil most
>> likely be the same version I already have 5.3.9 since that is
>> currently the stable version PHP.net is promoting.
>
> Actually, 5.3.10 is the new stable PHP. There's a serious security issue
> with 5.3.9, and - according to the PHP site - all users are encouraged to
> upgrade.
>
> Angus
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



-- 
----------------------------------------------
"May the Source be with you."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' - ....

Posted by Angus McIntyre <an...@pobox.com>.
Darryle Steplight wrote:
> I have Centos 5.5. and I've installed Apache, MySql 5.5 and PHP via
> yum. I can install PHP from source some time today but it wil most
> likely be the same version I already have 5.3.9 since that is
> currently the stable version PHP.net is promoting.

Actually, 5.3.10 is the new stable PHP. There's a serious security issue
with 5.3.9, and - according to the PHP site - all users are encouraged to
upgrade.

Angus


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' - ....

Posted by Darryle Steplight <ds...@gmail.com>.
Just wanted to update and say installing from source solved the
problem. I spun up a new instance and used yum to instal except PHP. I
now see PDO_MYSQL when I run php -m .

On Sun, Feb 5, 2012 at 10:37 PM, Darryle Steplight <ds...@gmail.com> wrote:
> This is how I installed PHP http://www.webtatic.com/packages/php53/ .
> I updated earlier today so now its 5.3.10 but I still have the same
> error.
>
> On Sun, Feb 5, 2012 at 9:18 PM, Yehuda Katz <ye...@ymkatz.net> wrote:
>> On Sun, Feb 5, 2012 at 2:10 PM, Darryle Steplight <ds...@gmail.com>
>> wrote:
>>>
>>> I have Centos 5.5. and I've installed Apache, MySql 5.5 and PHP via
>>> yum. I can install PHP from source some time today but it wil most
>>> likely be the same version I already have 5.3.9 since that is
>>> currently the stable version PHP.net is promoting.
>>
>>
>> I don't think you should be able to install PHP 5.3.9 (or MySQL 5.5) from
>> official repositories using YUM on CentOS 5.5 (I double checked on my test
>> VM).
>> Are you using different repositories?
>>
>
>
>
> --
> ----------------------------------------------
> "May the Source be with you."



-- 
----------------------------------------------
"May the Source be with you."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' - ....

Posted by Darryle Steplight <ds...@gmail.com>.
This is how I installed PHP http://www.webtatic.com/packages/php53/ .
I updated earlier today so now its 5.3.10 but I still have the same
error.

On Sun, Feb 5, 2012 at 9:18 PM, Yehuda Katz <ye...@ymkatz.net> wrote:
> On Sun, Feb 5, 2012 at 2:10 PM, Darryle Steplight <ds...@gmail.com>
> wrote:
>>
>> I have Centos 5.5. and I've installed Apache, MySql 5.5 and PHP via
>> yum. I can install PHP from source some time today but it wil most
>> likely be the same version I already have 5.3.9 since that is
>> currently the stable version PHP.net is promoting.
>
>
> I don't think you should be able to install PHP 5.3.9 (or MySQL 5.5) from
> official repositories using YUM on CentOS 5.5 (I double checked on my test
> VM).
> Are you using different repositories?
>



-- 
----------------------------------------------
"May the Source be with you."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' - ....

Posted by Yehuda Katz <ye...@ymkatz.net>.
On Sun, Feb 5, 2012 at 2:10 PM, Darryle Steplight <ds...@gmail.com>wrote:

> I have Centos 5.5. and I've installed Apache, MySql 5.5 and PHP via
> yum. I can install PHP from source some time today but it wil most
> likely be the same version I already have 5.3.9 since that is
> currently the stable version PHP.net is promoting.


I don't think you should be able to install PHP 5.3.9 (or MySQL 5.5) from
official repositories using YUM on CentOS 5.5 (I double checked on my test
VM).
Are you using different repositories?

Re: [users@httpd] Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' - ....

Posted by Darryle Steplight <ds...@gmail.com>.
I have Centos 5.5. and I've installed Apache, MySql 5.5 and PHP via
yum. I can install PHP from source some time today but it wil most
likely be the same version I already have 5.3.9 since that is
currently the stable version PHP.net is promoting.

On Sun, Feb 5, 2012 at 1:58 PM, Yehuda Katz <ye...@ymkatz.net> wrote:
> On Wed, Feb 1, 2012 at 2:18 PM, Darryle Steplight <ds...@gmail.com>
> wrote:
>>
>> They are in /usr/lib64/php/modules/ . I can see pdo_mysql.so  in that
>> folder. The configurations in /etc/php.d/ are created by YUM . So are
>> you suggesting that I installed PHP by source instead?
>
> Sorry for the delay, your email hit my spam filter.
>
> If you will not be installing any software using YUM that requires PHP, then
> installing from source is a reasonable option.
> What version of CentOS are you using? I will see if I can replicate the
> problem.
>
> - Y



-- 
----------------------------------------------
"May the Source be with you."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' - ....

Posted by Yehuda Katz <ye...@ymkatz.net>.
On Wed, Feb 1, 2012 at 2:18 PM, Darryle Steplight <ds...@gmail.com>wrote:

> They are in /usr/lib64/php/modules/ . I can see pdo_mysql.so  in that
> folder. The configurations in /etc/php.d/ are created by YUM . So are
> you suggesting that I installed PHP by source instead?

Sorry for the delay, your email hit my spam filter.

If you will not be installing any software using YUM that requires PHP,
then installing from source is a reasonable option.
What version of CentOS are you using? I will see if I can replicate the
problem.

- Y

Re: [users@httpd] Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' - ....

Posted by Darryle Steplight <ds...@gmail.com>.
They are in /usr/lib64/php/modules/ . I can see pdo_mysql.so  in that
folder. The configurations in /etc/php.d/ are created by YUM . So are
you suggesting that I installed PHP by source instead?

On Wed, Feb 1, 2012 at 2:09 PM, Yehuda Katz <ye...@ymkatz.net> wrote:
> On Wed, Feb 1, 2012 at 12:55 PM, Darryle Steplight <ds...@gmail.com>
> wrote:
>>
>> PHP Warning:  PHP Startup: Unable to load dynamic
>> library '/usr/lib64/php/modules/php_pdo' -
>> /usr/lib64/php/modules/php_pdo:cannot open shared object file: No such file
>> or directory in Unknown on line 0
>> PHP Warning:  PHP Startup: Unable to load dynamic
>> library '/usr/lib64/php/modules/php_pdo_mysql'
>> - /usr/lib64/php/modules/php_pdo_mysql: cannot open shared object file: No
>> such file or directory in Unknown on line 0
>>
>> [TRUNCATED SIMILAR ERRORS]
>
>
> Did you check if the files (in /usr/lib64/php) are actually there?
> Are the configuration files in /etc/php.d/ created by you or by YUM?
> I have heard of issues with YUM installing the wrong components on 64-bit
> systems, but I have never been able to reproduce it.
> Unless you know you will need more then 4GB of memory (or a few other
> circumstances), I always recommend installing 32-bit versions (OS and
> server) because the server will use less memory that way and you will not
> have as much trouble with your extensions.
>
> - Y



-- 
----------------------------------------------
"May the Source be with you."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' - ....

Posted by Yehuda Katz <ye...@ymkatz.net>.
On Wed, Feb 1, 2012 at 12:55 PM, Darryle Steplight <ds...@gmail.com>wrote:

> PHP Warning:  PHP Startup: Unable to load dynamic
> library '/usr/lib64/php/modules/php_pdo' -
> /usr/lib64/php/modules/php_pdo:cannot open shared object file: No such file
> or directory in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic
> library '/usr/lib64/php/modules/php_pdo_mysql'
> - /usr/lib64/php/modules/php_pdo_mysql: cannot open shared object file: No
> such file or directory in Unknown on line 0
>
[TRUNCATED SIMILAR ERRORS]


Did you check if the files (in /usr/lib64/php) are actually there?
Are the configuration files in /etc/php.d/ created by you or by YUM?
I have heard of issues with YUM installing the wrong components on 64-bit
systems, but I have never been able to reproduce it.
Unless you know you will need more then 4GB of memory (or a few other
circumstances), I always recommend installing 32-bit versions (OS and
server) because the server will use less memory that way and you will not
have as much trouble with your extensions.

- Y