MRatWork Forum by Mustafa Ramadhan - error di ip

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, 19:01:19

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- error di ip

« previous next »

- Print

Pages: [1] 2 3 Go Down

### Author Topic: error di ip (Read 7387 times)

0 Members and 1 Guest are viewing this topic.

#### prandah

- Senior Member
- Posts: 343
- Karma: +0/-0

##### error di ip

« on: 2013-08-09, 12:53:21 »
gk tau judulnya apa yang pas tapi yah begitulah
server saya memakai 2 ip
192.254.73.242
192.254.74.18
yang buat saya bingung, kenapa di ip 192.254.74.18
tampilannya :
Code: [Select]

    The page you are looking for is temporarily unavailable.
    Please try again later.

sedangkan di ip 192.254.73.242 normal
ada nasehat ?
fyi : itu ip asli ya biar bisa di test
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
Main Main Kesini

#### prandah

- Senior Member
- Posts: 343
- Karma: +0/-0

##### Re: error di ip

« Reply #1 on: 2013-08-09, 18:36:33 »
solved :
caranya menreplace program dan webserver -,-
pertama pakai nginxproxy ubah langsung ke lighty terus ke nginxproxy lagi -,-
setelah itu di webserver uncheck lxphp dan dari php-fpm ke mod_ruid lalu kembalikan lagi ke semula -,-
hanya sesimple itu lah :lol:
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
Main Main Kesini

#### MRatWork

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

##### Re: error di ip

« Reply #2 on: 2013-08-09, 19:12:58 »
Using 'old trick again'!.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### prandah

- Senior Member
- Posts: 343
- Karma: +0/-0

##### Re: error di ip

« Reply #3 on: 2013-08-09, 19:31:44 »
tapi radak aneh
ketika server high cpu
kenapa ada beberapa client yang harus mengalami internal server error
nah ketika dijalankan restart-all
makan akan muncul ini
Code: [Select]

    [root@pegasus ~]# sh /script/restart-all
    Stopping named: .                                          [  OK  ]
    Starting named:                                            [  OK  ]
    Stopping httpd:                                            [  OK  ]
    Starting httpd: httpd.event: Could not reliably determine the server's fully qualified domain name, using pegasus.bowo.name for ServerName
                                                               [  OK  ]
    Stopping nginx:.                                           [  OK  ]
    Starting nginx:                                            [  OK  ]
    Stopping php-fpm:                                          [FAILED]
    Starting php-fpm: [09-Aug-2013 13:30:38] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/apache.sock
    [09-Aug-2013 13:30:38] ERROR: FPM initialization failed
                                                               [FAILED]
    Restarting qmail:
    * Stopping qmail-smtpd.
    * Sending qmail-send SIGTERM and restarting.
    * Restarting qmail-smtpd.
    Stopping xinetd:                                           [  OK  ]
    Starting xinetd:                                           [  OK  ]
    Stopping mysqld:                                           [  OK  ]
    Starting mysqld:                                           [  OK  ]
    Stopping kloxo-phpcgi:                                     [  OK  ]
    Starting kloxo-phpcgi:                                     [  OK  ]
    Stopping kloxo-hiawatha:                                   [  OK  ]
    Starting kloxo-hiawatha:                                   [  OK  ]
    Stopping Varnish Cache:                                    [  OK  ]
    Starting Varnish Cache:                                    [  OK  ]
    [root@pegasus ~]#

« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
Main Main Kesini

#### nusapenida

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

##### Error di php-fpm

« Reply #4 on: 2013-08-09, 19:55:48 »
Selamat Hari Raya Idul Fitri
mohon maaf lahir bathin.
-------------
hi,
saya baru saja update ke versi kloxo-mr terbaru 2013080701
proses update berjalan lancar2 saja,
sampai ke sh /script/restart-all (2x) semua dinyatakan ok.
tapi kadang2 "500 Internal server error" masih muncul pada beberapa kasus script wordpress php.
setelah saya check di error log, ternyata ada dinyatakan error pada :
Code: [Select]

    FastCGI: server "/home/admin/username/domain.com.0fake" stderr:  PHP message: WordPress database error ...

