@nmb, maybe you need to do some more? I am attempting downgrade of one server today. Here is instructions from John (DirectAdmin):
1) Check /usr/local/lib
Code:
[root@server]# cd /usr/local/lib
[root@server]# ls -la libz*
-rw-r--r-- 1 root root 92082 Feb 27 17:43 /usr/local/lib/libz.a
lrwxrwxrwx 1 root root 13 Feb 27 17:43 /usr/local/lib/libz.so -> libz.so.1.2.6
lrwxrwxrwx 1 root root 13 Feb 27 17:43 /usr/local/lib/libz.so.1 -> libz.so.1.2.6
-rwxr-xr-x 1 root root 75810 Apr 6 2010 /usr/local/lib/libz.so.1.2.3
-rwxr-xr-x 1 root root 85935 Feb 27 17:43 /usr/local/lib/libz.so.1.2.6
2) Check ssh to see what it's linked to:
Code:
[root@server]# ldd /usr/sbin/sshd | grep libz
libz.so.1 => /usr/local/lib/libz.so.1 (0x00cee000)
3) Copy 1.2.6 to /root, in case you need it.
Code:
cp libz.so.1.2.6 /root/libz.so.1.2.6
4) Type:
to update the links.
5) Check #1 again to ensure that libz.so.1 points to 1.2.3, eg:
Code:
[root@server]# ls -la libz.so.1
lrwxrwxrwx 1 root root 13 Feb 27 17:43 libz.so.1 -> libz.so.1.2.3
6) Confirm that sshd loads the library correctly:
Code:
[root@server]# /usr/sbin/sshd -h
sshd: option requires an argument -- h
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
usage: sshd [-46Ddeiqt] [-b bits] [-f config_file] [-g login_grace_time]
[-h host_key_file] [-k key_gen_time] [-o option] [-p port] [-u len]
don't worry about the -h option or that it throws an error.
We just want to see that sshd can load without any linker errors.
------
From here, libz is downgraded... but we need to remove the new xml version too, so repeat the same basic thing, but on xml2.
1)
Code:
[root@server]# ls -la libxml2*
Code:
-rw-r--r-- 1 root root 3274214 Feb 27 18:18 libxml2.a
-rwxr-xr-x 1 root root 975 Feb 27 18:18 libxml2.la
lrwxrwxrwx 1 root root 16 Feb 27 18:18 libxml2.so -> libxml2.so.2.7.8
lrwxrwxrwx 1 root root 16 Feb 27 18:18 libxml2.so.2 -> libxml2.so.2.7.8
-rwxr-xr-x 1 root root 2481508 Feb 13 19:11 libxml2.so.2.7.6
-rwxr-xr-x 1 root root 2484101 Feb 27 18:18 libxml2.so.2.7.8
2)
Code:
cp libxml2.so.2.7.8 /root/libxml2.so.2.7.8
3)
4)
Ensure you see:
Code:
libxml2.so.2 -> libxml2.so.2.7.6
5) You may want to recompile the old version of zlib and xml2 again, just to ensure the .h (development header) files get set to the correct version, then recompile php.
Code:
./build update
grep zlib versions.txt #ensure 1.2.3
./build zlib
./build libxml2
./build php n
---
it at any point you run into a library linking error with sshd (when it should be working), copy the libz.so.1.2.6 from /root back to /usr/local/lib, and type:
and test sshd again with ldd.