Kemarin ada masalah sedikit dengan server cacti.
SNMP OK
MySQL OK
Apache2 tidak bisa running
Ketika saya coba untuk merestart service apache2, muncul lah pesan berikut
traffic:~# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...httpd (no pid file) not running
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
failed!
traffic:~#coba googling kesana dan kemari, ternyata hasilnya nihil.
coba untuk berdo'a dan memohon petunjuk kepada Yang Maha Kuasa, ehh ternyata solusinya hanya begini nih...
traffic:~# chown -R www-data:www-data /var/log/apache2/error.log
traffic:~# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...httpd (no pid file) not running..
traffic:~#
traffic:~# ls -l /var/run/apache2.pid
-rw-r--r-- 1 root root 5 2009-05-10 08:55 /var/run/apache2.pid
traffic:~# chmod -R 777 /var/run/apache2.pid
traffic:~# chown -R www-data:www-data /var/run/apache2.pid
traffic:~# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)... waiting .
traffic:~# more /var/run/apache2.pid
4909
traffic:~#
Selesai sudah,,,
Semoga bermanfaat yee...
-------------------------------
Jika masih belum berhasil, masih ada jurus lagi nih..
traffic:~# /etc/init.d/apache2 stop
traffic:~# ps ax |grep apache
Pasti akan muncul tuh, program apache yang lagi jalan, dari pada pusing kepala, langsung saja,, kill -9 nopid
misalkan apache berjalan pada nomor pid 99883 dan 99894
traffic:~# kill -9 99883
traffic:~# kill -9 99894
traffic:~# /etc/init.d/apache2 start
Jika masih belum bisa juga.
================================
root@Serv-radius:/home/aziz# /etc/init.d/apache2 start
* Starting web server apache2 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
root@Serv-radius:/home/aziz# lsof -i tcp:80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
radiusd 7634 root 3u IPv4 7274 TCP *:www (LISTEN)
root@Serv-radius:/home/aziz# kill -9 7634
root@Serv-radius:/home/aziz# /etc/init.d/apache2 start
* Starting web server apache2 [ OK ]
root@Serv-radius:/home/aziz#
================================
Semoga bermanfaat yee,,
Inget kalau ada masalah diatas, server jangan direstart, percuma... mending di kill aja.. hal ini juga berlaku jika squid mengalami error, wah beda pembahasan nih,, kapan-kapan lagi yee