Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 23:31:27

Author Topic: [masih error] install nginx proxy selalu gagal di vps centos 6.7 32bit 512MB  (Read 7627 times)

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Apakah anda ada buat file custom.domains.conf.tpl di /opt/configs/apache/tpl atau di tempat lain?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Apakah anda ada buat file custom.domains.conf.tpl di /opt/configs/apache/tpl atau di tempat lain?.

tidak pak
ini masih fresh install
bahkan belum ada domain

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Coba tambahkan domain, biarpun hanya dummy (aka sembarang) domain.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Coba tambahkan domain, biarpun hanya dummy (aka sembarang) domain.

hasilnya tetap gak mau restart pak
tapi errornya berubah
Code: [Select]
[root@aljazari tpl]# sh /script/restart-web -y

Stopping php56m-fpm:                                       [  OK  ]
pkill to make sure stopped
Starting php56m-fpm:                                       [  OK  ]
-------------------------------------------------------------------

Stopping nginx:                                            [  OK  ]
Starting nginx:                                            [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address 127.0.0.1:30080
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'

ini yg listen di port

Code: [Select]
[root@aljazari tpl]# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 127.0.0.1:30080             0.0.0.0:*                   LISTEN      18820/fcgi-pm
tcp        0      0 127.0.0.1:7776              0.0.0.0:*                   LISTEN      18188/php
tcp        0      0 0.0.0.0:7777                0.0.0.0:*                   LISTEN      18216/kloxo-hiawath
tcp        0      0 0.0.0.0:7778                0.0.0.0:*                   LISTEN      18216/kloxo-hiawath
tcp        0      0 0.0.0.0:7779                0.0.0.0:*                   LISTEN      18188/php
tcp        0      0 127.0.0.1:30443             0.0.0.0:*                   LISTEN      18820/fcgi-pm
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      19606/nginx
tcp        0      0 10.130.200.146:53           0.0.0.0:*                   LISTEN      19213/named
tcp        0      0 10.15.0.24:53               0.0.0.0:*                   LISTEN      19213/named
tcp        0      0 188.166.185.149:53          0.0.0.0:*                   LISTEN      19213/named
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN      19213/named
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1274/sshd
tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LISTEN      19213/named
tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN      19606/nginx
tcp        0      0 :::993                      :::*                        LISTEN      19374/tcpserver
tcp        0      0 :::995                      :::*                        LISTEN      19370/tcpserver
tcp        0      0 :::3306                     :::*                        LISTEN      17899/mysqld
tcp        0      0 :::587                      :::*                        LISTEN      19380/tcpserver
tcp        0      0 :::110                      :::*                        LISTEN      19372/tcpserver
tcp        0      0 :::143                      :::*                        LISTEN      19378/tcpserver
tcp        0      0 :::80                       :::*                        LISTEN      19606/nginx
tcp        0      0 :::433                      :::*                        LISTEN      19606/nginx
tcp        0      0 :::465                      :::*                        LISTEN      19367/tcpserver
tcp        0      0 :::53                       :::*                        LISTEN      19213/named
tcp        0      0 :::22                       :::*                        LISTEN      1274/sshd
tcp        0      0 :::25                       :::*                        LISTEN      19382/tcpserver
udp        0      0 10.130.200.146:53           0.0.0.0:*                               19213/named
udp        0      0 10.15.0.24:53               0.0.0.0:*                               19213/named
udp        0      0 188.166.185.149:53          0.0.0.0:*                               19213/named
udp        0      0 127.0.0.1:53                0.0.0.0:*                               19213/named
udp        0      0 :::53                       :::*                                    19213/named
[root@aljazari tpl]#

lah, kok malah 30080 ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Di proxy (antara lain nginx-proxy), apache listen port 30080. Jadi, nginx listen 80 dan kemudian nginx komunikasi ke apache melalui port 30080.

Coba 'pkill -9 php-fpm; pkill -9 nginx; pkill nginx; sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Di proxy (antara lain nginx-proxy), apache listen port 30080. Jadi, nginx listen 80 dan kemudian nginx komunikasi ke apache melalui port 30080.

Coba 'pkill -9 php-fpm; pkill -9 nginx; pkill nginx; sh /script/restart-web -y'.

sip,sudah bisa pak
terakhir perlu
pkill -9 php-fpm; pkill -9 nginx; pkill nginx; sh /script/fixweb -y; sh /script/restart-web -y'

Offline masnggakdiajak

  • Valuable Member
  • *
  • Posts: 126
  • Karma: +0/-0
    • View Profile
Saya juga mengalami masalah yang sama persis ketika fresh install yang saya lakukan
Reboot terus lihat service ternyata ndak jalan nginxnya,
#sh /script/restart-web -y
Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

terus jalanin
#yum reinstall httpd* mod_* -y; sh /script/cleanup
Alhamdulillah muncul error
Starting httpd: (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

Terus ngikut saran mimin untuk menambahkan domain walupun hanya domain sembarangan, cek dengan perintah
#sh /script/restart-web -y
Alhamdulilllah
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
-------------------------------------------------------------------

Stopping nginx:                                            [  OK  ]
Starting nginx:                                            [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'

terus reboot server dan akhirnya normal  ;)

makasih mimin dan agan wibowo

Offline lanuma

  • Valuable Member
  • *
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Saya juga mengalami masalah yang sama persis ketika fresh install yang saya lakukan
Reboot terus lihat service ternyata ndak jalan nginxnya,
#sh /script/restart-web -y
Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

terus jalanin
#yum reinstall httpd* mod_* -y; sh /script/cleanup
Alhamdulillah muncul error
Starting httpd: (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

Terus ngikut saran mimin untuk menambahkan domain walupun hanya domain sembarangan, cek dengan perintah
#sh /script/restart-web -y
Alhamdulilllah
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
-------------------------------------------------------------------

Stopping nginx:                                            [  OK  ]
Starting nginx:                                            [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'

terus reboot server dan akhirnya normal  ;)

makasih mimin dan agan wibowo

sama kayak diatas, alhamdulillah fix dengan menambahkan domain apapun..

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.03 seconds with 19 queries.

web stats analysis