Sunday, May 13, 2007

Masalah apabila menaiktaraf Apache, MySQL, PHP dan OpenSSL

Slackware 11.0 didantangkan dengan pakej2 seperti Apache 1.3.37, MySQL 5.0.24a, PHP 4.4.4 dan OpenSSL 0.98d. Aku agak berhati-hati apabila cuba menaiktaraf pakej2 di atas supaya tidak berlaku lagi sistem crash seperti pada post terdahulu (lihat post sebelum ini) apabila menggunakan Slapt-get untuk -current pakej. Lebih2 lagi apabila berada di dalam -current. Bukan Slapt-get tidak powerful tetapi kesilapan saya tidak membaca hint2 yang diberikan oleh En Pat dalam bagaimana untuk upgrade sesuatu pakej. Saya telah mengupgrade Apache 1.3.37 kepada Apache1.3.37-i486-2.tgz (patch version), MySQL 5.0.24a kepada 5.0.37, PHP 4.4.4 kepada 4.4.6 dan OpenSSL 0.9.8d kepada 0.9.8e. Saya telah melakukan upgrade secara manual menggunakan tools2 seperti installpkg dan upgradepkg. Kesemua pakej2 tersebut selamat diupgrade tetapi apabila Apache cuba direstart, terdapat error yang keluar, menyebabkan Apache tidak boleh distart. Untuk problem "libexpat.so.1: No such file or directory" , sila rujuk tutorial disini http://www.asteriskguru.com/tutorials/asterisk_installation_compilation_slackware.html.
Please check for the libexpat in the /usr/lib directory

# cd /usr/lib
# ls -l libexpat*


You must see something like:

-rw-r--r-- 1 root root 160636 2005-09-09 18:58 libexpat.a
-rw-r--r-- 1 root root 706 2005-09-09 18:58 libexpat.la
lrwxrwxrwx 1 root root 17 2006-01-13 12:26 libexpat.so -> libexpat.so.0.5.0
lrwxrwxrwx 1 root root 17 2006-01-13 12:26 libexpat.so.0 -> libexpat.so.0.5.0
-rwxr-xr-x 1 root root 127428 2005-09-09 18:58 libexpat.so.0.5.0

If you do not have the libexpat.so. file, try to install "again" the expat.

Next step: create a symlink named libexpat.so.1 which has to point to the libexpat.so.0.5.0 file (the version numbers may be different). To do this use:

# cd /usr/lib
# ln -s libexpat.so.0.5.0 libexpat.so.1
Kemudian terdapat lagi error apabila cuba upgrade pakej OpenSSL, pakej OpenSSL hendaklah diupgrade beserta pakej openssl-solibs-0.9.8e. Barulah kesemua pakej diatas dapat dijalankan dengan jayanya.