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. 2017-11-07, 21:29:58

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

0 Members and 1 Guest are viewing this topic.

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
masih kelanjutan dari thread saya sebelumnya
indonesia-usershasil-instalasi-kloxomr-random.html

kesimpulan sementara, ternyata kalo pake centos 6.7 32-bit dan ram cuma 512MB, tidak bisa pakai nginxproxy, harus pilih nginx saja atau apache saja

tapi kalau pakai centos 6.7 64-bit dan ram 1GB, tidak ada masalah pakai nginxproxy

apakah memang seperti itu adanya pak?
soalnya sudah beberapa kali saya coba, selalu seperti itu tiap install nginxproxy
kalo install di centos 6.7 32-bit dengan ram 512MB, seperti 'rebutan' antara nginx dan apache

sudah saya coba 'sh /script/fixweb -y' ; 'sh /script/restart-web' ; 'sh /script/upcp' tetap tidak ngaruh

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Infokan 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
ini pak
Code: [Select]
[root@aljazari ~]# sh /script/sysinfo
A. Kloxo-MR: 7.0.0.b-2016010404
   - Web: hiawatha-10.0.0-f.6.mr.el6.i686
   - PHP: php54s-5.4.45-2.w6 (cgi mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) i686
   - Hostname: aljazari.anakteknik.web.id
C. Services:
   1. MySQL: MariaDB-server-10.0.23-1.el6.i686
   2. PHP:
      - Branch: php56u-cli-5.6.16-1.ius.el6.i686
      - Used: --Use PHP Branch--
   3. Httpd: httpd-2.2.31-1.mr.el6.i386
      - PHP Type: php-fpm_event
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: nginx-1.9.9-1.el6.ngx.i386
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.7-1.mr.el6.i386
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.i386
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           498        419         79          0         23        248
   -/+ buffers/cache:        147        351
   Swap:            0          0          0
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/vda1        20G  2.2G   17G  12% /


*** Process Time: 00:00:00:04.4336 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Tidak ada masalah pakai nginx-proxy untuk RAM 512MB. Karena memory yang terbatas maka perlu di-adjustment:

1. Pilih 'medium' di 'apache optimize' di 'webserver configure'
2. Atur 'max_connections=50' di /etc/my.cnf.d/server.cnf dibagian bawah '[mysqld]'
3. Pastikan pakai myisam atau aria sebagai storage-engine untuk MySQL
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
yg jadi masalah bukan ram-nya pak
tapi konflik antara nginx dan apache

Code: [Select]
[root@aljazari script]# sh /script/restart-web

*** Process for PHP-FPM service ***
  - Process: reload
Reloading php56m-fpm:                                      [  OK  ]
-------------------------------------------------------------------

*** Process for NGINX service ***
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)
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)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
                                                           [FAILED]
  - Process: reload
Reloading nginx:                                           [FAILED]
-------------------------------------------------------------------

*** Process for HTTPD service ***
  - No need started
  - Process with 'httpd': restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'
saya sudah coba
- sh /script/fixweb -y ==> gagal
- sh /script/upcp ==> gagal
- yum reinstall httpd* nginx* ==> gagal
- reboot berkali2 ==> gagal

masih muncul error yang sama
dan kalo cek header lewat curl, yg terdeteksi malah apache-nya, bukan nginx
berarti kan 'tugas' nginx sebagai proxy tidak jalan

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Coba reboot.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
sudah berkali-kali pak
tetap sama saja
sudah coba pilih 'None' untuk 'Web' di 'Switch Program' kemudian kembali ke 'nginxproxy' tetap sama saja

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Coba infokan 'yum list installed httpd* nginx* mod_*'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
ini pak
Code: [Select]
[root@aljazari ~]# yum list installed httpd* nginx* mod_*
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * base: mirrors.coreix.net
 * extras: mirrors.coreix.net
 * mratwork-epel: mirror.smartmedia.net.id
 * mratwork-ius-stable: hkg.mirror.rackspace.com
 * mratwork-webtatic: sp.repo.webtatic.com
 * updates: mirrors.coreix.net
