无法加载mcrypt扩展名

时间:2012-07-22 16:10:44

标签: linux phpmyadmin mcrypt

phpMyAdmin报告Cannot load mcrypt extension。我正在使用PHP 5.3.3和Zend Engine v2.3.0运行Centos 6.2 x86_64。

这是我到目前为止所检查的内容:

    {li>

    php.ini位于/usr/local/zend/etc/php.iniphpinfo();报告。

    PHP version
    [root@localhost etc]# php -v
    PHP 5.3.3 (cli) (built: Jul  3 2012 16:53:21) 
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.1.4, Copyright (c) 2002-2012, by Derick Rethans
    [root@localhost etc]#
    
  1. 匹配安装的mcryptmbstring个库:

    [root@localhost etc]# rpm -qa | grep -P 'mcrypt|mbstring'
    libmcrypt-devel-2.5.7-1.2.el6.rf.x86_64
    php-5.3-mcrypt-zend-server-5.3.14-1.x86_64
    php-5.3-mbstring-zend-server-5.3.14-1.x86_64
    libmcrypt-2.5.7-1.2.el6.rf.x86_64
    php-mbstring-5.3.3-14.el6_3.x86_64
    [root@localhost etc]# 
    
  2. 日志文件很干净。我跳过access_log的输出,因为它很长并且没有任何兴趣。

    [root@localhost etc]# tail /var/log/messages
    Jul 22 03:28:01 localhost kernel: imklog 4.6.2, log source = /proc/kmsg started.
    Jul 22 03:28:01 localhost rsyslogd: [origin software="rsyslogd" swVersion="4.6.2" x-    pid="1455" x-info="http://www.rsyslog.com"] (re)start
    Jul 22 07:46:35 localhost yum[11527]: Installed: libmcrypt-2.5.7-1.2.el6.rf.x86_64
    Jul 22 07:46:35 localhost yum[11527]: Installed: libmcrypt-devel-2.5.7-1.2.el6.rf.x86_64
    Jul 22 07:58:00 localhost yum[11817]: Installed: php-mbstring-5.3.3-14.el6_3.x86_64
    [root@localhost etc]#
    [root@localhost etc]# tail -n 5 /var/log/httpd/error_log 
    [Sun Jul 22 08:37:19 2012] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
    [Sun Jul 22 08:37:19 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Sun Jul 22 08:37:19 2012] [notice] Digest: generating secret for digest authentication ...
    [Sun Jul 22 08:37:19 2012] [notice] Digest: done
    [Sun Jul 22 08:37:19 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.14 configured -- resuming normal operations
    [root@localhost etc]#
    
  3. 共享对象mcrypt.sombstring.so位于extension_dir。我从extension_dir获得了php_info();,然后列出了目录内容。两个共享对象都存在。

  4. 我已多次重启httpd

  5. 禁用SELinux无法解决问题。

  6. 是的,我知道我的运行时间是root。它位于没有外部网络访问的本地VM上。我的目标是记录并解决此问题。

    参考

    1. question-defense.com
    2. StackOverflow "PhpMyAdmin install errors"
    3. StackOverflow "Failed to proper setup php..."

0 个答案:

没有答案
相关问题