error_button

Kalau web anda menampilkan halaman blank padahal web anda ada isinya, artinya ada error yang terjadi pada web anda (coding, konfigurasi, atau file tidak ada). Hal ini terjadi karena server kami mematikan fitur display_errors.  Untuk menampilkan error message anda bisa ikuti langkah berikut ini:

web hosting indonesiaWeb Hosting Indonesia
PT. Dapur Hosting menyediakan layanan web hosting Indonesia murah dengan cPanel mendukung PHP, MySql, CMS Joomla dan WordPress.

  1. Buat file php.ini di komputer lokal
  2. Gunakan editor seperti notepad untuk mengisi file php.ini dengan tulisan berikut:

    ; - display_errors = Off [Security]
    ; With this directive set to off, errors that occur during the execution of
    ; scripts will no longer be displayed as a part of the script output, and thus,
    ; will no longer be exposed to remote users. With some errors, the error message
    ; content may expose information about your script, web server, or database
    ; server that may be exploitable for hacking. Production sites should have this
    ; directive set to off.

    ; Print out errors (as a part of the output). For production web sites,
    ; you're strongly encouraged to turn this feature off, and use error logging
    ; instead (see below). Keeping display_errors enabled on a production web site
    ; may reveal security information to end users, such as file paths on your Web
    ; server, your database schema or other information.
    display_errors = On

  3. Save dan upload ke direktori public_html dan direktori yang membutuhkan.
  4. Buka web anda dan lihat error yang muncul kemudian perbaiki.

Jika error telah diperbaiki dan web anda telah tampil kembali, silahkan hapus php.ini atau ganti display_errors = On menjadi display_errors =Off

; – display_errors = Off [Security]
; With this directive set to off, errors that occur during the execution of
; scripts will no longer be displayed as a part of the script output, and thus,
; will no longer be exposed to remote users. With some errors, the error message
; content may expose information about your script, web server, or database
; server that may be exploitable for hacking. Production sites should have this
; directive set to off.

; Print out errors (as a part of the output). For production web sites,
; you’re strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

Leave a Reply

Your email address will not be published. Required fields are marked *

Post Navigation