Php unable to load dynamic library centos

CentOS

[SOLVED] PHP Startup: Unable to load dynamic library

[SOLVED] PHP Startup: Unable to load dynamic library

Post by StuckMush » 2013/03/29 01:24:18

This is the error I get after trying to load phpmyadmin after installing Mysql.

Well the actual error came from phpmyadmin login page;

[code]Cannot load mcrypt extension. Please check your PHP configuration.[/code]

Everything seems to work fine except this error.

Been working on this for the most part of the day looking for answers, but can’t seem to find any.

How can I solve this issue, I hope it is not a bug because I’ve seen few site calling this a bug.

e.g here;
https://github.com/repoforge/rpms/issues/254

I’ve tried re-installing mcrypt but still getting the same outcome.

[code]PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/module.so’ — /usr/lib/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.3.3 (cli) (built: Feb 22 2013 02:37:06)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies[/code]

Re: PHP Startup: Unable to load dynamic library

Post by drewsymo » 2013/03/29 03:12:44

Can you print the contents of your php.ini so we can have a look at this?

Additionally, can you do a:

[code]updatedb && locate mcrypt[/code]

.. and print the contents here?

Re: PHP Startup: Unable to load dynamic library

Post by StuckMush » 2013/03/29 03:42:58

here is the printout from;

Unable to print this as is a large file and can’t get all of the file.

But was able to get this from [b]php —ini[/b] [code]Configuration File (php.ini) Path: /etc
Loaded Configuration File: /etc/php.ini
Scan for additional .ini files in: /etc/php.d
Additional .ini files parsed: /etc/php.d/curl.ini,
/etc/php.d/dom.ini,
/etc/php.d/fileinfo.ini,
/etc/php.d/gd.ini,
/etc/php.d/imap.ini,
/etc/php.d/json.ini,
/etc/php.d/ldap.ini,
/etc/php.d/mbstring.ini,
/etc/php.d/mcrypt.ini,
/etc/php.d/mysql.ini,
/etc/php.d/mysqli.ini,
/etc/php.d/odbc.ini,
/etc/php.d/pdo.ini,
/etc/php.d/pdo_mysql.ini,
/etc/php.d/pdo_odbc.ini,
/etc/php.d/pdo_sqlite.ini,
/etc/php.d/phar.ini,
/etc/php.d/sqlite3.ini,
/etc/php.d/wddx.ini,
/etc/php.d/xmlreader.ini,
/etc/php.d/xmlrpc.ini,
/etc/php.d/xmlwriter.ini,
/etc/php.d/xsl.ini,
/etc/php.d/zip.ini
[/code]

This is the result from [b]updatedb && locate mcrypt[/b] [code]/etc/php.d/mcrypt.ini
/usr/lib/libmcrypt.so.4
/usr/lib/libmcrypt.so.4.4.7
/usr/lib/php/modules/mcrypt.so
/usr/share/doc/libmcrypt-2.5.7
/usr/share/doc/libmcrypt-2.5.7/AUTHORS
/usr/share/doc/libmcrypt-2.5.7/COPYING.LIB
/usr/share/doc/libmcrypt-2.5.7/ChangeLog
/usr/share/doc/libmcrypt-2.5.7/KNOWN-BUGS
/usr/share/doc/libmcrypt-2.5.7/NEWS
/usr/share/doc/libmcrypt-2.5.7/README
/usr/share/doc/libmcrypt-2.5.7/THANKS
/usr/share/doc/libmcrypt-2.5.7/TODO
/usr/share/man/man1/symcryptrun.1.gz
/usr/share/phpmyadmin/libraries/mcrypt.lib.php
/var/lib/yum/yumdb/l/7a22dfe50bfa2c5ac674e7ff1d59a3b73431236f-libmcrypt-2.5.7-1.2.el6.rf-i686
/var/lib/yum/yumdb/l/7a22dfe50bfa2c5ac674e7ff1d59a3b73431236f-libmcrypt-2.5.7-1.2.el6.rf-i686/checksum_data
/var/lib/yum/yumdb/l/7a22dfe50bfa2c5ac674e7ff1d59a3b73431236f-libmcrypt-2.5.7-1.2.el6.rf-i686/checksum_type
/var/lib/yum/yumdb/l/7a22dfe50bfa2c5ac674e7ff1d59a3b73431236f-libmcrypt-2.5.7-1.2.el6.rf-i686/command_line
/var/lib/yum/yumdb/l/7a22dfe50bfa2c5ac674e7ff1d59a3b73431236f-libmcrypt-2.5.7-1.2.el6.rf-i686/from_repo
/var/lib/yum/yumdb/l/7a22dfe50bfa2c5ac674e7ff1d59a3b73431236f-libmcrypt-2.5.7-1.2.el6.rf-i686/from_repo_timestamp
/var/lib/yum/yumdb/l/7a22dfe50bfa2c5ac674e7ff1d59a3b73431236f-libmcrypt-2.5.7-1.2.el6.rf-i686/installed_by
/var/lib/yum/yumdb/l/7a22dfe50bfa2c5ac674e7ff1d59a3b73431236f-libmcrypt-2.5.7-1.2.el6.rf-i686/reason
/var/lib/yum/yumdb/l/7a22dfe50bfa2c5ac674e7ff1d59a3b73431236f-libmcrypt-2.5.7-1.2.el6.rf-i686/releasever
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/checksum_data
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/checksum_type
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/command_line
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/from_repo
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/from_repo_timestamp
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/installed_by
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/reason
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/releasever
[/code]

