Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-24, 08:44:16

Author Topic: PHP Startup: Unable to load dynamic library  (Read 8703 times)

0 Members and 1 Guest are viewing this topic.

Offline tonym

  • Valuable Member
  • *
  • Posts: 64
  • Karma: +0/-0
    • View Profile
PHP Startup: Unable to load dynamic library
« on: 2015-01-17, 05:13:32 »
I am running Kloxo-MR: 7.0.0.b-2015011402

I find lots of errors loading PHP modules in /var/log/php_error.log and /var/log/php53s-error.log - undefined symbols, and PHP & modules versions mismatch. I seem to have a lot that is out of step.

My main apache /var/log/httpd/error.log is OK.


/var/log/php_error.log

[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/curl.so' - /usr/lib/php/modules/curl.so: undefined symbol:
file_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/dom.so' - /usr/lib/php/modules/dom.so: undefined symbol: ex
ecutor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/fileinfo.so' - /usr/lib/php/modules/fileinfo.so: undefined
symbol: file_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: gd: Unable to initialize module
Module compiled with build ID=API20100525,NTS
PHP    compiled with build ID=API20100525,TS
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/imap.so' - /usr/lib/php/modules/imap.so: undefined symbol:
file_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/intl.so' - /usr/lib/php/modules/intl.so: undefined symbol:
executor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/json.so' - /usr/lib/php/modules/json.so: undefined symbol:
executor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ldap.so' - /usr/lib/php/modules/ldap.so: undefined symbol:
executor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mbstring.so' - /usr/lib/php/modules/mbstring.so: undefined
symbol: sapi_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: mcrypt: Unable to initialize module
Module compiled with build ID=API20100525,NTS
PHP    compiled with build ID=API20100525,TS
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysql.so' - /usr/lib/php/modules/mysql.so: undefined symbol
: executor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysqli.so' - /usr/lib/php/modules/mysqli.so: undefined symb
ol: executor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo.so' - /usr/lib/php/modules/pdo.so: undefined symbol: ex
ecutor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_mysql.so' - /usr/lib/php/modules/pdo_mysql.so: undefine
d symbol: php_pdo_register_driver in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_sqlite.so' - /usr/lib/php/modules/pdo_sqlite.so: undefi
ned symbol: executor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/phar.so' - /usr/lib/php/modules/phar.so: undefined symbol:
sapi_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: posix: Unable to initialize module
Module compiled with build ID=API20100525,NTS
PHP    compiled with build ID=API20100525,TS
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: pspell: Unable to initialize module
Module compiled with build ID=API20100525,NTS
PHP    compiled with build ID=API20100525,TS
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: recode: Unable to initialize module
Module compiled with build ID=API20100525,NTS
PHP    compiled with build ID=API20100525,TS
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/snmp.so' - /usr/lib/php/modules/snmp.so: undefined symbol:
executor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/soap.so' - /usr/lib/php/modules/soap.so: undefined symbol:
sapi_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/sysvmsg.so' - /usr/lib/php/modules/sysvmsg.so: undefined sy
mbol: basic_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: sysvsem: Unable to initialize module
Module compiled with build ID=API20100525,NTS
PHP    compiled with build ID=API20100525,TS
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/sysvshm.so' - /usr/lib/php/modules/sysvshm.so: undefined sy
mbol: basic_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: tidy: Unable to initialize module
Module compiled with build ID=API20100525,NTS
PHP    compiled with build ID=API20100525,TS
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/wddx.so' - /usr/lib/php/modules/wddx.so: undefined symbol:
executor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/xmlreader.so' - /usr/lib/php/modules/xmlreader.so: undefine
d symbol: executor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/xmlrpc.so' - /usr/lib/php/modules/xmlrpc.so: undefined symb
ol: executor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: xmlwriter: Unable to initialize module
Module compiled with build ID=API20100525,NTS
PHP    compiled with build ID=API20100525,TS
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/xsl.so' - /usr/lib/php/modules/xsl.so: undefined symbol: ex
ecutor_globals in Unknown on line 0
[17-Jan-2015 10:44:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/zip.so' - /usr/lib/php/modules/zip.so: undefined symbol: ex
ecutor_globals in Unknown on line 0




And /var/log/php53s-error.log


[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: bcmath: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/curl.so' - /opt/php53s/usr/lib/php/mod
ules/curl.so: undefined symbol: php_checkuid in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: dom: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/fileinfo.so' - /opt/php53s/usr/lib/php
/modules/fileinfo.so: undefined symbol: zval_property_ctor in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/gd.so' - /opt/php53s/usr/lib/php/modul
es/gd.so: undefined symbol: php_checkuid in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: geoip: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/imap.so' - /opt/php53s/usr/lib/php/mod
ules/imap.so: undefined symbol: php_checkuid in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: intl: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: json: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: ldap: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: mbstring: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/mysqli.so' - /opt/php53s/usr/lib/php/m
odules/mysqli.so: undefined symbol: zval_property_ctor in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pdo.so' - /opt/php53s/usr/lib/php/modu
les/pdo.so: undefined symbol: zval_property_ctor in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pdo_mysql.so' - /opt/php53s/usr/lib/ph
p/modules/pdo_mysql.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pdo_sqlite.so' - /opt/php53s/usr/lib/p
hp/modules/pdo_sqlite.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/phar.so' - /opt/php53s/usr/lib/php/mod
ules/phar.so: undefined symbol: php_checkuid in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/posix.so' - /opt/php53s/usr/lib/php/mo
dules/posix.so: undefined symbol: php_checkuid_ex in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/pspell.so' - /opt/php53s/usr/lib/php/m
odules/pspell.so: undefined symbol: php_checkuid in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: recode: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: snmp: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/soap.so' - /opt/php53s/usr/lib/php/mod
ules/soap.so: undefined symbol: zval_property_ctor in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: sysvmsg: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: sysvsem: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: sysvshm: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/tidy.so' - /opt/php53s/usr/lib/php/mod
ules/tidy.so: undefined symbol: zval_property_ctor in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: wddx: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/xmlreader.so' - /opt/php53s/usr/lib/ph
p/modules/xmlreader.so: undefined symbol: zval_property_ctor in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: xmlrpc: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/xmlwriter.so' - /opt/php53s/usr/lib/ph
p/modules/xmlwriter.so: undefined symbol: zval_property_ctor in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/xsl.so' - /opt/php53s/usr/lib/php/modu
les/xsl.so: undefined symbol: zval_property_ctor in Unknown on line 0
[17-Jan-2015 10:43:51 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php53s/usr/lib/php/modules/zip.so' - /opt/php53s/usr/lib/php/modu
les/zip.so: undefined symbol: zval_property_ctor in Unknown on line 0







A. Kloxo-MR: 7.0.0.b-2015011402

B. OS: CentOS release 5.11 (Final) i686

C. Apps:
   1. MySQL: mysql55-5.5.41-2.ius.el5
   2. PHP: php54-5.4.36-1.ius.el5
   3. Httpd: httpd-2.2.29-1.mr.el5
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.10.1-f.1.mr.el5
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.5-1.el5
   9. Qmail: qmail-toaster-1.03-1.3.45.mr.el5
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el5

D. Php-type (for Httpd/proxy): suphp_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          1024        979         44          0          0        668
   -/+ buffers/cache:        311        712
   Swap:         1024        147        876

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP Startup: Unable to load dynamic library
« Reply #1 on: 2015-01-17, 08:31:07 »
Inform here your 'dir -l /etc/yum.repos.d'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline tonym

  • Valuable Member
  • *
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: PHP Startup: Unable to load dynamic library
« Reply #2 on: 2015-01-20, 04:20:46 »
Here it is:

-bash-3.2# dir -l /etc/yum.repos.d
total 60
-rw-r--r-- 1 root root 2049 Mar 10  2012 CentOS-Base.repo
-rw-r--r-- 1 root root 1926 Aug 29  2011 CentOS-Base.repo.rpmnew
-rw-r--r-- 1 root root  645 Sep 19 18:16 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root  626 Sep 19 18:16 CentOS-Media.repo
-rw-r--r-- 1 root root 1330 Sep 19 18:16 CentOS-Sources.repo
-rw-r--r-- 1 root root 8315 Sep 19 18:16 CentOS-Vault.repo
-rw-r--r-- 1 root root  277 Sep 19 18:16 CentOS-fasttrack.repo
-rw-r--r-- 1 root root 3015 Aug  5  2013 index.html
-rw-r--r-- 1 root root  389 Jan  3  2011 lxlabs.repo.lxsave
-rw-r--r-- 1 root root 7006 Jan  2 14:20 mratwork.repo
-rw-r--r-- 1 root root 6596 Dec 28 22:18 mratwork.repo.rpmsave

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP Startup: Unable to load dynamic library
« Reply #3 on: 2015-01-20, 06:08:43 »
Look like failed for php installed. Try again 'sh /script/upcp -y' for reinstall Kloxo-MR.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline tonym

  • Valuable Member
  • *
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: PHP Startup: Unable to load dynamic library
« Reply #4 on: 2015-01-20, 07:35:52 »
Thanks - I saw it install lots of dependencies while doing that.


Now the httpd service doesn't start with this error:

Starting httpd: httpd.event: Syntax error on line 63 of /etc/httpd/conf/httpd.conf: Syntax error on line 10 of /etc/httpd/conf.d/suphp.conf: Cannot load /etc/httpd/modules/libphp5-zts.so into server: /etc/httpd/modules/libphp5-zts.so: cannot open shared object file: No such file or directory

I then installed   php53u-zts, and could start httpd.

Now web pages and webmail produce this error:
Error 500 - Internal Server Error

In /var/log/http/error.log I see this:
[Tue Jan 20 13:28:37 2015] [error] [client 212.140.165.61] SoftException in Application.cpp:350: UID of script "/home/kloxo/httpd/webmail/index.php" is smaller than min_uid
[Tue Jan 20 13:28:37 2015] [error] [client 212.140.165.61] Premature end of script headers: index.php
-bash-3.2#
-bash-3.2# ls -l /home/kloxo/httpd/webmail/index.php
-rw-r--r-- 1 apache apache 3136 Jan 20 13:14 /home/kloxo/httpd/webmail/index.php
-bash-3.2# ls -ln /home/kloxo/httpd/webmail/index.php
-rw-r--r-- 1 48 48 3136 Jan 20 13:14 /home/kloxo/httpd/webmail/index.php


I think I once had to change min_uid before.

Offline tonym

  • Valuable Member
  • *
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: PHP Startup: Unable to load dynamic library
« Reply #5 on: 2015-01-20, 07:43:47 »
I just changed min_uid and min_gid from 500 to 48 in /etc/suphp.conf

Is my apache uid wrong? This server ran lxadmin a long time ago.



[Tue Jan 20 13:38:01 2015] [error] [client 212.140.165.61] SoftException in Application.cpp:566: Directory "/home/kloxo/httpd" is writeable by group
[Tue Jan 20 13:38:01 2015] [error] [client 212.140.165.61] Premature end of script headers: index.php

 removed group write, but the "Premature end of script headers: index.php" messages still happen.

Offline tonym

  • Valuable Member
  • *
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: PHP Startup: Unable to load dynamic library
« Reply #6 on: 2015-01-20, 08:16:51 »
I switched from suphp_event to php-fpm_event, and now have web sites up.

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.078 seconds with 18 queries.

web stats analysis