Cara Mengatasi Starting Apache Fails pada VPS CentOS

Thursday, October 15, 2015

Beberapa waktu lalu saya melakukan perubahan konfigurasi pada server apache di server pribadi saya. Tapi entah kenapa saat direstart untuk melihat perubahan konfigurasinya, tiba tiba error. Bunyi error nya " could not bind to address 0.0.0.0:80 " . oke kali ini saya akan share cara memperbaiki nya.
Di tutorial ini saya menggunakan VPS CentOS dengan webserver Apache.
Ini bunyi lengkap pesan errror ketika direstart :
Starting httpd: (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]

Ini screenshoot nya :
Coba masukkan command
[root@server ~]#  fuser -k -n tcp 80

Lalu restart httpd dengan command :
[root@server ~]#  service httpd restart

Pasti bisa lagi :D
Jika masih error, silahkan komentar. Nanti saya bantu.
Sekian post kali ini semoga bermanfaat.

Artikel Terkait CentOS ,Internet ,Linux ,Server ,VPS

3 comments:

  1. thanks gan...artikel yang bermanfaat

    ReplyDelete

  2. Complete!
    [root@it ~]# fuser -k -n tcp 80
    [root@it ~]# service httpd restart
    Stopping httpd: [FAILED]
    Starting httpd: [Wed Jun 07 09:16:26 2017] [warn] module ruid2_module is already loaded, skipping
    [Wed Jun 07 09:16:27 2017] [warn] NameVirtualHost 10.80.80.82:8443 has no VirtualHosts
    [Wed Jun 07 09:16:27 2017] [warn] NameVirtualHost 10.80.80.80:8443 has no VirtualHosts
    [Wed Jun 07 09:16:27 2017] [warn] NameVirtualHost 10.80.80.81:8443 has no VirtualHosts
    [Wed Jun 07 09:16:27 2017] [warn] NameVirtualHost 10.80.80.84:8443 has no VirtualHosts
    (99)Cannot assign requested address: make_sock: could not bind to address 10.80.80.81:8080
    no listening sockets available, shutting down
    Unable to open logs

    ReplyDelete
    Replies
    1. cek di vertualhost nya coba. listen ke port berapa

      Delete