Re: [SOLVED] PHP Startup: Unable to load dynamic library

Post by StuckMush » 2013/03/29 05:42:18

Sorry guys Newbie disease lol

Ok It DID work with the first workaround I posted which I deleted, but I’m about to post again.

Solution was from this website;

I was able to follow his instruction which solved my problem.

[code]yum -y install php-mysql[/code] [code]service httpd graceful[/code]

and then typed [b]cat /etc/php.d/mysql.ini[/b] which restarted the extension.

I followed that by installing

[code]yum -y install php-mbstring php-mcrypt php-gd[/code]

and then restart the service

[code]service httpd graceful[/code]

Ok I can now breath a sigh of relief. 😆

Re: [SOLVED] PHP Startup: Unable to load dynamic library

Post by vaibhavbeohar » 2013/04/23 11:44:24

HI I tried all the options given above but couldnt able to resolve my issue.

[root@localhost nagiosxi]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/module.so’ — /usr/lib/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.3.3 (cli) (built: Feb 22 2013 02:37:06)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies [root@localhost modules]# php —ini
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/module.so’ — /usr/lib/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
Configuration File (php.ini) Path: /etc
Loaded Configuration File: /etc/php.ini
Scan for additional .ini files in: /etc/php.d
Additional .ini files parsed: /etc/php.d/curl.ini,
/etc/php.d/dom.ini,
/etc/php.d/fileinfo.ini,
/etc/php.d/gd.ini,
/etc/php.d/json.ini,
/etc/php.d/ldap.ini,
/etc/php.d/mbstring.ini,
/etc/php.d/mcrypt.ini,
/etc/php.d/mssql.ini,
/etc/php.d/mysql.ini,
/etc/php.d/mysqli.ini,
/etc/php.d/pdo.ini,
/etc/php.d/pdo_dblib.ini,
/etc/php.d/pdo_mysql.ini,
/etc/php.d/pdo_pgsql.ini,
/etc/php.d/pdo_sqlite.ini,
/etc/php.d/pgsql.ini,
/etc/php.d/phar.ini,
/etc/php.d/snmp.ini,
/etc/php.d/sourceguardian.ini,
/etc/php.d/sqlite3.ini,
/etc/php.d/wddx.ini,
/etc/php.d/xmlreader.ini,
/etc/php.d/xmlwriter.ini,
/etc/php.d/xsl.ini,
/etc/php.d/zip.ini [root@localhost modules]# updatedb && locate mcrypt
/etc/php.d/mcrypt.ini
/usr/bin/libmcrypt-config
/usr/include/mcrypt.h
/usr/include/mutils/mcrypt.h
/usr/lib/libmcrypt.so
/usr/lib/libmcrypt.so.4
/usr/lib/libmcrypt.so.4.4.8
/usr/lib/php/modules/mcrypt.so
/usr/local/nagiosxi/html/db/adodb/session/adodb-encrypt-mcrypt.php
/usr/share/aclocal/libmcrypt.m4
/usr/share/doc/libmcrypt-2.5.8
/usr/share/doc/libmcrypt-devel-2.5.8
/usr/share/doc/libmcrypt-2.5.8/AUTHORS
/usr/share/doc/libmcrypt-2.5.8/COPYING.LIB
/usr/share/doc/libmcrypt-2.5.8/ChangeLog
/usr/share/doc/libmcrypt-2.5.8/KNOWN-BUGS
/usr/share/doc/libmcrypt-2.5.8/NEWS
/usr/share/doc/libmcrypt-2.5.8/README
/usr/share/doc/libmcrypt-2.5.8/THANKS
/usr/share/doc/libmcrypt-2.5.8/TODO
/usr/share/doc/libmcrypt-devel-2.5.8/README.key
/usr/share/doc/libmcrypt-devel-2.5.8/README.xtea
/usr/share/doc/libmcrypt-devel-2.5.8/example.c
/usr/share/man/man1/symcryptrun.1.gz
/usr/share/man/man3/mcrypt.3.gz
/var/lib/yum/yumdb/l/4bd84cc7610030ac07b33fca75c3742514244101-libmcrypt-2.5.8-9.el6-i686
/var/lib/yum/yumdb/l/7d01ed69a1a3d9bf0ae06a3a1cd81e34db1c4e32-libmcrypt-devel-2.5.8-9.el6-i686
/var/lib/yum/yumdb/l/4bd84cc7610030ac07b33fca75c3742514244101-libmcrypt-2.5.8-9.el6-i686/checksum_data
/var/lib/yum/yumdb/l/4bd84cc7610030ac07b33fca75c3742514244101-libmcrypt-2.5.8-9.el6-i686/checksum_type
/var/lib/yum/yumdb/l/4bd84cc7610030ac07b33fca75c3742514244101-libmcrypt-2.5.8-9.el6-i686/command_line
/var/lib/yum/yumdb/l/4bd84cc7610030ac07b33fca75c3742514244101-libmcrypt-2.5.8-9.el6-i686/from_repo
/var/lib/yum/yumdb/l/4bd84cc7610030ac07b33fca75c3742514244101-libmcrypt-2.5.8-9.el6-i686/from_repo_revision
/var/lib/yum/yumdb/l/4bd84cc7610030ac07b33fca75c3742514244101-libmcrypt-2.5.8-9.el6-i686/from_repo_timestamp
/var/lib/yum/yumdb/l/4bd84cc7610030ac07b33fca75c3742514244101-libmcrypt-2.5.8-9.el6-i686/installed_by
/var/lib/yum/yumdb/l/4bd84cc7610030ac07b33fca75c3742514244101-libmcrypt-2.5.8-9.el6-i686/reason
/var/lib/yum/yumdb/l/4bd84cc7610030ac07b33fca75c3742514244101-libmcrypt-2.5.8-9.el6-i686/releasever
/var/lib/yum/yumdb/l/7d01ed69a1a3d9bf0ae06a3a1cd81e34db1c4e32-libmcrypt-devel-2.5.8-9.el6-i686/checksum_data
/var/lib/yum/yumdb/l/7d01ed69a1a3d9bf0ae06a3a1cd81e34db1c4e32-libmcrypt-devel-2.5.8-9.el6-i686/checksum_type
/var/lib/yum/yumdb/l/7d01ed69a1a3d9bf0ae06a3a1cd81e34db1c4e32-libmcrypt-devel-2.5.8-9.el6-i686/command_line
/var/lib/yum/yumdb/l/7d01ed69a1a3d9bf0ae06a3a1cd81e34db1c4e32-libmcrypt-devel-2.5.8-9.el6-i686/from_repo
/var/lib/yum/yumdb/l/7d01ed69a1a3d9bf0ae06a3a1cd81e34db1c4e32-libmcrypt-devel-2.5.8-9.el6-i686/from_repo_revision
/var/lib/yum/yumdb/l/7d01ed69a1a3d9bf0ae06a3a1cd81e34db1c4e32-libmcrypt-devel-2.5.8-9.el6-i686/from_repo_timestamp
/var/lib/yum/yumdb/l/7d01ed69a1a3d9bf0ae06a3a1cd81e34db1c4e32-libmcrypt-devel-2.5.8-9.el6-i686/installed_by
/var/lib/yum/yumdb/l/7d01ed69a1a3d9bf0ae06a3a1cd81e34db1c4e32-libmcrypt-devel-2.5.8-9.el6-i686/reason
/var/lib/yum/yumdb/l/7d01ed69a1a3d9bf0ae06a3a1cd81e34db1c4e32-libmcrypt-devel-2.5.8-9.el6-i686/releasever
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/checksum_data
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/checksum_type
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/command_line
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/from_repo
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/from_repo_timestamp
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/installed_by
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/reason
/var/lib/yum/yumdb/p/231fda0a08654700ff72ee17989fc6c509dffd3d-php-mcrypt-5.3.3-1.el6.rf-i686/releasever

