MRatWork Forum by Mustafa Ramadhan - Situs sering kena Error 500 - Internal Server Error

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, 17:28:06

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- Situs sering kena Error 500 - Internal Server Error

« previous next »

- Print

Pages: [1] Go Down

### Author Topic: Situs sering kena Error 500 - Internal Server Error (Read 845 times)

0 Members and 1 Guest are viewing this topic.

#### flameblue59

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

##### Situs sering kena Error 500 - Internal Server Error

« on: 2017-03-18, 07:29:22 »
Siang, saya mau menanyakan situs saya yang sering kena Error 500. Berikut sh /script/sysinfo
Code: [Select]

    A. Control Panel:
       - Kloxo-MR: 7.0.0.c-2017031601
       - Web: hiawatha-10.5.0-f.2.mr.el6.x86_64
       - PHP: php56s-5.6.30-1.ius.centos6 (fpm mode)
    B. Plateform:
       - OS: CentOS release 6.8 (Final) x86_64
       - Hostname: server.1ori.com
    C. Services:
       1. MySQL: MariaDB-server-10.0.30-1.el6.x86_64
       2. PHP:
          - Installed:
            - Branch: php54-cli-5.4.45-1.ius.centos6.x86_64
            - Multiple:
              * php52m-5.2.17-102.mr.el6
              * php53m-5.3.29-1.ius.centos6
              * php54m-5.4.45-1.ius.centos6
              * php55m-5.5.38-1.ius.centos6
              * php56m-5.6.30-1.ius.centos6
              * php70m-7.0.16-1.ius.centos6
              * php71m-7.1.2-1.ius.centos6
          - Used: php54m-fpm
          - Multiple: disable
       3. Web Used: nginxproxy
         - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.x86_64
         - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
         - Nginx: nginx-1.11.10-1.el6.ngx.x86_64
         - Apache: httpd24u-2.4.25-3.ius.centos6.x86_64
           - PHP Type: suphp_event
           - Secondary PHP: on
       4. WebCache: none
         - ATS: --uninstalled--
         - Squid: --uninstalled--
         - Varnish: --uninstalled--
       5. Dns: bind
         - Bind: bind-9.9.7-1.mr.el6.x86_64
         - DJBDns: --uninstalled--
         - NSD: --uninstalled--
         - PowerDNS: --uninstalled--
         - Yadifa: --uninstalled--
       6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
          - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
          - smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
          - spam: bogofilter-1.2.4-1.el6.x86_64
       7. Stats: awstats
    D. Memory:
                 total       used       free     shared    buffers     cached
    Mem:       8388607       3913    8384694        379          0       2823
    -/+ buffers/cache:       1089    8387518
    Swap:            0          0          0
    E. Disk Space:
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/simfs       20G  3.3G   17G  17% /

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

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

Kira-kira kenapa ya? udah coba
sh /script/fixweb
sh /script/restart-web -y
tapi hasilnya malah gini.
Code: [Select]

    Stopping php54m-fpm (PHP Used):                            [  OK  ]
    Starting php54m-fpm (PHP Used):                            [  OK  ]
    -------------------------------------------------------------------

    Stopping php52m-fpm (Multiple Php):                        [  OK  ]
    Starting php52m-fpm (Multiple Php):                        [  OK  ]
    -------------------------------------------------------------------

    Stopping php53m-fpm (Multiple Php):                        [  OK  ]
    Starting php53m-fpm (Multiple Php):                        [  OK  ]
    -------------------------------------------------------------------

    Stopping php54m-fpm (Multiple Php):                        [  OK  ]
    Starting php54m-fpm (Multiple Php):                        [  OK  ]
    -------------------------------------------------------------------

    Stopping php55m-fpm (Multiple Php):                        [  OK  ]
    Starting php55m-fpm (Multiple Php):                        [  OK  ]
    -------------------------------------------------------------------

    Stopping php56m-fpm (Multiple Php):                        [  OK  ]
    Starting php56m-fpm (Multiple Php):                        [  OK  ]
    -------------------------------------------------------------------

    Stopping php70m-fpm (Multiple Php):                        [  OK  ]
    Starting php70m-fpm (Multiple Php):                        [  OK  ]
    -------------------------------------------------------------------

    Stopping php71m-fpm (Multiple Php):                        [  OK  ]
    Starting php71m-fpm (Multiple Php):                        [  OK  ]
    -------------------------------------------------------------------

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

    Stopping httpd:                                            [  OK  ]
    Starting httpd: AH00497: WARNING: ServerLimit of 119830 exceeds compile-time limit of 20000 servers, decreasing to 20000.
    AH00515: WARNING: MaxRequestWorkers of 2995750 would require 119830 servers and would exceed ServerLimit of 20000, decreasing to 500000. To increase, please see the ServerLimit directive.
                                                               [  OK  ]
    -------------------------------------------------------------------

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

