Masalah Permission Denied di CentOS 7 Akibat SELINUX
Teknologi / 6 Maret 2017

Postingan ini hanya mencatat solusi untuk mengatasi permasalahan gagal akses aplikasi yang ditanam di server httpd (apache) akibat security permission pada SELinux (jika diaktifkan). 1. Cek permission SELINUX: ls -LZ 2. Lihat hasilnya: drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 bootstrap drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 storage 3. Ubah security dari “httpd_sys_content_t” menjadi “httpd_sys_rw_content_t” chcon -Rv -t httpd_sys_rw_content_t bootstrap/ changing security context of ‘bootstrap/app.php’ changing security context of ‘bootstrap/autoload.php’ changing security context of ‘bootstrap/cache/.gitignore’ changing security context of ‘bootstrap/cache’ changing security context of ‘bootstrap/’ changing security context of ‘storage/app/.gitignore’ changing security context of ‘storage/app/public/.gitignore’ changing security context of ‘storage/app/public’ changing security context of ‘storage/app’ changing security context of ‘storage/framework/.gitignore’ changing security context of ‘storage/framework/cache/.gitignore’ changing security context of ‘storage/framework/cache’ changing security context of ‘storage/framework/sessions/.gitignore’ changing security context of ‘storage/framework/sessions’ changing security context of ‘storage/framework/views/.gitignore’ changing security context of ‘storage/framework/views’ changing security context of ‘storage/framework’ changing security context of ‘storage/logs/.gitignore’ changing security context of ‘storage/logs’ changing security context of ‘storage/oauth-private.key’ changing security context of ‘storage/oauth-public.key’ changing security context of ‘storage/’ chcon -Rv -t httpd_sys_rw_content_t storage/ changing security context of ‘storage/app/.gitignore’ changing security context of ‘storage/app/public/.gitignore’ changing security context of ‘storage/app/public’ changing security context of ‘storage/app’ changing security context of ‘storage/framework/.gitignore’ changing security context of ‘storage/framework/cache/.gitignore’…

Cara Setting Hostname di CentOS 7
Teknologi / 3 Maret 2017

Cara setting hostname berikut adalah menggunakan hostnamectl (yang direkomendasikan). Selengkapnya cara setting hostname di CentOS 7 dapat menggunakan salah satu opsi berikut: hostnamectl command : Control the system hostname. This is recommended method. nmtui command : Control the system hostname using text user interface (TUI). nmcli command : Control the system hostname using CLI part of NetworkManager. Perlu juga diketahui tipe-tipe hostname sebagai berikut: Static host name assigned by sysadmin. For example, “server1”, “wwwbox2”, or “server42.cyberciti.biz”. Transient/dynamic host name assigned by DHCP or mDNS server at run time. Pretty host name assigned by sysadmin/end-users and it is a free-form UTF8 host name for presentation to the user. For example, “Vivek’s netbook”. Langkah-langkah setting hostname menggunakan hostnamectl. Melihat informasi hostname saat ini: $ hostnamectl ## OR ## $ hostnamectl status Cara melakukan setting host name: # hostnamectl set-hostname Your-New-Host-Name-Here # hostnamectl set-hostname “Your New Host Name Here” –pretty # hostnamectl set-hostname Your-New-Host-Name-Here –static # hostnamectl set-hostname Your-New-Host-Name-Here –transient Set host name ke “R2-D2” : # hostnamectl set-hostname R2-D2 Set static host name ke “server1.cyberciti.biz” : # hostnamectl set-hostname server1.cyberciti.biz –static Set pretty host name to “Senator Padme Amidala’s Laptop” : # hostnamectl set-hostname “Senator Padme Amidala’s Laptop” –pretty Verify hasil setting baru : # hostnamectl status…

Mudah Instalasi Oracle-XE 11g di CentOS
Teknologi / 7 September 2016

Berikut catatan kecil saya saat melakukan instalasi Oracle 11g-XE di Linux CentOS 7. Paket yang harus diinstall terlebih dahulu sebelum proses instalasi: tuned-profiles-oracle kmod-oracleasm bc gcc glibc make binutils libaio libaio-devel libstdc++ libstdc++-devel libgcc compat-libstdc++ ksh libXext libXtst libX11 libXau libxcb libXi sysstat unixODBC unixODBC-devel zlib-devel elfutils-libelf-devel Lakukan setting /etc/hostname sebagai berikut: [root@centos]# cat /etc/hostname centos.joe Lakukan setting /etc/hosts sebagai berikut: [root@centos]# cat /etc/hosts 127.0.0.1       localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1             localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.56.101  centos.joe centos 192.168.84.20   centos.joe centos Mulai proses instalasi: A. Created a new user ‘oracle’ under the group dba: [root@centos ~]# usermod -a -G dba oracle [root@centos ~]# grep dba /etc/group dba:x:1000:oracle,root B. Download paket installer “oracle-xe-11.2.0-1.0.x86_64.rpm.zip”, simpan di direktori “/tmp”. C. Extract file tersebut [root@centos tmp]# unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip Akan terbentuk direktori “Disk1” sebagai hasil extract file installer. D. Masuk ke direktori hasil extract tersebut di atas, dan jalankan instalasi dengan rpm [root@centos tmp]# cd Disk1 [root@centos Disk1]# rpm -iv oracle-xe-11.2.0-1.0.x86_64.rpm Preparing packages… /var/tmp/rpm-tmp.OA9b17: line 257: [: 18446744073692774399: integer expression expected /var/tmp/rpm-tmp.OA9b17: line 271: [: 18446744073692774399: integer expression expected oracle-xe-11.2.0-1.0.x86_64 Executing post-install steps… You must run ‘/etc/init.d/oracle-xe configure’ as the root user to configure the database. [root@centos Disk1]# /etc/init.d/oracle-xe configure Oracle Database 11g Express…