Please help me out from this.

Источник

CentOS

PHP Startup: Unable to load dynamic library ‘gd’

PHP Startup: Unable to load dynamic library ‘gd’

Post by wp.rauchholz » 2019/03/20 17:50:27

All worked fine, until I updated my system today (amongst others a new kernel). I rebooted the system and get now the following message:

[root@home php.d]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library ‘gd’ (tried: /opt/remi/php72/root/usr/lib64/php/modules/gd (/opt/remi/php72/root/usr/lib64/php/modules/gd: cannot open shared object file: No such file or directory), /opt/remi/php72/root/usr/lib64/php/modules/gd.so (libwebp.so.7: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.2.16 (cli) (built: Mar 5 2019 13:10:50) ( NTS )
Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.16, Copyright (c) 1999-2018, by Zend Technologies

There was no update of any php program during today’s update.
I mande no changes to php or http configs.
The module is installed
[root@home wp.rauchholz]# rpm -qa php72-php-gd
php72-php-gd-7.2.16-1.el7.remi.x86_64

[root@home wp.rauchholz]# ls -al /opt/remi/php72/root/usr/lib64/php/modules/gd.so
-rwxr-xr-x 1 root root 108432 5. Mär 13:14 /opt/remi/php72/root/usr/lib64/php/modules/gd.so

and enabled
; Enable gd extension module
extension=gd

info.php
System Linux home 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64
Build Date Mar 5 2019 13:11:56
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/opt/remi/php72
Loaded Configuration File /etc/opt/remi/php72/php.ini
Scan this dir for additional .ini files /etc/opt/remi/php72/php.d
Additional .ini files parsed . /etc/opt/remi/php72/php.d/20-gd.ini.

Any idea where to start looking?
Thanks for your help.

Источник

Читайте также:  Javascript какая клавиша была
Оцените статью