Buscar

Selasa, 17 Januari 2012

Apache22 libgdbm error

recently I installed ntop-4.1.0_2 on my server, and it ask me to upgrade my gdbm into gdbm-1.9.1. But after the installation, my Apache wont start since the libgdbm replaced from libgdbm.so.3 into libgdbm.so.4, and when I try to start the apache, it shown


/libexec/ld-elf.so.1: Shared object "libgdbm.so.3" not found, required by "httpd"


When I run ldd /usr/local/sbin/httpd it gives an answer


/usr/local/sbin/httpd:
libm.so.5 => /lib/libm.so.5 (0x280da000)
libpcre.so.0 => /usr/local/lib/libpcre.so.0 (0x280f4000)
libaprutil-1.so.3 => /usr/local/lib/libaprutil-1.so.3 (0x28130000)
libdb-4.2.so.2 => /usr/local/lib/libdb-4.2.so.2 (0x2814c000)
libgdbm.so.3 => not found (0x0)
libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x28220000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28240000)
libapr-1.so.4 => /usr/local/lib/libapr-1.so.4 (0x28336000)
libcrypt.so.5 => /lib/libcrypt.so.5 (0x2835d000)
libthr.so.3 => /lib/libthr.so.3 (0x28376000)
libc.so.7 => /lib/libc.so.7 (0x2838b000)


that's happened because the current version of Apache I used that time was not support the new libgdbm that I have in my server, so if you face the error, the only suggestion I can give to you is

upgrade the apache into 2.2.21
manually uninstall it and then install the new version of Apache


I know it sounds stupid, but believe me, it works :D

MYSQL ERROR : ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

malam ini saya mendapatkan kejadian mengejutkan pas lg ngoprek FreeBSD, tiba" database ngga bisa diakses..saya yg lagi skripsi ini sontan panik, shock dan ngga ngerti harus berbuat apa.. *nangis dipojokan*
akhirnya setelah browsing beberapa kemungkinan yg bisa dilakukan untuk memperbaiki database saya, saya memilih untuk melakukan langkah langkah dibawah ini ~

1. stop proses MySQL dan copy database nya dengan command dibawah ini


/usr/local/etc/rc.d/mysql-server stop
mv /var/db/mysql /var/db/mysql_old


2. setelah dipastikan database sudah dicopy, start lagi MySqlnya ~

/usr/local/etc/rc.d/mysql-server start

dan buka MySql dengan password yang baru

mysql -u root -p
Enter password:


3. setelah masuk, saya sarankan untuk exit lagi dan buka dari web browser ~ di 127.0.0.1/phpmyadmin, kalo database nya ilang, jangan panik..tinggal copy lagi database yg udah kita back up tadi disini

mv /var/db/mysql_old /var/db/mysql


dan voila ~ database anda bisa diakses lagi seolah tidak terjadi apa" :))




note : tutorial ini dibuat dengan environment sebagai berikut =
- OS : FreeBSD 8.2
- MySql : mysql-client-5.0.92, mysql-server-5.0.92

 
lost in space | Copyright © 2011 Designed by: compartidisimo | With the technology: Blogger