Website is offline on CentOS 5.6 Server error is libxml2.so.2: cannot open shared object file: No such file or directory, request assistance repairing this issue.
My customers website is down and our hosting provider says the issue is due to a damaged libxml2. The error is Website is offline on CentOS 5.6 Server error is libxml2.so.2: cannot open shared object file: No such file or directory,
I am looking for options to repair or replace this library.
Scott
LinuxApache Web ServerWeb ServersLinux Distributions
Last Comment
Scott Gorcester
8/22/2022 - Mon
Jan Bacher
Does it show installed?
rpm -qa | grep libxml
Can you retrieve it via yum?
yum list | grep libxml
If yes to both, "yum remove libxml2 libxml2-devel" and "yum install libxml2 libxml2-devel", else just install it.
Scott Gorcester
ASKER
Hi Jan, thank you for your reply!
the command rpm -qa | grep libxml just returns me to a prompt and yum list shows me the same error - libxml2.so.2: cannot open shared object file: No such file or directory
Scott Gorcester
ASKER
Yum is broken due to the issue, I figure I need to find the correct libxml and upload and install it. I am not sure on these steps. I have not found a version of libxml2 for Centos 5.6.
You don't want the want for CentOS 6. Get the one for 5.
Why is yum broken? What error do you get?
Scott Gorcester
ASKER
Everything was fine until yesterday when the client discovered their Joomla website was not online. Other Wordpress website works fine. Hosting provider said the libxml2 was broken and thus so is yum. The error when running yum is "libxml2.so.2: cannot open shared object file: No such file or directory,"
At this point I am looking to repair yum to see if this resolves the Joomla site problem. The client said they ran some updates and that is suspected cause at the moment
The server is a VPS and I do not have immediate access to the DVD, I could probably download a copy and build a centos 5.6 machine here in my lab.
Scott
Scott Gorcester
ASKER
also seeing this issue
service httpd start
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5.so into server: libxml2.so.2: cannot open shared object file: No such file or directory
arnold
Centos.org\mirrors download the libxml package, your issue sounds as a corruption because someone removed packages including the -force parameter and that is how one finds oneself in this situation.
Run ldd /usr/bin/yum and fill the missing dependencies.
Once yum us up and running, running yum update should fix the remaining missing items, including Python, etc.
If I am not mistaken, yum relies on libxml to parse the data.
One should not use -force as a general command argument as one tends to build in Muscle memory always including this argument
If the provider has a snapshot of the vps, rolling it back to the last version that work might be faster.......... Depending whether there are regular changes data being added.........
Arnold, no-one has accessed the server to run a -force parameter. I tried running the command you specify and the response is "not a dynamic executable.
Scott
arnold
Which command?
ldd yum?
You have to download and install the libxml rpm for centos 5.x the change in versions deals with security/vulnerability.
Once you restore the yum by reinstalling a dependency a package at a time, or if you can download the entire ISO, then mount it as though it is a file system,
And using the mounted ISO, reinstall/update the vps to make sure there are no broken dependencies st which point everything should start working again, more your installed system is centos 5.6 while the last 5 version is 11 and has been for I think more than four years.......
Yum update to get your vps to the most current version will mitigate how your system was compromised.....
Scott Gorcester
ASKER
Arnold, since yum is broken "yum update" will not work. I will ask the provider to mount the dvd in the hopes I can upgrade the VPS
I know that yum is currently broken, ldd will identify which other libraries might be missing.
My suggestion for yum update is after all requisite missing/corrupt packages are installed/reinstalled.
You could the DVD to reinstall yum with all the dependencies...........
Scott Gorcester
ASKER
I hired a contractor to fix this and he was able to delete the lib2 directory and copy fresh library to the proper location.
Scott Gorcester
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for moosesupport's comment #a41390360
for the following reason:
None of the responses led to a solution so I hired a contractor and paid him to resolve the issue.
gheist, since you were not a respondent I am unclear why you would object and on what grounds you accuse me of lying. Consultant was hired on Up Work (formerly oDesk) and I paid for 4 hours of work to resolve this issue. Here is the final two entries in our conversation that led to the site being restored to working order.
Okay I have granted points to all those who offered assistance even tho that assistance did not lead to a solution, thank you for your time, Gheist NO POINTS for you!
rpm -qa | grep libxml
Can you retrieve it via yum?
yum list | grep libxml
If yes to both, "yum remove libxml2 libxml2-devel" and "yum install libxml2 libxml2-devel", else just install it.