Problem :
Ketika akan merubah webserver dari lighthttpd ke apache dari kloxo lxadmin maka akan muncul error message sbagai berikut :
" kloxo switch program Alert: install_httpd_failed "
Problem ini disebabkan oleh karena yum tidak terupdate pada saat instalasi httpd
Solusi :
Login SSH server
Jalankan perintah :
[root@server /]# yum update
apabila pada saat proses update terdapat error :
08:44:04 : Failure getting http://centos-mirror.financial.com/5.1/updates/x86_64/repodata/primary.xml.gz:
08:44:04 : --> [Errno -1] Metadata file does not match checksum
08:44:04 : Trying other mirror.
08:44:04 : Failure getting http://centos.intergenia.de/5.1/updates/x86_64/repodata/primary.xml.gz:
08:44:04 : --> [Errno -1] Metadata file does not match checksum
08:44:04 : Trying other mirror.
08:44:04 : Failure getting http://mirror.atrpms.net/centos/5.1/updates/x86_64/repodata/primary.xml.gz:
08:44:04 : --> [Errno -1] Metadata file does not match checksum
08:44:04 : Trying other mirror.
08:44:04 : Failure getting http://ftp.plusline.de/centos/5.1/updates/x86_64/repodata/primary.xml.gz:
08:44:04 : --> [Errno -1] Metadata file does not match checksum
08:44:04 : Trying other mirror.
08:44:05 : Failure getting ftp://mirror.fraunhofer.de/centos.org/5.1/updates/x86_64/repodata/primary.xml.gz:
08:44:05 : --> [Errno -1] Metadata file does not match checksum
08:44:05 : Trying other mirror.
08:44:05 : Failure getting http://wftp.tu-chemnitz.de/pub/linux/centos/5.1/updates/x86_64/repodata/primary.xml.gz:
08:44:05 : --> [Errno -1] Metadata file does not match checksum
08:44:05 : Trying other mirror.
08:44:05 : Failure getting http://centos.bio.lmu.de/5.1/updates/x86_64/repodata/primary.xml.gz:
08:44:05 : --> [Errno -1] Metadata file does not match checksum
08:44:05 : Trying other mirror.
08:44:05 : Failure getting http://ftp-stud.fht-esslingen.de/pub/Mirrors/centos/5.1/updates/x86_64/repodata/primary.xml.gz:
08:44:05 : --> [Errno -1] Metadata file does not match checksum
08:44:05 : Trying other mirror.
08:44:27 : Failure getting http://ftp.hosteurope.de/mirror/centos.org/5.1/updates/x86_64/repodata/primary.xml.gz:
08:44:27 : --> [Errno -1] Metadata file does not match checksum
08:44:27 : Trying other mirror.
08:44:27 : Failure getting http://centos.mirrors.skynet.be/pub/centos/5.1/updates/x86_64/repodata/primary.xml.gz:
08:44:27 : --> [Errno -1] Metadata file does not match checksum
08:44:27 : Trying other mirror.
08:50:12 : failure: repodata/primary.xml.gz from updates: [Errno 256] No more mirrors to try.
maka hal ini disebabkan karena error pada metadata repository dan source update.
maka dijalanjkan perintah :
[root@server /]# yum clean all
[root@server /]# yum makecache
Atau bisa juga menghapus semua cache secara manual pada directory : /var/cache/yum/
lalu
[root@server /]# yum update
.....
---> Package httpd.i386 0:2.2.3-43.el5.centos set to be updated
filelists.xml.gz 100% |=========================| 28 kB 00:00
filelists.xml.gz 100% |=========================| 215 B 00:00
filelists.xml.gz 100% |=========================| 2.9 MB 00:49
filelists.sqlite.bz2 100% |=========================| 539 kB 00:09
filelists.xml.gz 100% |=========================| 195 B 00:00
filelists.sqlite.bz2 100% |=========================| 195 kB 00:03
....
Setelah itu ulangi langkah switch program dari kloxo lxadmin lighthttpd ---> Apache.
cek proses di ssh :
[root@server /]# /etc/init.d/httpd status
httpd (pid 9453 9450 9447 9444 9442 9440 9439 9438 7871) is running...
[root@server /]# ps axuww --forest
root 7871 0.2 2.2 28740 11648 ? Ss 06:13 0:00 /usr/sbin/httpd
apache 9438 0.0 1.3 28740 6824 ? S 06:13 0:00 \_ /usr/sbin/httpd
apache 9439 0.0 1.3 28740 6824 ? S 06:13 0:00 \_ /usr/sbin/httpd
apache 9440 0.0 1.3 28740 6824 ? S 06:13 0:00 \_ /usr/sbin/httpd
apache 9442 0.0 1.3 28740 6824 ? S 06:13 0:00 \_ /usr/sbin/httpd
apache 9444 0.0 1.3 28740 6824 ? S 06:13 0:00 \_ /usr/sbin/httpd
apache 9447 0.0 1.3 28740 6824 ? S 06:13 0:00 \_ /usr/sbin/httpd
apache 9450 0.0 1.3 28740 6824 ? S 06:13 0:00 \_ /usr/sbin/httpd
apache 9453 0.0 1.3 28740 6824 ? S 06:13 0:00 \_ /usr/sbin/httpd
Selesai....
0 comments:
Posting Komentar