php服務異常總結

來源:互聯網
上載者:User
php服務錯誤總結

伺服器環境資訊:

Linux version 2.6.32-279.el6.i686

CentOS release 6.3 (Final)

?

Server version: Apache/2.2.15 (Unix)
PHP 5.3.3 (cli) (built: May? 7 2012 19:58:17)

出現問題:

啟動apache服務,查看PHP日誌

出現如下資訊

?

PHP Warning:PHP Startup:mcrypt:Unable to initiallize module

Module compiled with module API=20100525
PHP??? compiled with module API=20090626

?

錯誤含義:
##意思是mcrypt模組沒有初始化,其實就是沒有調用成功###

問題檢查

查看已經安裝的PHP rpm包情況

?
[[email protected] local]# rpm -qa|grep phpphp-intl-5.3.3-3.el6_2.8.i686php-pear-1.9.4-4.el6.noarchphp-common-5.3.3-3.el6_2.8.i686php-mysql-5.3.3-3.el6_2.8.i686php-bcmath-5.3.3-3.el6_2.8.i686php-embedded-5.3.3-3.el6_2.8.i686php-gd-5.3.3-3.el6_2.8.i686php-mcrypt-5.4.8-1.el6.i686php-5.3.3-3.el6_2.8.i686php-dba-5.3.3-3.el6_2.8.i686php-cli-5.3.3-3.el6_2.8.i686php-xml-5.3.3-3.el6_2.8.i686php-enchant-5.3.3-3.el6_2.8.i686php-ldap-5.3.3-3.el6_2.8.i686php-devel-5.3.3-3.el6_2.8.i686php-pdo-5.3.3-3.el6_2.8.i686php-mbstring-5.3.3-3.el6_2.8.i686

發現php-mcrypt-5.4.8-1.el6.i686版本確實與php版本不相符合

?問題解決

1 卸載php-mcrypt模組

rpm -e php-mcrypt-5.4.8-1.el6.i686

2 安裝正確的版本

php-mcrypt-5.3.3-1.el6.i686

問題即可解決

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.