LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-21-2013, 06:59 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Rep: Reputation: 34
[PhP] Unable to load php_mcrypt.so


Hello,

when executing php -v, I get the error message :

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mcrypt.so' - /usr/lib64/php/modules/php_mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0

Code:
[root@server logging]# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mcrypt.so' - /usr/lib64/php/modules/php_mcrypt.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:51:11) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

I checked /etc/php.ini and I found :

extension=php_mcrypt.so


Because libmcrypt.so is situated in /usr/lib64, I changed this line to :

extension=/usr/lib64/php_mcrypt.so


But I am still getting the error message :

Code:
[root@server logging]# php -v
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
PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
 
Old 05-21-2013, 06:23 PM   #2
gdizzle
Member
 
Registered: Jul 2012
Posts: 234

Rep: Reputation: Disabled
Can you leave /etc/php.ini as:
Code:
extension=php_mcrypt.so
Can you create a symlink from to the file or make a copy of it from /usr/lib64/php_mcrypt.so to /usr/lib64/php/modules/php_mcrypt.so.

Then restart httpd and see how it goes?

If in doubt you could always go hunting for php53-mcrypt rpm. Or compile it in.

Also you might want to compare permissons and ownership of the file: /usr/lib64/php_mcrypt.so to your other PHP modules.
 
  


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 Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/xsl malayo Debian 8 07-02-2013 04:57 AM
Unable to load ffmpeg-php bosstijger Linux - Server 11 10-26-2009 05:50 PM
i am unable to load mappingtable by using dmsetup and unable to create vitualdevice varunsharma35 Linux - Software 0 12-20-2008 08:52 AM
PHP Warning: Unable to load dynamic library xbaez Linux - Software 3 02-15-2005 06:11 PM
ipw2200 - Unable to load ucode, unable to load firmware blizinsk Linux - Wireless Networking 2 10-10-2004 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:11 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