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-27, 17:45:01

Author Topic: How to upgrade libxml2 for php53u? php libxml2 kloxo-mr 6.5 version is buggy  (Read 6915 times)

0 Members and 1 Guest are viewing this topic.

Offline Almas

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
I'm using 6.5.0.f on CentOS

php -i showing me libxml version

libxml Version => 2.6.26
libxml
libxml2 Version => 2.6.26
libxslt compiled against libxml Version => 2.6.26

I installed libxml2 2.7.8 from source. But it still give me this version. How can I upgrade?

I tried to install mediawiki it giving me error below:

Your system has a combination of PHP and libxml2 versions which is buggy and can cause hidden data corruption in MediaWiki and other web applications. Upgrade to PHP 5.2.9 or later and libxml2 2.7.3 or later (bug filed with PHP http://bugs.php.net/bug.php?id=45996). Installation aborted.
« Last Edit: 2015-03-06, 05:29:02 by Almas »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Inform here what's your install new libxml2.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Inform here 'sh /script/sysinfo; yum list libxml2*'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Almas

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Here is it:

Code: [Select]
sh /script/sysinfo; yum list libxml2*



A. Kloxo-MR: 6.5.0.f-2015010801

B. OS: CentOS release 5.11 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.41-2.ius.el5
   2. PHP: php53u-5.3.29-1.ius.el5
   3. Httpd: httpd-2.2.29-1.mr.el5
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.45.mr.el5
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el5
   7. Dns: bind-9.9.5-1.el5

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

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          7838       6458       1379          0          0       2358
   -/+ buffers/cache:       4100       3738
   Swap:         2048        541       1506

Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * addons: mirrors.nwsuaf.edu.cn
 * base: mirrors.neusoft.edu.cn
 * extras: mirrors.nwsuaf.edu.cn
 * mratwork-epel: download.fedoraproject.org
 * mratwork-ius-stable: ftp.rediris.es
 * openvz-kernel-rhel5: download.openvz.org
 * openvz-utils: download.openvz.org
 * updates: mirrors.nwsuaf.edu.cn
Excluding Packages from MRatWork - Extra Packages for EL 5 - arch
Finished
Excluding Packages from MRatWork - IUS Community Packages for EL 5 (archive) - arch
Finished
Excluding Packages from MRatWork - IUS Community Packages for EL 5 (stable) - arch
Finished
0 packages excluded due to repository protections
Error: No matching Packages to list

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Kloxo-MR already serve libxml2-2.9.1 via their mratwork.repo.

If your system not update for libxml2 that mean something wrong with your system.

Inform here 'dir -l /etc/yum.repos.d'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Almas

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Code: [Select]
dir -la /etc/yum.repos.d
total 68
drwxr-xr-x   2 root root  4096 ??? 20 19:55 .
drwxr-xr-x 117 root root 12288 ???  7 04:28 ..
-rw-r--r--   1 root root  2049 ???  7 23:54 CentOS-Base.repo
-rw-r--r--   1 root root   645 ??? 19 13:16 CentOS-Debuginfo.repo
-rw-r--r--   1 root root   277 ??? 19 13:16 CentOS-fasttrack.repo
-rw-r--r--   1 root root   626 ??? 19 13:16 CentOS-Media.repo
-rw-r--r--   1 root root  1330 ??? 19 13:16 CentOS-Sources.repo
-rw-r--r--   1 root root  8315 ??? 19 13:16 CentOS-Vault.repo
-rw-r--r--   1 root root  6596 ??? 14 21:20 mratwork.repo
-rw-r--r--   1 root root  6596 ??? 11 10:01 mratwork.repo.rpmsave
-rw-r--r--   1 root root  2120 ??? 25  2013 openvz.repo

I installed 2.7.8 from source later.

xml2-config --version command show me
2.7.8

But phpinfo showing me libxml version 2.6.26:

Code: [Select]
PHP Version 5.3.29

Configure Command:
-with-libxml-dir=/usr' '--with-xml'

libxml
libXML support active
libXML Compiled Version 2.6.26
libXML Loaded Version 20708
libXML streams enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.26

xsl
XSL enabled
libxslt Version 1.1.17
libxslt compiled against libxml Version 2.6.26
EXSLT enabled
libexslt Version 1.1.17

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
'libXML Compiled Version    2.6.26' mean where php compile using this version. Not related to your current version.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Almas

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
I see. Then can you help to upgrade this to me?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Inform here 'yum list libxml2 --showduplicates'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Almas

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Here is it:

Code: [Select]
[root@server lib]# yum list libxml2 --showduplicates
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * addons: mirrors.nwsuaf.edu.cn
 * base: mirrors.nwsuaf.edu.cn
 * extras: mirrors.nwsuaf.edu.cn
 * mratwork-epel: download.fedoraproject.org
 * mratwork-ius-stable: ius.mirror.digitalpacific.com.au
 * openvz-kernel-rhel5: download.openvz.org
 * openvz-utils: download.openvz.org
 * updates: mirrors.opencas.cn
Excluding Packages from MRatWork - Extra Packages for EL 5 - arch
Finished
Excluding Packages from MRatWork - IUS Community Packages for EL 5 (archive) - arch
Finished
Excluding Packages from MRatWork - IUS Community Packages for EL 5 (stable) - arch
Finished
0 packages excluded due to repository protections
Installed Packages
libxml2.i386          2.9.1-1.mr.el5               installed                   
libxml2.x86_64        2.9.1-1.mr.el5               installed                   
Available Packages
libxml2.i386          2.6.26-2.1.21.el5_9.3        base                         
libxml2.x86_64        2.6.26-2.1.21.el5_9.3        base                         
libxml2.i386          2.6.26-2.1.25.el5_11         updates                     
libxml2.x86_64        2.6.26-2.1.25.el5_11         updates                     
libxml2.i386          2.9.1-1.mr.el5               mratwork-release-version-arch
libxml2.x86_64        2.9.1-1.mr.el5               mratwork-release-version-arch

Also I changed php version to PHP Version 5.4.38 on Kloxo-MR webconfig. But still same. :(
« Last Edit: 2015-03-14, 00:54:39 by Almas »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Libxml2 version 2.9.1 already installed. No need update to new one.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Almas

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
But how can work it with php?
It's working wrongly with php. Please help me.

I have this error when working with php:
Code: [Select]
Your system has a combination of PHP and libxml2 versions which is buggy and can cause hidden data corruption in MediaWiki and other web applications. Upgrade to PHP 5.2.9 or later and libxml2 2.7.3 or later (bug filed with PHP). Installation aborted. http://bugs.php.net/bug.php?id=45996
How can I upgrade compiled version with php?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Find out 'includes/installer/PhpBugTests.php' file in mediawiki directory and change 'public $ok = false;' to 'public $ok = true;'
« Last Edit: 2015-03-14, 02:41:41 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Almas

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Thank you commented out also 1 line below with ->ok and mediawiki installed. But If it's possible please tell me how can I compile libxml2 newer version for php and make it work correctly with php.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Php compile in not easy. When you compile php, php-xml2 module also created.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.054 seconds with 18 queries.

web stats analysis