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-29, 01:36:59

Author Topic: Website sering Error 500  (Read 4684 times)

0 Members and 1 Guest are viewing this topic.

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Website sering Error 500
« on: 2016-04-10, 15:45:08 »
setelah update ke versi terbaru kok website seisi server sering sekali error 500 ya pak?
cek web server (nginx-proxy) apache dan nginx running normal
tapi seringkali error 500

ini sysinfo saya pak
Code: [Select]
[root@ibnhaytham ~]# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016040705
   - Web: hiawatha-10.1.0-f.6.mr.el6.i686
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) i686
   - Hostname: ibnhaytham.hostmikro.com
C. Services:
   1. MySQL: MariaDB-server-10.0.24-1.el6.i686
   2. PHP:
      - Branch: php56u-cli-5.6.20-1.ius.el6.i686
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.45-1.ius.el6
        * php55m-5.5.32-1.ius.el6
        * php56m-5.6.18-1.ius.el6
        * php70m-7.0.3-1.w6
      - Used: --Use PHP Branch--
   3. Web Used: nginxproxy
     - Hiawatha: --unused--
     - Lighttpd: --uninstalled--
     - Nginx: nginx-1.9.14-1.el6.ngx.i386
     - Httpd: httpd24u-2.4.18-3.ius.el6.i686
       - PHP Type: php-fpm_event
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: nsd
     - Bind: --uninstalled--
     - DJBDns: --uninstalled--
     - NSD: nsd-4.1.9-1.mr.el6.i686
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.i386
      - spam: bogofilter
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           498        482         15         44         90        198
   -/+ buffers/cache:        193        304
   Swap:            0          0          0
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/vda1        20G  3.9G   15G  21% /


*** Process Time: 00:00:00:05.5556 (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,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Website sering Error 500
« Reply #1 on: 2016-04-10, 16:51:53 »
Kalau info cuma seperti ini ya susah diprediksi penyebabnya.

Perlu info tambahan, dari update kapan ke 2016040705, apakah ganti php versi, apakah ganti httpd/apache dan lain-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
Re: Website sering Error 500
« Reply #2 on: 2016-04-10, 17:27:00 »
Kalau info cuma seperti ini ya susah diprediksi penyebabnya.

Perlu info tambahan, dari update kapan ke 2016040705, apakah ganti php versi, apakah ganti httpd/apache dan lain-lain.

sebelumnya pake versi 2016032701 pak, baru update ke 2016040705 jumat malam
php branch tetap pakai php56u
webserver juga tetap pakai nginx dan httpd24

pada saat update, setelah jalankan 'yum update', saya jalankan 'sh /script/cleanup'

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Website sering Error 500
« Reply #3 on: 2016-04-10, 19:53:07 »
Kalau info cuma seperti ini ya susah diprediksi penyebabnya.

Perlu info tambahan, dari update kapan ke 2016040705, apakah ganti php versi, apakah ganti httpd/apache dan lain-lain.

sebelumnya pake versi 2016032701 pak, baru update ke 2016040705 jumat malam
php branch tetap pakai php56u
webserver juga tetap pakai nginx dan httpd24

pada saat update, setelah jalankan 'yum update', saya jalankan 'sh /script/cleanup'
Ini aneh saja karena relatif tidak ada perubahan configs kecuali menaikkan security untuk ssl.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Website sering Error 500
« Reply #4 on: 2016-04-11, 02:57:05 »
Ini aneh saja karena relatif tidak ada perubahan configs kecuali menaikkan security untuk ssl.

sudah saya pake 'sh /script/fixweb -y' ; 'sh /script/restart-web -y' tapi setelah beberapa jam akan error 500
malah td malam (sebelum saya but topic ini) baru 15 menit setelah di fixweb dan restart-web sudah error 500 pak
tapi posisi nginx dan httpd24 dalam kondisi 'running'

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Website sering Error 500
« Reply #5 on: 2016-04-11, 03:22:06 »
Coba periksa error log pada php/httpd/nginx di 'admin > log manager'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Website sering Error 500
« Reply #6 on: 2016-04-11, 04:50:40 »
Coba periksa error log pada php/httpd/nginx di 'admin > log manager'.

baru aja error 500 lagi pak

Nginx Error Log kosong pak

ini dari HTTP Error Log
Code: [Select]
[Mon Apr 11 09:58:16 2016] [mpm_event:notice] [pid 15511] [event.c(2886):] [AH00491: caught SIGTERM, shutting down] [ibnhaytham.hostmikro.com]
[Mon Apr 11 09:58:17 2016] [suexec:notice] [pid 19865] [mod_suexec.c(101):] [AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)] [ibnhaytham.hostmikro.com]
[Mon Apr 11 09:58:17 2016] [auth_digest:notice] [pid 19866] [mod_auth_digest.c(236):] [AH01757: generating secret for digest authentication ...] [ibnhaytham.hostmikro.com]
[Mon Apr 11 09:58:17 2016] [-:notice] [pid 19872] [fcgi_pm.c(1734):] [FastCGI: process manager initialized (pid 19872)] [ibnhaytham.hostmikro.com]
[Mon Apr 11 09:58:18 2016] [mpm_event:notice] [pid 19866] [event.c(2860):] [AH00489: Apache/2.4.18 (Red Hat) OpenSSL/1.0.1e-fips mod_fastcgi/2.4.7 mod_fcgid/2.3.9 configured -- resuming normal operations] [ibnhaytham.hostmikro.com]
[Mon Apr 11 09:58:18 2016] [core:notice] [pid 19866] [log.c(1537):] [AH00094: Command line: '/usr/sbin/httpd'] [ibnhaytham.hostmikro.com]

