Posted by: Master Will | May 24, 2010

PHP -v error

[root@LSN-D1850 ~]# php -v
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/pdo_mysql.so’ – /usr/lib64/php/modules/pdo_mysql.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/pdo_sqlite.so’ – /usr/lib64/php/modules/pdo_sqlite.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
PHP 5.1.6 (cli) (built: Apr 7 2009 08:00:18)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with the ionCube PHP Loader v3.1.34, Copyright (c) 2002-2009, by ionCube Ltd.
[root@LSN-D1850 ~]# ll /usr/lib64/php/modules/pdo_mysql.so
-rwxr-xr-x 1 root root 28264 Apr 7 2009 /usr/lib64/php/modules/pdo_mysql.so
——————————————————————————-
To fix it:
nano -w /etc/php.ini
Changed ‘/usr/lib/php/modules’ to ‘/usr/lib64/php/modules’
service lighttpd restart


Categories