MRatWork Forum by Mustafa Ramadhan - <ask> bermasalah install varnish + nginx di kloxomr

Sponsor:
Server and Web Integrator
Link:
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:

MRatWork Forum | Please login or register. | 2017-11-07, 22:13:29

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- <ask> bermasalah install varnish + nginx di kloxomr

« previous next »

- Print

Pages: [1] 2 Go Down

### Author Topic: <ask> bermasalah install varnish + nginx di kloxomr (Read 5040 times)

0 Members and 1 Guest are viewing this topic.

#### irruzzz

- Junior Member
- Posts: 39
- Karma: +0/-0

##### <ask> bermasalah install varnish + nginx di kloxomr

« on: 2014-06-26, 14:11:38 »
Maaf saya newbie, tolong bantu saya dong..
saya mau install varnish + nginx
konfigurasi nginx.conf saya seperti ini
Quote

> user nginx;
> worker_processes 2;
> error_log /var/log/nginx/error.log;
> #error_log /var/log/nginx/error.log notice;
> #error_log /var/log/nginx/error.log info;
> pid /var/run/nginx.pid;
> events {
> worker_connections 1024;
> }
> http {
> include /etc/nginx/mime.types;
> default_type application/octet-stream;
> log_format main ‘$remote_addr – $remote_user [$time_local] $request ‘
> ‘”$status” $body_bytes_sent “$http_referer” ‘
> ‘”$http_user_agent” “$http_x_forwarded_for”‘;
> access_log /var/log/nginx/access.log main;
> sendfile on;
> tcp_nopush on;
> #keepalive_timeout 0;
> keepalive_timeout 65;
> gzip on;
> # Load config files from the /etc/nginx/conf.d directory
> include /etc/nginx/conf.d/*.conf;
> #
> # The default server
> #
> server {
> listen 8080;
> server_name default;
> access_log /var/log/nginx/access.log;
> # Main location
> location / {
> proxy_pass http://IP VPS KU:8081;
> proxy_redirect off;
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> client_max_body_size 10m;
> client_body_buffer_size 128k;
> proxy_connect_timeout 90;
> proxy_send_timeout 90;
> proxy_read_timeout 90;
> proxy_buffer_size 4k;
> proxy_buffers 4 32k;
> proxy_busy_buffers_size 64k;
> proxy_temp_file_write_size 64k;
> }
> }
> }

/etc/nginx/conf.d/default.conf kubuat listen 8080
etc/varnish/default.vcl
Quote

> backend default {
> .host = “IP VPS ku?;
> .port = “8080?; #port nginx

dan listen port varnish nya , VARNISH_LISTEN_PORT=80
dan semua yg di dir /home/apache/conf <VirtualHost IP VPS KU:8081> dan listen VPS KU:8081
tapi pas semua sudah direstart, 2 domainku ngebuka halaman awal nginx, gak buka public htm alamat domainku..
tolong bantu dong salahnya dimana, terima kasih sebelumnya
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #1 on: 2014-06-26, 15:09:45 »
Informasikan 'sh /script/sysinfo'.
Varnish tidak ada di Kloxo-MR 6.5.0.f tapi sudah ada pilihan di 6.5.1.b.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### irruzzz

- Junior Member
- Posts: 39
- Karma: +0/-0

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #2 on: 2014-06-26, 15:48:07 »
Quote

> A. Kloxo-MR: 6.5.0.f-2014051901
> B. OS: CentOS release 5.10 (Final) i686
> C. Apps:
> 1. MySQL: mysql55-5.5.37-1.ius.el5
> 2. PHP: php53u-5.3.28-4.ius.el5
> 3. Httpd: httpd-2.2.27-1.mr.e5
> 4. Lighttpd: --uninstalled--
> 5. Nginx: nginx-1.4.7-20.el5.art
> 6. Qmail: qmail-toaster-1.03-1.3.38.mr.el5
> - with: courier-imap-toaster-4.1.2-1.3.16.mr.el5
> 7. Dns: bind-9.3.6-20.P1.el5_8.6
> D. Php-type (for Httpd/proxy): mod_php_ruid2
> E. Memory:
> total used free shared buffers cached
> Mem: 1024 289 734 0 0 142
> -/+ buffers/cache: 146 877
> Swap: 1280 1 1278

cara upgradenya ke 6.5.1.b ada tutornya ya pak di thread ini?
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #3 on: 2014-06-26, 15:52:11 »
Silahkan lakukan:
Code: [Select]

    yum replace mratwork-release --replace-with=mratwork-testing
    yum clean all
    yum update
    sh /script/upcp

Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### irruzzz

- Junior Member
- Posts: 39
- Karma: +0/-0

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #4 on: 2014-06-26, 16:07:10 »
Quote

> A. Kloxo-MR: 6.5.0.f-2014051901
> B. OS: CentOS release 5.10 (Final) i686
> C. Apps:
> 1. MySQL: mysql55-5.5.37-1.ius.el5
> 2. PHP: php53u-5.3.28-4.ius.el5
> 3. Httpd: httpd-2.2.27-1.mr.e5
> 4. Lighttpd: --uninstalled--
> 5. Nginx: nginx-1.4.7-20.el5.art
> 6. Qmail: qmail-toaster-1.03-1.3.38.mr.el5
> - with: courier-imap-toaster-4.1.2-1.3.16.mr.el5
> 7. Dns: bind-9.3.6-20.P1.el5_8.6
> D. Php-type (for Httpd/proxy): mod_php_ruid2
> E. Memory:
> total used free shared buffers cached
> Mem: 1024 317 706 0 0 189
> -/+ buffers/cache: 127 896
> Swap: 1280 1 1278

saya sudah update kok masih versi 6.5.0.f aja ya pak?
lalu bagaimana dengan konfigurasi nginx varnish yg mesti saya benarkan pak agar domainnya gak menuju alamat nginx?
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #5 on: 2014-06-26, 17:17:58 »
Informasikan 'yum list mratwork* kloxomr'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### irruzzz

- Junior Member
- Posts: 39
- Karma: +0/-0

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #6 on: 2014-06-26, 21:27:37 »
Quote

> [root@server1 ~]# yum list mratwork* kloxomr
> Loaded plugins: fastestmirror, priorities, protectbase, replace
> Loading mirror speeds from cached hostfile
> * atomic: www6.atomicorp.com
> * base: mirror.trouble-free.net
> * epel: epel.mirror.constant.com
> * extras: mirror.ubiquityservers.com
> * mratwork-epel: epel.mirror.constant.com
> * mratwork-ius-stable: iad.mirror.rackspace.com
> * updates: centos.mirror.constant.com
> Excluding Packages from MRatWork - Extra Packages for EL 5 - arch
> Finished
> Excluding Packages from MRatWork - IUS Community Packages for EL 5 (archive) - arch
> Finished
> Excluding Packages from MRatWork - IUS Community Packages for EL 5 (stable) - arch
> Finished
> 1047 packages excluded due to repository priority protections
> 0 packages excluded due to repository protections
> Installed Packages
> kloxomr.noarch 6.5.0.f-2014051901.mr installed
> mratwork-testing.noarch 0.0.3-5 installed
> Available Packages
> kloxomr.noarch 6.5.1.b-2014062401.mr mratwork-testing-neutral-noarch
> mratwork-release.noarch 0.0.3-5 mratwork-release-neutral-noarch

Quote

> [root@server1 ~]# yum replace mratwork-release --replace-with=mratwork-testing
> fastestmirror, priorities, protectbase, replace
> Loading mirror speeds from cached hostfile
> * atomic: www6.atomicorp.com
> * base: mirrors.advancedhosters.com
> * epel: epel.mirror.constant.com
> * extras: mirrors.lga7.us.voxel.net
> * mratwork-epel: epel.mirror.constant.com
> * mratwork-ius-stable: iad.mirror.rackspace.com
> * updates: mirror.ash.fastserv.com
> Excluding Packages from MRatWork - Extra Packages for EL 5 - arch
> Finished
> Excluding Packages from MRatWork - IUS Community Packages for EL 5 (archive) - arch
> Finished
> Excluding Packages from MRatWork - IUS Community Packages for EL 5 (stable) - arch
> Finished
> 1047 packages excluded due to repository priority protections
> 0 packages excluded due to repository protections
> Replacing packages takes time, please be patient...
> Error: Package 'mratwork-release' is not installed.

« Last Edit: 2014-06-26, 21:35:40 by irruzzz »
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #7 on: 2014-06-27, 02:49:43 »
Sudah terinstall di server anda untuk mratwork-testing. Cukup jalankan 'yum update kloxomr; sh /script/upcp'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### irruzzz

- Junior Member
- Posts: 39
- Karma: +0/-0

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #8 on: 2014-06-27, 04:43:08 »
Quote

> [root@server1 ~]# sh /script/sysinfo
> A. Kloxo-MR: 6.5.1.b-2014062401
> B. OS: CentOS release 5.10 (Final) i686
> C. Apps:
> 1. MySQL: mysql55-5.5.37-1.ius.el5
> 2. PHP: php53u-5.3.28-4.ius.el5
> 3. Httpd: httpd-2.2.27-1.mr.e5
> 4. Lighttpd: --uninstalled--
> 5. Hiawatha: hiawatha-9.6-2.mr.el5
> 6. Nginx: nginx-1.4.7-20.el5.art
> 7. Cache: varnish-3.0.5-5.el5.art
> 8. Dns: bind-9.3.6-20.P1.el5_8.6
> 9. Qmail: qmail-toaster-1.03-1.3.38.mr.el5
> - with: courier-imap-toaster-4.1.2-1.3.16.mr.el5
> D. Php-type (for Httpd/proxy): mod_php_ruid2
> E. Memory:
> total used free shared buffers cached
> Mem: 1024 687 336 0 0 500
> -/+ buffers/cache: 186 837
> Swap: 1280 0 1279

yap, sudah terupdate pak. lalu bagaimana dengan konfigurasi nginx + varnishnya pak?
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #9 on: 2014-06-27, 04:44:04 »
Pergi ke 'switch programs'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### irruzzz

- Junior Member
- Posts: 39
- Karma: +0/-0

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #10 on: 2014-06-27, 05:22:15 »
saya masih bingung pak, web mesti milih nginx atau nginxproxy, saya pilih nginxproxy lalu cache nya varnish, saya coba update.. domain saya masih nongol halaman nginx
lalu saya pilih web nginx lalu cache varnish, berhasil halaman domain pertama saya terbuka, tetapi halaman domain kedua saya terbuka halaman domain pertama? salahnya dimana ya pak?
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #11 on: 2014-06-27, 05:27:50 »
Ubah php-type ke 'php-fpm_event' di 'webserver configure'.
Untuk memastikan coba jalankan 'sh /script/fixweb; sh /script/fixphp; sh /script/restart-web'
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### irruzzz

- Junior Member
- Posts: 39
- Karma: +0/-0

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #12 on: 2014-06-27, 05:41:34 »
di webserver configure gak ada php-fpm_event, pak
php used gak ada pilihan, php branch cuma ada php, php52, php53, php53u, dan php54.
tapi gak apa sih pak , aku jalankan 'sh /script/fixweb; sh /script/fixphp; sh /script/restart-web' sudah baik kok.
terima kasih ya pak
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #13 on: 2014-06-27, 05:53:02 »
Php-type hanya terlihat bila anda memilih apache atau -proxy (misalnya hiawatha-proxy). Ini karena selain apache, otomatis (atau hanya ada) php-fpm sebagai php-type.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: <ask> bermasalah install varnish + nginx di kloxomr

« Reply #14 on: 2014-06-27, 05:56:04 »
Jika website anda memiliki traffic tinggi, sebenarnya sudah cukup memilih nginx/hiawatha/nginx-proxy/hiawatha-proxy tanpa perlu varnish karena sudah ada 'microcache'.
Silahkan baca kloxo-mr-development286-5-1a29-webwebcache-servers-benchmark.html
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

- Print

Pages: [1] 2 Go Up
« previous next »

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- <ask> bermasalah install varnish + nginx di kloxomr

Top 4 Global Search Engines: Google Bing Baidu Yahoo

..:: Monetize Your Website with ylliXmedia ::.. ..:: Online Advertising that Sale Anything with ylliXmedia ::..

- Design By SMFSimple.com
- SMF 2.0.14 | SMF © 2017, Simple Machines

Page created in 0.037 seconds with 17 queries.

Mirror created by MasterkinG32.CoM