Monday, March 21, 2016

Error Pada $dom = new DOMDocument()

terjadi pada server ku karena kurang aplikasi, setelah di instal aplikasi ini maka baru bisa berjalan lancar.

#sudo yum install php-xml



Friday, March 18, 2016

ERROR PADA Warning: date

Terjadi error pada  Warning: date( )
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in /var/www

Solusinya tambah pada baris akhir dengan :
date.timezone = "Asia/Jakarta"

ERROR Notice: Undefined index: en in /var/www/html

error Notice: Undefined index: en in /var/www/html
Biasanya hanya beda versi php
hal ini di edit pada file php.ini

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED


Thursday, March 17, 2016

Use mysqlcheck to Optimize and Repair MySQL Databases on Linux

Here are three quick commands that are useful to check, optimize, and also repair your mysql databases!

1. Check Databases
    $ mysqlcheck -cA -u root -p
       (-c for check database, -A for all databases)

2. Optimize Databases

    $ mysqlcheck -oA -u root -p
       (-o for optimize)

3. Repair Corrupted Databases
    $ mysqlcheck -rA -u root -p
       (-r for repair)