0 packages excluded due to repository protections
Installed Packages
httpd.i386                                                          2.2.31-1.mr.el6                                                      @mratwork-release-version-arch
httpd-tools.i386                                                    2.2.31-1.mr.el6                                                      @mratwork-release-version-arch
mod_define.i386                                                     2.2-3.mr.el6                                                         @mratwork-release-version-arch
mod_fastcgi.i386                                                    2.4.7-4.mr.el6                                                       @mratwork-release-version-arch
mod_fcgid.i386                                                      2.3.9-1.mr.el6                                                       @mratwork-release-version-arch
mod_perl.i686                                                       2.0.4-11.el6_5                                                       @base
mod_rpaf.i686                                                       0.6-4.mr.el6                                                         @mratwork-release-version-arch
mod_ruid2.i386                                                      0.9.8-3.mr.el6                                                       @mratwork-release-version-arch
mod_ssl.i386                                                        1:2.2.31-1.mr.el6                                                    @mratwork-release-version-arch
mod_suphp.i386                                                      0.7.2-3.mr.el6                                                       @mratwork-release-version-arch
nginx.i386                                                          1.9.9-1.el6.ngx                                                      @mratwork-nginx
[root@aljazari ~]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Real restart adalah 'sh /script/restart-web -y' (ada tambahan '-y'). Jika tanpa '-y' maka cenderung reload.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
keliatannya ini biang keroknya pak
setelah install nginxproxy, httpd udah pergi dari port 80 dan 443 interface ipv4
tapi sayangnya, httpd masih  'nguping' di port 80 dan 443 interface ipv6

mungkin perlu modifikasi di template config apache pak
supaya setelah install nginxproxy, httpd benar2 tidak listen di port 80 dan 443 baik interface ipv4 maupun ipv6

Code: [Select]
[root@aljazari ~]# 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:7776              0.0.0.0:*                   LISTEN      1453/php
tcp        0      0 0.0.0.0:7777                0.0.0.0:*                   LISTEN      1464/kloxo-hiawatha
tcp        0      0 0.0.0.0:7778                0.0.0.0:*                   LISTEN      1464/kloxo-hiawatha
tcp        0      0 0.0.0.0:7779                0.0.0.0:*                   LISTEN      1453/php
tcp        0      0 10.130.200.146:53           0.0.0.0:*                   LISTEN      1097/named
tcp        0      0 10.15.0.24:53               0.0.0.0:*                   LISTEN      1097/named
tcp        0      0 188.166.185.149:53          0.0.0.0:*                   LISTEN      1097/named
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN      1097/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      1097/named
tcp        0      0 :::993                      :::*                        LISTEN      1202/tcpserver
tcp        0      0 :::995                      :::*                        LISTEN      1203/tcpserver
tcp        0      0 :::3306                     :::*                        LISTEN      1379/mysqld
tcp        0      0 :::587                      :::*                        LISTEN      1201/tcpserver
tcp        0      0 :::110                      :::*                        LISTEN      1205/tcpserver
tcp        0      0 :::143                      :::*                        LISTEN      1199/tcpserver
tcp        0      0 :::80                       :::*                        LISTEN      1683/httpd
tcp        0      0 :::465                      :::*                        LISTEN      1213/tcpserver
tcp        0      0 :::53                       :::*                        LISTEN      1097/named
tcp        0      0 :::22                       :::*                        LISTEN      1274/sshd
tcp        0      0 :::25                       :::*                        LISTEN      1200/tcpserver
tcp        0      0 :::443                      :::*                        LISTEN      1683/httpd
udp        0      0 10.130.200.146:53           0.0.0.0:*                               1097/named
udp        0      0 10.15.0.24:53               0.0.0.0:*                               1097/named
udp        0      0 188.166.185.149:53          0.0.0.0:*                               1097/named
udp        0      0 127.0.0.1:53                0.0.0.0:*                               1097/named
udp        0      0 :::53                       :::*                                    1097/named
tcp        0      0 :::80                       :::*                        LISTEN      1683/httpd
tcp        0      0 :::443                     :::*                       LISTEN      1683/httpd

makanya nginx gak bisa jalan

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Coba 'pkill -9 nginx; pkill -9 httpd; 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
Coba 'pkill -9 nginx; pkill -9 httpd; sh /script/restart-web -y'.

sekarang jadi apache yg ngambek pak
karena tetap berusaha listen di port 80 dan 443 interface ipv6
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 [::]: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]
-------------------------------------------------------------------

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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Coba 'yum reinstall httpd* mod_* -y; sh /script/cleanup'.
..:: 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 'yum reinstall httpd* mod_* -y; sh /script/cleanup'.

masih sama pak
apache tetap berusaha listen ke port 80 interface ipv6 - [::]:80
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 [::]: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]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'
[root@aljazari tpl]#

adakah file di /opt/configs/apache/yang bisa diedit untuk mengatasi masalah ini pak?

 


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

Page created in 0.041 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM