Error in phpMyAdmin mcrypt

Source: Internet
Author: User
Tags mcrypt
Error message: mcrypt Extensions cannot be loaded. (1) Replace extensionphp_mcrypt.dll with extensionphp_mcrypt.dll to remove the previous one. [root @

Error message: mcrypt Extensions cannot be loaded. (1) extension = php_mcrypt.dll is changed to extension = php_mcrypt.dll // remove the previous one to make it take effect. [root @

Homepage → Database Technology

Background:

Read News

Error in phpMyAdmin mcrypt

[Date:] Source: Linux community Author: Cai caiguang [Font:]

Error message: mcrypt Extensions cannot be loaded. (1) extension = php_mcrypt.dll is changed to extension = php_mcrypt.dll // remove the previous one. [root @ ~] # Updatedb # update a database
[Root @ ~] # Locate php. ini # search for files
/Usr/local/php. ini
/Usr/local/php. ini. default
/Usr/src/php-5.2.16/php. ini-dist
/Usr/src/php-5.2.16/php. ini-recommended
/Usr/src/php-5.3.4/php. ini-development
/Usr/src/php-5.3.4/php. ini-production
[Root @ ~] # Vi/usr/local/php. ini. default # view the backup file and find the field
; Extension = php_mcrypt.dll
Copy to the php. ini file and start this function.
Default_socket_timeout = 60
Extension = php_mcrypt.dll
[Date]
The problem persists.

View apache error logs
[Root @ ~] # Grep mcrypt/usr/local/apache/logs/error_log

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

Download and install the libmcrypt component
[Root @ ftpuser1] # cd/usr/src/
[Root @ src] # ls lib *
Libmcrypt-2.5.7.tar.gz
[Root @ src] # tar-xzvf libmcrypt-2.5.7.tar.gz

[Root @ libmcrypt-2.5.7] # mkdir/usr/local/libmcrypt
[Root @ libmcrypt-2.5.7] #./configure -- prefix =/usr/local/libmcrypt/
[Root @ libmcrypt-2.5.7] # make & make install


Recompile php
[Root @ php-5.2.16] #. /configure -- prefix =/usr/local/php -- enable-mbstring -- with-config-file-path =/usr/local/php -- with-apxs2 =/usr/local/apache/ bin/apxs -- with-mysql =/usr/local/mysql -- with-mcrypt =/usr/local/libmcrypt/


[Root @ php-5.2.16] # ls php *
Php5.spec php5.spec. in php.gif php. ini-dist php. ini-recommended
[Root @ php-5.2.16] # cp php. ini-recommended/usr/local/php. ini # create a php configuration file

Extension = php_mcrypt.dll

[Root @ php] # cp php. ini php. ini. bak # back up the configuration document
[Root @ php] # rm-rf php. ini
[Root @ php] # grep-v '; 'php. ini. bak> php. ini # Delete the old configuration document and create a new configuration document
[Root @ php] #

Restart apache to solve the problem.

  • 0
  • Basic concepts of Oracle RAC DRM

    MySQL master-slave synchronization + mysql-zrm backup

    PhpMyAdmin

    Image Information

    View All comments in this article (0)

    Comments

    Latest Information

    Popular this week

    Introduction to Linux community-advertisement service-website map-help Info-contact us
    The articles published on this site (LinuxIDC) do not mean that they agree with the statement or description. They only provide more information and do not constitute any suggestions.


    Copyright©2006-2014 Linux community All rights reserved Zhejiang ICP backup No. 06018118

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.