LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2016, 09:51 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Rep: Reputation: 34
Unable to load dynamic library '/usr/lib64/php_mcrypt.so'


Hello

I get following error :

Quote:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php_mcrypt.so' - /usr/lib64/php_mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
A "locate mcrypt" shows the following :

Quote:
/etc/php.d/mcrypt.ini
/usr/bin/libmcrypt-config
/usr/bin/mcrypt
/usr/include/mcrypt.h
/usr/include/mutils/mcrypt.h
/usr/lib64/libmcrypt.so
/usr/lib64/libmcrypt.so.4
/usr/lib64/libmcrypt.so.4.4.8
/usr/lib64/php/modules/mcrypt.so
Seems php is looking in the wrong directory. How can I fix this ? With a symlink ?


Thanks.
 
Old 10-06-2016, 12:20 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You don't give much info about distro, or how you've installed the php-mcrypt extension
Anyways I guess you need to edit /etc/php.d/mcrypt.ini (or php.ini) and use the correct path to mcrypt.so:
Code:
extension = /usr/lib64/php/modules/mcrypt.so
Regards
 
Old 10-06-2016, 12:34 PM   #3
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Original Poster
Rep: Reputation: 34
Hello

thank you for your reply.

I am on CentOS 6 and installed php-mcrypt via yum.

I solved my problem by editing /etc/php.ini and commenting out the line "extension=/usr/lib64/php_mcrypt.so"

I now have :
Code:
;extension=/usr/lib64/php_mcrypt.so
and I no longer have the problem.
 
Old 10-06-2016, 12:56 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Glad to see you've sorted it out.
You may mark the thread as "SOLVED" from the Thread Tools on top of the page

Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Startup: Unable to load dynamic library kohshan99 Linux - Software 1 04-16-2015 05:11 AM
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/xsl malayo Debian 8 07-02-2013 04:57 AM
[PhP] Unable to load php_mcrypt.so jonaskellens Linux - Software 1 05-21-2013 06:23 PM
Unable to load dynamic library '/usr/lib/php4/20050606/gd.so' sYs^ Debian 0 04-22-2006 11:39 AM
PHP Warning: Unable to load dynamic library xbaez Linux - Software 3 02-15-2005 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration