Linux 无法加载mcrypt扩展名

Linux 无法加载mcrypt扩展名,linux,phpmyadmin,mcrypt,Linux,Phpmyadmin,Mcrypt,phpMyAdmin报告无法加载mcrypt扩展名。我正在使用PHP5.3.3和Zend Engine v2.3.0运行Centos 6.2 x86_64 这是我到目前为止检查过的: php.ini位于/usr/local/zend/etc/php.ini中,由phpinfo()报告 日志文件是干净的。我跳过了access\u log的输出,因为它很长,而且没有什么有趣的内容 [root@localhost etc]# tail /var/log/messages Jul 22 03:28:0

phpMyAdmin报告
无法加载mcrypt扩展名
。我正在使用PHP5.3.3和Zend Engine v2.3.0运行Centos 6.2 x86_64

这是我到目前为止检查过的:

  • php.ini
    位于
    /usr/local/zend/etc/php.ini
    中,由
    phpinfo()报告

  • 日志文件是干净的。我跳过了
    access\u 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]# [root@localhostetc]#tail/var/log/messages Jul 22 03:28:01 localhost内核:imklog 4.6.2,log source=/proc/kmsg已启动。 7月22日03:28:01本地主机rsyslogd:[origin software=“rsyslogd”swVersion=“4.6.2”x-pid=“1455”x-info=”http://www.rsyslog.com“](重新)启动 七月22日07:46:35本地主机yum[11527]:安装:libmcrypt-2.5.7-1.2.el6.rf.x86_64 七月22日07:46:35本地主机yum[11527]:安装:libmcrypt-devel-2.5.7-1.2.el6.rf.x86_64 7月22日07:58:00本地主机yum[11817]:安装:php-mbstring-5.3.3-14.el6_3.x86_64 [root@localhost等]# [root@localhostetc]#tail-n5/var/log/httpd/error#u log [Sun Jul 22 08:37:19 2012][通知]已启用SELinux策略;httpd作为上下文未定义\u u:system\u r:httpd\u t:s0运行 [Sun Jul 22 08:37:19 2012][注意]已启用suEXEC机制(包装器:/usr/sbin/suEXEC) [Sun Jul 22 08:37:19 2012][通知]摘要:为摘要身份验证生成机密。。。 [Sun Jul 22 08:37:19 2012][通知]摘要:完成 [Sun Jul 22 08:37:19 2012][注意]已配置Apache/2.2.15(Unix)DAV/2 PHP/5.3.14--恢复正常操作 [root@localhost等]#
  • 共享对象
    mcrypt.so
    mbstring.so
    位于
    扩展目录中。我从
    php\u info()获得了
    extension\u dir
  • 我已经多次重新启动了
    httpd

  • 禁用SELinux并不能解决此问题

  • 是的,我知道我是以root用户身份运行的。它位于没有外部网络访问的本地VM上。我的目标是记录并解决这个问题

    工具书类
  • 可能重复的 [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]# [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]#