SliTaz SliTaz Forum

You are not logged in.

#1 2014-02-01 00:10:28

zainka
Member
Registered: 2014-01-22
Posts: 16

PHP warnings when executing scripts

I see they are only warnings and not errors. But what do they actuall state and what may I do to prevent this? It is said that the problem is a php bug in some forums, but I could not find an explanation or workaround.

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-zts-20100525/mysqli.so' - /usr/lib/php/extensions/no-debug-zts-20100525/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-zts-20100525/openssl.so' - /usr/lib/php/extensions/no-debug-zts-20100525/openssl.so: cannot open shared object file: No such file or directory in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-zts-20100525/mysql.so' - /usr/lib/php/extensions/no-debug-zts-20100525/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Could these errors explain why a php script with mysql statesments is failing while connecting the server?

I am getting error PHP Fatal error:  Call to undefined function mysqli_connect()

I have the following php packages installed

php                                5.4.23            development

php-cli                            5.4.23            development

php-common                         5.4.23            development

php-mysql                          5.4.23            development

php-mysqli                         5.4.23            development

php-openssl                        5.4.23            development

Offline

#2 2014-02-01 09:08:00

erjo
Administrator
Registered: 2011-03-28
Posts: 86

Re: PHP warnings when executing scripts

Hi,

Php modules are in /usr/share/php

[c]<br />
root@zecube:/var/www# ls -l /usr/share/php<br />
total 304<br />
-rwxr-xr-x    1 root     root        125108 Dec 27 15:36 mysqli.so<br />
-rwxr-xr-x    1 root     root         45880 Dec 27 15:36 mysql.so<br />
-rwxr-xr-x    1 root     root        104028 Dec 27 15:36 openssl.so<br />
-rwxr-xr-x    1 root     root         20116 Dec 27 15:36 pdo_mysql.so<br />[/c]
Add the following directive in your /etc/php.ini file and restart your http daemon.

[c]

extension_dir = "/usr/share/php/"

[/c]

Offline

#3 2014-02-01 23:46:16

zainka
Member
Registered: 2014-01-22
Posts: 16

Re: PHP warnings when executing scripts

Thanks. That line was already in php.ini but commented away. It workes now.

Breg

Vidar

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]