saya coba ganti php type ke: suPHP event, dan ternyata tidak terjadi error lagi!
Code: [Select]

    nginxproxy
    php53u
    suphp_event

bagaimana cara memperbaikinya agar bisa kembalikan lagi ke php-fpm_event?
terima kasih,
wasalam
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged

#### prandah

- Senior Member
- Posts: 343
- Karma: +0/-0

##### Re: error di ip

« Reply #5 on: 2013-08-09, 20:05:25 »
hahahaha senaseb yak =))
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
Main Main Kesini

#### MRatWork

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

##### Re: error di ip

« Reply #6 on: 2013-08-09, 20:20:23 »
Tanda 'FastCGI: server "/home/admin/username/domain.com.0fake" stderr:' artinya php-fpm anda masih pakai ip-port dan seharusnya sudah ganti ke socket. Ini anda ada pakai file custom di apache dan atau php-fpm. File custom ini harus anda sesuaikan dengan file originalnya.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### prandah

- Senior Member
- Posts: 343
- Karma: +0/-0

##### Re: error di ip

« Reply #7 on: 2013-08-09, 20:55:20 »
kalo saya ini yang saya rubah hanya
php-fpm
Code: [Select]

        $startservers = '6';
        $minspareservers = '4';
        $maxspareservers = '6';
        $maxchildren = '8';

Code: [Select]

    [root@pegasus tpl]# cat custom.php53-fpm-pool.conf.tpl
    <?php
        $userinfo = posix_getpwnam($user);

        if ($user === 'apache') {
            // MR -- for future purpose, apache user have uid 50000
            $fpmport = 50000;
        } else {
            $userinfo = posix_getpwnam($user);
            $fpmport = (50000 + $userinfo['uid']);
        }

        if ($user == 'apache') {
            $pool = 'default';
        } else {
            $pool = $user;
        }

        $startservers = '6';
        $minspareservers = '4';
        $maxspareservers = '6';
        $maxchildren = '8';
    ?>
    [<?php echo $pool; ?>]
    #listen = 127.0.0.1:<?php echo $fpmport; ?>

    listen = /home/php-fpm/sock/<?php echo $user; ?>.sock

    listen.backlog = -1
    listen.allowed_clients = 127.0.0.1
    user = <?php echo $user; ?>

    group = <?php echo $user; ?>

    pm = dynamic
    pm.max_children = <?php echo $maxchildren; ?>

    pm.start_servers = <?php echo $startservers; ?>

    pm.min_spare_servers = <?php echo $minspareservers; ?>

    pm.max_spare_servers = <?php echo $maxspareservers; ?>

    pm.max_requests = 1000
    ;pm.status_path = /status
    ;ping.path = /ping
    ;ping.response = pong
    request_terminate_timeout = 120s
    request_slowlog_timeout = 30s
    slowlog = /var/log/php-fpm/slow.log
    rlimit_files = 1024
    rlimit_core = 0
    ;chroot =
    ;chdir = /var/www
    catch_workers_output = yes
    security.limit_extensions = .php .php3 .php4 .php5

    env[HOSTNAME] = $HOSTNAME
    env[PATH] = /usr/local/bin:/usr/bin:/bin
    env[TMP] = /tmp
    env[TMPDIR] = /tmp
    env[TEMP] = /tmp

    ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f webmaster@domain.com
    ;php_flag[display_errors] = off
    php_admin_value[error_log] = /var/log/php-fpm/error.log
    php_admin_value[session.save_path] = /var/lib/php/session
    php_admin_flag[log_errors] = on
    ;php_admin_value[memory_limit] = 64M
    [root@pegasus tpl]#

nginx :
yang saya rubah hanya port saja
soale saya pakek varnish di depan nginx
jadi varnish - nginx - apache
ada solusi laen ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
Main Main Kesini

#### MRatWork

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

##### Re: error di ip

« Reply #8 on: 2013-08-09, 21:57:11 »
Tunjukkan content dari '/home/apache/conf/defaults/cp.conf'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### prandah

- Senior Member
- Posts: 343
- Karma: +0/-0

##### Re: error di ip

« Reply #9 on: 2013-08-09, 22:07:39 »
Code: [Select]

    [root@pegasus tpl]# cat /home/apache/conf/defaults/cp.conf
    ### begin - web of 'cp.*' - do not remove/modify this line

    ### 'cp' config
    <VirtualHost *:30080>

        ServerName cp
        ServerAlias cp.*

        DocumentRoot "/home/kloxo/httpd/cp/"

        DirectoryIndex index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl

        <IfModule suexec.c>
            SuexecUserGroup apache apache
        </IfModule>

        <IfModule mod_suphp.c>
            SuPhp_UserGroup apache apache
        </IfModule>

        <IfModule mod_ruid2.c>
            RMode config
            RUidGid apache apache
            RMinUidGid apache apache
        </IfModule>

        <IfModule itk.c>
            AssignUserId apache apache
        </IfModule>

        <IfModule mod_fastcgi.c>
            Alias /cp.0fake "/home/kloxo/httpd/cp/cp.0fake"
            #FastCGIExternalServer "/home/kloxo/httpd/cp/cp.0fake" -host 127.0.0.1:50000
            FastCGIExternalServer "/home/kloxo/httpd/cp/cp.0fake" -socket /home/php-fpm/sock/apache.sock
            AddType application/x-httpd-fastphp .php
            Action application/x-httpd-fastphp /cp.0fake

            <Files "cp.0fake">
                RewriteCond %{REQUEST_URI} !cp.0fake
            </Files>
        </IfModule>

        <IfModule mod_fcgid.c>
            <Directory "/home/kloxo/httpd/cp/">
                Options +ExecCGI
                AllowOverride All
                AddHandler fcgid-script .php
                FCGIWrapper /home/httpd/php5.fcgi .php
                <IfVersion < 2.4>
                    Order allow,deny
                    Allow from all
                </IfVersion>
                <IfVersion >= 2.4>
                    Require all granted
                </IfVersion>
            </Directory>
        </IfModule>

        <IfModule mod_proxy_fcgi.c>
            ProxyPass / fcgi://127.0.0.1:50000/
            ProxyPassReverse / fcgi://127.0.0.1:50000/
        </IfModule>

        <Location />
            allow from all
            Options +Indexes +FollowSymlinks
        </Location>

    </VirtualHost>

    ### 'cp' config
    <VirtualHost *:30443>

        ServerName cp
        ServerAlias cp.*

        DocumentRoot "/home/kloxo/httpd/cp/"

        DirectoryIndex index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl

        <IfModule mod_ssl.c>
            SSLEngine On
            SSLCertificateFile /home/kloxo/httpd/ssl/eth0_0___localhost.crt
            SSLCertificateKeyFile /home/kloxo/httpd/ssl/eth0_0___localhost.key
            SSLCACertificatefile /home/kloxo/httpd/ssl/eth0_0___localhost.ca
        </IfModule>

        <IfModule suexec.c>
            SuexecUserGroup apache apache
        </IfModule>

        <IfModule mod_suphp.c>
            SuPhp_UserGroup apache apache
        </IfModule>

        <IfModule mod_ruid2.c>
            RMode config
            RUidGid apache apache
            RMinUidGid apache apache
        </IfModule>

        <IfModule itk.c>
            AssignUserId apache apache
        </IfModule>

        <IfModule mod_fastcgi.c>
            Alias /cp.1fake "/home/kloxo/httpd/cp/cp.1fake"
            #FastCGIExternalServer "/home/kloxo/httpd/cp/cp.1fake" -host 127.0.0.1:50000
            FastCGIExternalServer "/home/kloxo/httpd/cp/cp.1fake" -socket /home/php-fpm/sock/apache.sock
            AddType application/x-httpd-fastphp .php
            Action application/x-httpd-fastphp /cp.1fake

            <Files "cp.1fake">
                RewriteCond %{REQUEST_URI} !cp.1fake
            </Files>
        </IfModule>

        <IfModule mod_fcgid.c>
            <Directory "/home/kloxo/httpd/cp/">
                Options +ExecCGI
                AllowOverride All
                AddHandler fcgid-script .php
                FCGIWrapper /home/httpd/php5.fcgi .php
                <IfVersion < 2.4>
                    Order allow,deny
                    Allow from all
                </IfVersion>
                <IfVersion >= 2.4>
                    Require all granted
                </IfVersion>
            </Directory>
        </IfModule>

        <IfModule mod_proxy_fcgi.c>
            ProxyPass / fcgi://127.0.0.1:50000/
            ProxyPassReverse / fcgi://127.0.0.1:50000/
        </IfModule>

        <Location />
            allow from all
            Options +Indexes +FollowSymlinks
        </Location>

    </VirtualHost>

    ### end - web of 'cp.*' - do not remove/modify this line
    [root@pegasus tpl]#

« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
Main Main Kesini

#### MRatWork

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

##### Re: error di ip

« Reply #10 on: 2013-08-09, 22:18:35 »
Kalau Kloxo-MR sebelumnya pakai 'FastCGIExternalServer "/home/kloxo/httpd/cp/cp.1fake" -host 127.0.0.1:50000' (ip-port based untuk php-fpm) tapi yang baru pakai 'FastCGIExternalServer "/home/kloxo/httpd/cp/cp.1fake" -socket /home/php-fpm/sock/apache.sock' (socket based).
« Last Edit: 1970-01-01, 01:00:00 by Guest »
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: error di ip

« Reply #11 on: 2013-08-09, 22:24:18 »
Terus, apa untungkannya pakai socket daripada ip-port untuk php-fpm?. Socket lebih cepat dan memungkinkan dengan lebih mudah implementasi 'multiple php' (php 52, 53 dan 54 ada bersama-sama) dimana setiap website bisa pilih php mana yang mau dipakai (kesemua php ini berjalan dalam 'lingkungan' php-fpm; sekarang ini hanya ada php primary 53/54 dan secondari php52 dimana secondary berjalan dalam 'lingkungan' suphp).
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### prandah

- Senior Member
- Posts: 343
- Karma: +0/-0

##### Re: error di ip

« Reply #12 on: 2013-08-09, 22:52:26 »
owh jadi client bisa memilih versi php nya masih masing di webserver config ya?
btw masalah saya kekny Udah resolve deh, udah gak ada client yang demo saya lagi soale. tapi mungkin mereka tidur hehehe
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
Main Main Kesini

#### prandah

- Senior Member
- Posts: 343
- Karma: +0/-0

##### Re: error di ip

« Reply #13 on: 2013-08-09, 22:55:40 »
btw untuk webmail sendiri kok gak bisa ya
http://webmail.ditusuk.net
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
Main Main Kesini

#### MRatWork

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

##### Re: error di ip

« Reply #14 on: 2013-08-09, 23:03:40 »
Quote from: "goblog"

> btw untuk webmail sendiri kok gak bisa ya
> http://webmail.ditusuk.net

Apa semua domain mengalami 'nasib' yang sama?.
Untuk php-fpm sebenarnya yang berubah cuma ganti ip-port ke socket sedangkan aspek lain cenderung sama.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

- Print

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

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- error di ip

Top 10 Social Networking: Facebook Twitter LinkedIn Pinterest Google Plus Tumblr Instagram VK Flickr Vine

..:: 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.04 seconds with 17 queries.

Mirror created by MasterkinG32.CoM