3

I am encountering the following errors when I try to run my webpage, which has a php script embedded to call a mysql database:


PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/dbase.so' - /usr/lib64/php/modules/dbase.so: undefined symbol: core_globals in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - /usr/lib64/php/modules/mysql.so: undefined symbol: executor_globals in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' - /usr/lib64/php/modules/mysqli.so: undefined symbol: executor_globals in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo.so' - /usr/lib64/php/modules/pdo.so: undefined symbol: executor_globals 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: executor_globals in Unknown on line 0
[notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
PHP Fatal error:  Call to undefined function mysqli_connect() in /var/www/html/index.php on line 11

I have checked my php.ini file and have verified the extension_dir directive references the correct directory i.e. /usr/lib64/php/modules/

Is anyone able to shed some light on why these errors are occurring?

3
  • That is a config issue and not a programming question. Commented Jun 7, 2014 at 12:52
  • Have you custom-compiled php? I believe this is caused by compiling with --enable-versioning, which is incompatible with loadable modules: bugs.php.net/bug.php?id=24853 Commented Jun 7, 2014 at 12:56
  • I think you're have a bad installation, maybe different versions of php lib and php itself . You must provide more Information like version, webserver, etc. Commented Feb 13, 2017 at 11:19

1 Answer 1

2

You should open your php.ini file located in php folder, and uncomment this line of code:

;extension=php_mysql.dll

then it will look like this:

extension=php_mysql.dll
Sign up to request clarification or add additional context in comments.

3 Comments

Is php_mysql.dll only applicable to a windows installation?
@user3717786 Yes '.dll' are windows only dynamic link libraries, on Linux it'll be php_mysql.so
I need help! I can't load sqlsrv extensions :(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.