PHP does not work, shows error: Unable to initialize module

Created:

2016-11-16 13:11:33 UTC

Modified:

2017-04-24 11:55:06 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP does not work, shows error: Unable to initialize module

Applicable to:

  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux

Symptoms

When I check php -v :

PHP Warning:  PHP Startup: dbase: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysqli.so' - /usr/lib/php/modules/mysqli.so: undefined symbol: php_set_error_handling in Unknown on line 0
PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626

Cause

Such situation may take a place when several conflicting PHP packages are installed.

[root@hostname ~]# rpm -qa | grep php
php-ldap-5.2.13-jason.1
php-ldap-5.3.25-18.el5.art
php-common-5.2.13-jason.1
php-common-5.3.25-18.el5.art
php-gd-5.3.25-18.el5.art
php-gd-5.2.13-jason.1

Resolution

  • Install PHP packages from a repository supported by Plesk, the best option is an official OS repository.
  • Make sure that there is no conflicting packages. If you have a conflicted package, please replace it with the ones from the Parallels repository or delete unsupported one, like:

    [root@www ~]# rpm -e php-common-5.2.13-jason.1

Before deleting unsupported package, ensure that it will not affect your websites or server configuration.

Have more questions? Submit a request
Please sign in to leave a comment.