ini dari PHP Error
Code: [Select]
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: bcmath: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: curl: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: dom: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: gd: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: geoip: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: imap: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: intl: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: json: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: ldap: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: mbstring: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/mysqlnd.so' - /opt/php54s/usr/lib/php/modules/mysqlnd.so: undefined symbol: zend_get_hash_value in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/mysqlnd_ms.so' - /opt/php54s/usr/lib/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/mysqlnd_mysql.so' - /opt/php54s/usr/lib/php/modules/mysqlnd_mysql.so: undefined symbol: _mysqlnd_fetch_lengths in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/mysqlnd_mysqli.so' - /opt/php54s/usr/lib/php/modules/mysqlnd_mysqli.so: undefined symbol: mysqlnd_get_client_version in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/pdo_mysqlnd.so' - /opt/php54s/usr/lib/php/modules/pdo_mysqlnd.so: undefined symbol: mysqlnd_allocator in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/pdo_sqlite.so' - /opt/php54s/usr/lib/php/modules/pdo_sqlite.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/phar.so' - /opt/php54s/usr/lib/php/modules/phar.so: undefined symbol: zend_get_hash_value in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: posix: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: pspell: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: recode: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: snmp: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/soap.so' - /opt/php54s/usr/lib/php/modules/soap.so: undefined symbol: zend_unmangle_property_name in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: sqlite3: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: sysvmsg: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: sysvsem: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: sysvshm: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: tidy: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/wddx.so' - /opt/php54s/usr/lib/php/modules/wddx.so: undefined symbol: zend_unmangle_property_name in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/xmlreader.so' - /opt/php54s/usr/lib/php/modules/xmlreader.so: undefined symbol: dom_node_class_entry in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/xmlrpc.so' - /opt/php54s/usr/lib/php/modules/xmlrpc.so: undefined symbol: php_XML_GetErrorCode in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: xmlwriter: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/xsl.so' - /opt/php54s/usr/lib/php/modules/xsl.so: undefined symbol: dom_node_class_entry in Unknown on line 0
[11-Apr-2016 03:58:16 Europe/London] PHP Warning:  PHP Startup: zip: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match
 in Unknown on line 0


Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Website sering Error 500
« Reply #7 on: 2016-04-11, 04:55:27 »
keliatannya php-fpm yg bermasalah pak
saya coba restart manual satu persatu

Code: [Select]
[root@ibnhaytham ~]# service nginx restart
Stopping nginx:                                            [  OK  ]
Starting nginx:                                            [  OK  ]
[root@ibnhaytham ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[root@ibnhaytham ~]# service php-fpm status
php-fpm (pid  19819) is running...
[root@ibnhaytham ~]# service php-fpm restart
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]

setelah restart nginx ==> masih error 500
setelah restart httpd ==> masih error 500
setelah restart php-fpm ==> normal

berarti yg bermasalah di php-fpm
bukan begitu pak?
« Last Edit: 2016-04-11, 04:57:38 by Wibowo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Website sering Error 500
« Reply #8 on: 2016-04-11, 04:58:53 »
Coba pada 'php used' dipilih 'php56m' dan bukan 'php branch'. Juga, kembalikan 'php branch' ke 'php54'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Website sering Error 500
« Reply #9 on: 2016-04-11, 05:05:22 »
Coba pada 'php used' dipilih 'php56m' dan bukan 'php branch'. Juga, kembalikan 'php branch' ke 'php54'.

'php used' sudah saya ubah ke php56m pak
tapi setiap 'php brach' diubah ke 'php54_(as_5.4.45)' setelah halaman selesai di load, selalu kembali lagi ke php56u

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Website sering Error 500
« Reply #10 on: 2016-04-11, 05:26:22 »
Coba dari ssh lakukan 'sh /script/set-php-branch php54'. Jika masih gagal, lakukan 'yum replace php56u --replace-with=php54'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Website sering Error 500
« Reply #11 on: 2016-04-11, 06:06:20 »
malah error seperti ini pak

'sh /script/set-php-branch php54'
Code: [Select]
[root@ibnhaytham ~]# sh /script/set-php-branch php54

- For help, type '/script/set-php-branch --help'

- Php Branch replace
-- It's no select entry

'yum replace php56u --replace-with=php54'
Code: [Select]
[root@ibnhaytham ~]# yum replace php56u --replace-with=php54
Loaded plugins: fastestmirror, priorities, protectbase, replace
Replacing packages takes time, please be patient...
Error: Package 'php56u' is not installed.

di sysinfo 'php-branch' masih tetap php56u pak
btw fungsi php branch ini apa ya pak?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Website sering Error 500
« Reply #12 on: 2016-04-11, 10:33:07 »
Coba lakukan 'yum replace php56u-cli --replace-with=php54-cli -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
Re: Website sering Error 500
« Reply #13 on: 2016-04-11, 10:51:45 »
Coba lakukan 'yum replace php56u-cli --replace-with=php54-cli -y'.

sudah bisa di replace ke php54 pak
berarti tinggal tunggu setidaknya 24 jam ke depan apakah php-fpm nya down lagi atau tidak

 


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

Page created in 0.078 seconds with 22 queries.

web stats analysis