Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla mollis aliquam eros, malesuada mollis sem. Etiam velit tellus, tristique elementum tincidunt mollis, pretium ac magna.…
Composer: Requirements could not be resolved in Yii2
Sometimes when you add more packages in yii2, you may get error like this: Problem 1 – yiisoft/yii2-jui 2.0.6 requires bower-asset/jquery-ui 1.11.*@stable -> no matching…
Allow Remote Access MySQL / MariaDB CentOS 7
After MySQL / MariaDB successfully installed, may be you want to give remote access to the server. Lets say the database server’s IP is 192.168.10.105, and you…
Manajemen Database dan User MySQL/MariaDB CentOS 7
Create User: create user ‘user’@’localhost’ identified by ‘password’; Create Database: create database monitoring; Assign user to database monitoring: grant all privileges on monitoring . *…
Install MariaDB 10 di CentOS 7
Bikin file repo baru di /etc/yum.repos.d/, misal MariaDB.repo, isi: # MariaDB 10.1 CentOS repository list – created 2016-10-11 08:34 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name =…
Install httpd CentOS 7
update OS: yum update install httpd: yum install httpd start/stop httpd: systemctl start httpd enable at boot: systemctl enable httpd see status: systemctl status httpd
Cara Mengatasi Service Host Local System yang Banyak Makan RAM
Buka CMD dengan Run As Administrator: ketik: sfc /scannow Tunggu sampe selesei, trus lanjutkan dengan: Dism /Online /Cleanup-Image /RestoreHealth Cek, harusnya sudah nggak makan RAM…
Setting Time Zone Yii2
Bisa dilakukan dengan dua cara: edit file config/web.php, di bagian $config =[] tambahkan: ‘timeZone’ => ‘Asia/Jakarta’, atau pakai fungsi date_default_timezone_set(‘Asia/Jakarta’);
Penggunaan Yii2 Migration
Referensi: http://www.yiiframework.com/doc-2.0/guide-db-migrations.html Buka terminal, masuk ke root folder project: Ceritanya mau bikin table pegawai ketik: yii migrate/create create_pegawai_table -> akan menggenerate skeleton code di folder migrations (m160928_024257_create_pegawai_table.php)…
Enable Pretty URL Yii2
Masuk ke config/web.php Uncomment: ‘urlManager’ => [ ‘enablePrettyUrl’ => true, ‘showScriptName’ => false, ‘rules’ => [ ], ], Bikin file .htaccess RewriteEngine on RewriteCond %{REQUEST_FILENAME}…