PHP Service Error Summary
Server Environment Information:
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)
A problem occurred:
Launch Apache service, view PHP log
The following information appears
?
PHP warning:php Startup:mcrypt:Unable to initiallize module
Module compiled with module api=20100525
Php??? Compiled with module api=20090626
?
Error meaning:
# #意思是mcrypt module is not initialized, in fact, there is no successful call # # #
Problem Check
View the installed PHP RPM package situation
?
[Root@localhost 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
found that the php-mcrypt-5.4.8-1.el6.i686 version does not match the PHP version
? Problem Solving
1 Removing the Php-mcrypt module
Rpm-e php-mcrypt-5.4.8-1.el6.i686
2 Install the correct version
php-mcrypt-5.3.3-1.el6.i686
Problems can be solved