Mohon bantuannya para sesepuh. Thank you.
Logged

#### MRatWork

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #1 on: 2017-03-18, 08:11:33 »
Pilih 'high' untuk 'apache optimize' pada 'webserver configure'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### flameblue59

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #2 on: 2017-03-18, 08:22:35 »
sudah pak MR, saat ini sudah bisa jalan situsnya tapi saat coba restart httpd malah muncul error seperti ini
Code: [Select]

    [root@server ~]# service httpd restart
    Stopping httpd:                                            [  OK  ]
    Starting httpd: AH00497: WARNING: ServerLimit of 119830 exceeds compile-time limit of 20000 servers, decreasing to 20000.
    AH00515: WARNING: MaxRequestWorkers of 2995750 would require 119830 servers and would exceed ServerLimit of 20000, decreasing to 500000. To increase, please see the ServerLimit directive.
                                                               [  OK  ]

Logged

#### MRatWork

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #3 on: 2017-03-18, 09:09:33 »
Infokan 'cat /etc/httpd/conf.d/~lxcenter.conf'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### flameblue59

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #4 on: 2017-03-18, 18:20:17 »
Ini pak MR
Code: [Select]

    [root@server ~]# cat /etc/httpd/conf.d/~lxcenter.conf

    Timeout 150
    KeepAlive Off
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15

    <IfModule prefork.c>
        StartServers 2
        MinSpareServers 69901
        MaxSpareServers 139802
        ServerLimit 139802
        <IfVersion >= 2.4>
            MaxRequestWorkers 139802
            MaxConnectionsPerChild 4000
        </IfVersion>
        <IfVersion < 2.4>
            MaxClients 139802
            MaxRequestsPerChild 4000
        </IfVersion>
        MaxMemFree 2
        SendBufferSize 65536
        ReceiveBufferSize 65536
    </IfModule>

    <IfModule itk.c>
        StartServers 2
        MinSpareServers 69901
        MaxSpareServers 139802
        ServerLimit 139802
        <IfVersion >= 2.4>
            MaxRequestWorkers 139802
            MaxConnectionsPerChild 4000
        </IfVersion>
        <IfVersion < 2.4>
            MaxClients 139802
            MaxRequestsPerChild 4000
        </IfVersion>
        MaxMemFree 2
        SendBufferSize 65536
        ReceiveBufferSize 65536
    </IfModule>

    <IfModule worker.c>
        StartServers 2
        MinSpareThreads 59915
        MaxSpareThreads 119830
        ThreadsPerChild 25
        ServerLimit 119830
        <IfVersion >= 2.4>
            MaxRequestWorkers 2995750
            MaxConnectionsPerChild 0
        </IfVersion>
        <IfVersion < 2.4>
            MaxClients 2995750
            MaxRequestsPerChild 0
        </IfVersion>

        SendBufferSize 65536
        ReceiveBufferSize 65536
    </IfModule>

    <IfModule event.c>
        StartServers 2
        MinSpareThreads 59915
        MaxSpareThreads 119830
        ThreadsPerChild 25
        ServerLimit 119830
        MaxRequestsPerChild 0
        <IfVersion >= 2.4>
            MaxRequestWorkers 2995750
            MaxConnectionsPerChild 0
        </IfVersion>
        <IfVersion < 2.4>
            MaxClients 2995750
            MaxRequestsPerChild 0
        </IfVersion>

        SendBufferSize 65536
        ReceiveBufferSize 65536
    </IfModule>

    Include /opt/configs/apache/conf/defaults/*.conf
    Include /opt/configs/apache/conf/domains/*.conf

    ### selected: high ###

    [root@server ~]#

Logged

#### MRatWork

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #5 on: 2017-03-18, 19:46:57 »
Memangnya RAM anda berapa?.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### flameblue59

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #6 on: 2017-03-19, 15:25:50 »
RAM saya 2 GB pak.
Logged

#### MRatWork

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #7 on: 2017-03-19, 15:58:11 »
Dari sysinfo, didapat nilai '8388607' (dalam MB). Ini artinya RAM anda terdeteksi sebagai 8TB. Wow.
Laporkan masalah ini ke provider anda berdasarkan perintah 'free -m'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### flameblue59

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #8 on: 2017-03-19, 16:18:11 »
Quote from: MRatWork on 2017-03-19, 15:58:11

> Dari sysinfo, didapat nilai '8388607' (dalam MB). Ini artinya RAM anda terdeteksi sebagai 8TB. Wow.
> Laporkan masalah ini ke provider anda berdasarkan perintah 'free -m'.

sudah saya report ke solusvm pak, kebetulan saya yang pegang dedi dan saya bagi ke beberapa vps.
Logged

#### flameblue59

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #9 on: 2017-03-19, 16:41:37 »
pak MR, kenapa RAM saya terpakai sampai penuh ya?
[root@server ~]# free -m
total used free shared buffers cached
Mem: 3000 3000 0 51 0 2701
-/+ buffers/cache: 298 2701
Swap: 0 0 0
padahal, situs saya no traffic masih dalam pengembangan.
Logged

#### MRatWork

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #10 on: 2017-03-19, 16:56:20 »
Real memory terpakai adalah '298'. Jadi penuh karena cached. Gejala begini biasanya karena tidak ada swap. Buat swap sekitar 1/4 dari RAM.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### flameblue59

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #11 on: 2017-03-19, 17:13:01 »
Quote from: MRatWork on 2017-03-19, 16:56:20

> Real memory terpakai adalah '298'. Jadi penuh karena cached. Gejala begini biasanya karena tidak ada swap. Buat swap sekitar 1/4 dari RAM.

Padahal saya sudah set swap memory di solusvm, kenapa di ssh malah kebaca dibagian buffers/cache ya?
total used free shared buffers cached
Mem: 3000 2825 174 50 0 2467
-/+ buffers/cache: 358 2641
Swap: 0 0 0
Logged

#### MRatWork

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #12 on: 2017-03-19, 17:39:33 »
Wah itu bukan urusan Kloxo-MR. Diskusikan saja dengan pihak SolusVM.
Kalau saya, mending pakai Virtualizor daripada SolusVM.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### flameblue59

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

##### Re: Situs sering kena Error 500 - Internal Server Error

« Reply #13 on: 2017-03-19, 17:53:30 »
Quote from: MRatWork on 2017-03-19, 17:39:33

> Wah itu bukan urusan Kloxo-MR. Diskusikan saja dengan pihak SolusVM.
> Kalau saya, mending pakai Virtualizor daripada SolusVM.

iya pak, saya sedang diskusikan nih.
Logged

- Print

Pages: [1] Go Up
« previous next »

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- Situs sering kena Error 500 - Internal Server Error

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

..:: Monetize your Website or Blog with BidVertiser ::.. ..:: Sell your ad space with BidVertiser ::..

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

Page created in 0.039 seconds with 18 queries.

Mirror created by MasterkinG32.CoM